Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gpt
large_projects
gitlabhq1
Commits
cb8b3888
Commit
cb8b3888
authored
8 years ago
by
Annabel Dunstone Gray
Browse files
Options
Download
Email Patches
Plain Diff
Remove link to self from issuable meta
parent
daf9ec6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
12 deletions
+5
-12
app/helpers/issuables_helper.rb
app/helpers/issuables_helper.rb
+1
-12
changelogs/unreleased/remove-link-from-issuable-meta.yml
changelogs/unreleased/remove-link-from-issuable-meta.yml
+4
-0
No files found.
app/helpers/issuables_helper.rb
View file @
cb8b3888
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
changelogs/unreleased/remove-link-from-issuable-meta.yml
0 → 100644
View file @
cb8b3888
---
title
:
Remove link to self from issuable meta
merge_request
:
author
:
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment