summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2016-06-01 10:57:26 +0000
committerDouwe Maan <douwe@gitlab.com>2016-06-01 10:57:26 +0000
commit173d83cae98c73fd4af58b62e613c2b629322852 (patch)
treed84d1197976be0abc264341e62774d1c0d53dd5a /app
parent3416bc53fbebff4d1c0659f2fde6d32ff0c9df77 (diff)
parent538b2d687ea903845e993d77740d95fc946ca3a7 (diff)
downloadgitlab-ce-173d83cae98c73fd4af58b62e613c2b629322852.tar.gz
Merge branch 'prefer-to_reference' into 'master'
Use `Snippet#to_reference` directly ## What does this MR do? Instead of hard coding snippet reference, we could just use the existing method for that. ## Why was this MR needed? To address https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4338#note_12166325 from @DouweM /cc @jschatz1 See merge request !4379
Diffstat (limited to 'app')
-rw-r--r--app/views/shared/snippets/_header.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/snippets/_header.html.haml b/app/views/shared/snippets/_header.html.haml
index e0d0d967da6..8d391d85642 100644
--- a/app/views/shared/snippets/_header.html.haml
+++ b/app/views/shared/snippets/_header.html.haml
@@ -4,7 +4,7 @@
= visibility_level_label(@snippet.visibility_level)
= visibility_level_icon(@snippet.visibility_level, fw: false)
%strong.item-title
- Snippet $#{@snippet.id}
+ Snippet #{@snippet.to_reference}
%span.creator
created by #{link_to_member(@project, @snippet.author, size: 24, author_class: "author item-title")}
= time_ago_with_tooltip(@snippet.created_at, placement: 'bottom', html_class: 'snippet_updated_ago')