Commit 04806be3bfa5ac095d526f21b7727edcaa2fec7c
Exists in
master
and in
4 other branches
Merge pull request #4634 from jacargentina/master
Added show user name as a tooltip on issue participants list
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 | 32 | |
33 | 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 | 40 | end |
37 | 41 | |
38 | 42 | def project_title project | ... | ... |