Commit 994ad1cbc179ae33daae75056475d2514a443249

Authored by Javier Castro
1 parent 8aecfc37

Added show user name as a tooltip on every call to link_to_member when the name is not shown inline

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
... ...