Fix whitespace for fb macro

This commit is contained in:
Alexander Meindl 2018-08-30 17:45:01 +02:00
parent c148c86294
commit 3001e195c0

View File

@ -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