summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2014-06-23 11:54:58 +0200
committerMarin Jankovski <marin@gitlab.com>2014-06-23 11:54:58 +0200
commit63c1cdce42f140146c2dfac1e49832a33b84b2cf (patch)
tree6b7d0e3765436f01481573123bbba8643634a253 /lib
parent73c1030da1318284495288461210e8d145aa7181 (diff)
downloadgitlab-ce-63c1cdce42f140146c2dfac1e49832a33b84b2cf.tar.gz
Show @all in autocomplete list.
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/markdown.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/gitlab/markdown.rb b/lib/gitlab/markdown.rb
index c04be788f07..759bedee80b 100644
--- a/lib/gitlab/markdown.rb
+++ b/lib/gitlab/markdown.rb
@@ -169,7 +169,12 @@ module Gitlab
end
def reference_user(identifier, project = @project)
- if user = User.find_by(username: identifier)
+ if identifier == "all"
+ options = html_options.merge(
+ class: "gfm gfm-team_member #{html_options[:class]}"
+ )
+ link_to("@all", project_url(project), options)
+ elsif user = User.find_by(username: identifier)
options = html_options.merge(
class: "gfm gfm-team_member #{html_options[:class]}"
)