diff options
author | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-05-17 10:52:44 -0500 |
---|---|---|
committer | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-05-17 10:54:13 -0500 |
commit | cb8b388880ca27c8c7936956fc109cc34ea3f8e5 (patch) | |
tree | 2143f0ee4ebc8c2cf52c61c940600031084f88ef | |
parent | daf9ec6cd1f88e7462cae9dc68eda2dcf793cecf (diff) | |
download | gitlab-ce-remove-link-from-issuable-meta.tar.gz |
Remove link to self from issuable metaremove-link-from-issuable-meta
-rw-r--r-- | app/helpers/issuables_helper.rb | 13 | ||||
-rw-r--r-- | changelogs/unreleased/remove-link-from-issuable-meta.yml | 4 |
2 files changed, 5 insertions, 12 deletions
diff --git a/app/helpers/issuables_helper.rb b/app/helpers/issuables_helper.rb index 9290e4ec133..0099a14516d 100644 --- a/app/helpers/issuables_helper.rb +++ b/app/helpers/issuables_helper.rb @@ -114,21 +114,10 @@ module IssuablesHelper h(title || default_label) end - def to_url_reference(issuable) - case issuable - when Issue - link_to issuable.to_reference, issue_url(issuable) - when MergeRequest - link_to issuable.to_reference, merge_request_url(issuable) - else - issuable.to_reference - end - end - def issuable_meta(issuable, project, text) output = content_tag(:strong, class: "identifier") do concat("#{text} ") - concat(to_url_reference(issuable)) + concat(issuable.to_reference) end output << " opened #{time_ago_with_tooltip(issuable.created_at)} by ".html_safe diff --git a/changelogs/unreleased/remove-link-from-issuable-meta.yml b/changelogs/unreleased/remove-link-from-issuable-meta.yml new file mode 100644 index 00000000000..d707937f0ea --- /dev/null +++ b/changelogs/unreleased/remove-link-from-issuable-meta.yml @@ -0,0 +1,4 @@ +--- +title: Remove link to self from issuable meta +merge_request: +author: |