Commit cb86cf844c4abddba6e5d5e43cebd3297d724897
Exists in
master
and in
4 other branches
Merge branch 'master' of github.com:gitlabhq/gitlabhq
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
app/helpers/projects_helper.rb
@@ -32,7 +32,11 @@ module ProjectsHelper | @@ -32,7 +32,11 @@ module ProjectsHelper | ||
32 | 32 | ||
33 | author_html = author_html.html_safe | 33 | author_html = author_html.html_safe |
34 | 34 | ||
35 | - link_to(author_html, user_path(author), class: "author_link").html_safe | 35 | + if opts[:name] |
36 | + link_to(author_html, user_path(author), class: "author_link").html_safe | ||
37 | + else | ||
38 | + link_to(author_html, user_path(author), class: "author_link has_tooltip", data: { :'original-title' => sanitize(author.name) } ).html_safe | ||
39 | + end | ||
36 | end | 40 | end |
37 | 41 | ||
38 | def project_title project | 42 | def project_title project |