mirror of
https://github.com/System-End/identity-vault.git
synced 2026-04-19 18:35:13 +00:00
gdi
This commit is contained in:
parent
d06da04d5e
commit
64a7a232a9
2 changed files with 3 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ class Components::AuthWelcome < Components::Base
|
|||
end
|
||||
|
||||
def view_template
|
||||
div(class: [ "auth-container", @has_background && "has-background" ]) do
|
||||
div(class: [ "auth-container", ("has-background" if @has_background) ]) do
|
||||
render_brand if @logo_path
|
||||
div(class: "auth-card") do
|
||||
render_header
|
||||
|
|
|
|||
|
|
@ -19,7 +19,8 @@ module ApplicationHelper
|
|||
block ||= ->(_) { clipboard_value }
|
||||
return yield if options.delete(:if) == false
|
||||
|
||||
css_classes = "pointer tooltipped tooltipped--#{tooltip_direction} #{options.delete(:class)}"
|
||||
additional_class = options.delete(:class)
|
||||
css_classes = "pointer tooltipped tooltipped--#{tooltip_direction}#{" #{additional_class}" if additional_class}"
|
||||
tag.span "data-copy-to-clipboard": clipboard_value, class: css_classes, "aria-label": options.delete(:label) || "click to copy...", **options, &block
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue