Fixed Rubocop
This commit is contained in:
parent
da42b1bb53
commit
c826b7c3e5
1 changed files with 1 additions and 2 deletions
|
@ -34,8 +34,7 @@ module ProjectsHelper
|
||||||
author_html << content_tag(:span, sanitize("@#{author.username}"), class: opts[:author_class]) if opts[:name]
|
author_html << content_tag(:span, sanitize("@#{author.username}"), class: opts[:author_class]) if opts[:name]
|
||||||
else
|
else
|
||||||
tooltip_data = { placement: 'top' }
|
tooltip_data = { placement: 'top' }
|
||||||
author_html << content_tag(:span, sanitize(author.name), class: [opts[:author_class], ('has-tooltip' if opts[:tooltip])],
|
author_html << content_tag(:span, sanitize(author.name), class: [opts[:author_class], ('has-tooltip' if opts[:tooltip])], title: (author.to_reference if opts[:tooltip]), data: (tooltip_data if opts[:tooltip])) if opts[:name]
|
||||||
title: (author.to_reference if opts[:tooltip]), data: (tooltip_data if opts[:tooltip])) if opts[:name]
|
|
||||||
end
|
end
|
||||||
|
|
||||||
author_html << capture(&block) if block
|
author_html << capture(&block) if block
|
||||||
|
|
Loading…
Reference in a new issue