Fix whitespace for fb macro
This commit is contained in:
parent
c148c86294
commit
3001e195c0
@ -55,12 +55,14 @@ module Additionals
|
||||
content_options[:title] = options[:title] if options[:title].present?
|
||||
content_options[:style] = "color: #{options[:color]}" if options[:color].present?
|
||||
|
||||
text = options[:text].present? ? ' ' + options[:text] : ''
|
||||
|
||||
if options[:link].present?
|
||||
content_tag(:a, href: options[:link]) do
|
||||
content_tag(:i, ' ' + options[:text], content_options)
|
||||
content_tag(:i, text, content_options)
|
||||
end
|
||||
else
|
||||
content_tag(:i, ' ' + options[:text], content_options)
|
||||
content_tag(:i, text, content_options)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user