mirror of
https://github.com/redmine/redmine.git
synced 2025-11-05 04:45:57 +01:00
Link to user by id (#4179).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@16671 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -821,6 +821,7 @@ module ApplicationHelper
|
||||
# Users:
|
||||
# user:jsmith -> Link to user with login jsmith
|
||||
# @jsmith -> Link to user with login jsmith
|
||||
# user#2 -> Link to user with id 2
|
||||
#
|
||||
# Links can refer other objects from other projects, using project identifier:
|
||||
# identifier:r52
|
||||
@@ -908,6 +909,9 @@ module ApplicationHelper
|
||||
if p = Project.visible.find_by_id(oid)
|
||||
link = link_to_project(p, {:only_path => only_path}, :class => 'project')
|
||||
end
|
||||
when 'user'
|
||||
u = User.visible.where(:id => oid, :type => 'User').first
|
||||
link = link_to_user(u) if u
|
||||
end
|
||||
elsif sep == ':'
|
||||
name = remove_double_quotes(identifier)
|
||||
|
||||
Reference in New Issue
Block a user