[#19] add hint to user

This commit is contained in:
Alexander Machehin 2013-04-10 02:10:27 +06:00
parent 24ad1485a6
commit 8066c7144c
1 changed files with 3 additions and 2 deletions

View File

@ -161,8 +161,9 @@ module Modules
end
def reference_user(identifier)
if member = @project.all_members.select {|u| u.uname == identifier} #.joins(:user).where(users: {uname: identifier}).first
link_to("@#{identifier}", user_path(identifier), html_options.merge(class: "gfm gfm-team_member #{html_options[:class]}")) if member
member = @project.all_members.select {|u| u.uname == identifier}
if member[0]
link_to("@#{identifier}", user_path(identifier), html_options.merge(title: member[0].fullname, class: "gfm gfm-team_member #{html_options[:class]}"))
end
end