Skip to content
Snippets Groups Projects
Commit c826b7c3 authored by Phil Hughes's avatar Phil Hughes
Browse files

Fixed Rubocop

parent da42b1bb
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -34,8 +34,7 @@ module ProjectsHelper
author_html << content_tag(:span, sanitize("@#{author.username}"), class: opts[:author_class]) if opts[:name]
else
tooltip_data = { placement: 'top' }
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]
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]
end
 
author_html << capture(&block) if block
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment