diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-12-09 00:05:23 +0000 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-12-09 00:05:23 +0000 |
commit | 6213263d323e21357f682bb752c4dd9eb8421a03 (patch) | |
tree | 71188714d17e656360960946ba39db35a3356b37 /lib/gitlab/markdown/commit_reference_filter.rb | |
parent | 56f25c3e615752817446d5aedb7d66d25d815641 (diff) | |
parent | 23b6a98de00b966728f6b5ed3747b0d2e078165f (diff) | |
download | gitlab-ce-6213263d323e21357f682bb752c4dd9eb8421a03.tar.gz |
Merge branch 'mr-builds' into 'master'
Add Builds tab to MR detail page
## Before
![Screen_Shot_2015-12-08_at_13.21.04](/uploads/0d26060bef78f3de076e33439b8a4789/Screen_Shot_2015-12-08_at_13.21.04.png)
## After
![Screen_Shot_2015-12-08_at_13.25.20](/uploads/be7d7fd6d4fc8c5cc366b5b3778b813a/Screen_Shot_2015-12-08_at_13.25.20.png)
Fixes #3907
See merge request !2016
Diffstat (limited to 'lib/gitlab/markdown/commit_reference_filter.rb')
-rw-r--r-- | lib/gitlab/markdown/commit_reference_filter.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/gitlab/markdown/commit_reference_filter.rb b/lib/gitlab/markdown/commit_reference_filter.rb index b4036578e60..e3066a89b04 100644 --- a/lib/gitlab/markdown/commit_reference_filter.rb +++ b/lib/gitlab/markdown/commit_reference_filter.rb @@ -47,6 +47,17 @@ module Gitlab def object_link_title(commit) commit.link_title end + + def object_link_text_extras(object, matches) + extras = super + + path = matches[:path] if matches.names.include?("path") + if path == '/builds' + extras.unshift "builds" + end + + extras + end end end end |