[#19] add hint to user
This commit is contained in:
parent
24ad1485a6
commit
8066c7144c
|
@ -161,8 +161,9 @@ module Modules
|
||||||
end
|
end
|
||||||
|
|
||||||
def reference_user(identifier)
|
def reference_user(identifier)
|
||||||
if member = @project.all_members.select {|u| u.uname == identifier} #.joins(:user).where(users: {uname: identifier}).first
|
member = @project.all_members.select {|u| u.uname == identifier}
|
||||||
link_to("@#{identifier}", user_path(identifier), html_options.merge(class: "gfm gfm-team_member #{html_options[:class]}")) if member
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue