diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2022-02-24 21:54:30 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2022-02-24 21:54:30 +0000 |
commit | fbca88afc43df94d0f3dd9b0283df1769231b88a (patch) | |
tree | 445d01eed75810a0cce282bc8e1c239f2fe44f8a /app/helpers | |
parent | 8470b8b4787e63cdc00f9c66429a4f87028a0a75 (diff) | |
download | redmine-fbca88afc43df94d0f3dd9b0283df1769231b88a.tar.gz redmine-fbca88afc43df94d0f3dd9b0283df1769231b88a.zip |
Add class @user-mention@ to user classes when user is linked using @ (#36699, #13919).
git-svn-id: http://svn.redmine.org/redmine/trunk@21440 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/application_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index cbf15a873..1d2b09423 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1265,7 +1265,7 @@ module ApplicationHelper elsif sep == "@" name = remove_double_quotes(identifier) u = User.visible.find_by("LOWER(login) = :s AND type = 'User'", :s => name.downcase) - link = link_to_user(u, :only_path => only_path) if u + link = link_to_user(u, :only_path => only_path, :class => 'user-mention') if u end end (leading + (link || "#{project_prefix}#{prefix}#{repo_prefix}#{sep}#{identifier}#{comment_suffix}")) |