From 994ad1cbc179ae33daae75056475d2514a443249 Mon Sep 17 00:00:00 2001
From: Javier Castro <javiercastro@nexion.com.ar>
Date: Wed, 24 Jul 2013 18:09:56 -0300
Subject: [PATCH] Added show user name as a tooltip on every call to
 link_to_member when the name is not shown inline

---
 app/helpers/projects_helper.rb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb
index 22aec62e2bf..f742b00bb7f 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
-- 
GitLab