diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index 22aec62e2bfb9ddcc59fa3b8af13861fa142aa5a..f742b00bb7f21f70744e80cd1ade281cd2a9ebad 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -32,7 +32,11 @@ module ProjectsHelper author_html = author_html.html_safe - link_to(author_html, user_path(author), class: "author_link").html_safe + if opts[:name] + link_to(author_html, user_path(author), class: "author_link").html_safe + else + link_to(author_html, user_path(author), class: "author_link has_tooltip", data: { :'original-title' => sanitize(author.name) } ).html_safe + end end def project_title project