summaryrefslogtreecommitdiff
path: root/app/views/snippets
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-04-13 11:43:28 -0500
committerDouwe Maan <douwe@selenight.nl>2017-04-17 13:54:08 -0500
commit6bd5ec6a1dc8a84236c3e144aca59c7af8b0ca6d (patch)
tree2123b406bbb4990fbc9385c914762460349060a6 /app/views/snippets
parent41acc87fbd457d2894fb519eb48f215d017ddec2 (diff)
downloadgitlab-ce-6bd5ec6a1dc8a84236c3e144aca59c7af8b0ca6d.tar.gz
Add snippet IID to snippet page titlesdm-snippet-page-title
Diffstat (limited to 'app/views/snippets')
-rw-r--r--app/views/snippets/edit.html.haml2
-rw-r--r--app/views/snippets/show.html.haml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/snippets/edit.html.haml b/app/views/snippets/edit.html.haml
index 915bf98eb3e..18ebeb78f87 100644
--- a/app/views/snippets/edit.html.haml
+++ b/app/views/snippets/edit.html.haml
@@ -1,4 +1,4 @@
-- page_title "Edit", @snippet.title, "Snippets"
+- page_title "Edit", "#{@snippet.title} (#{@snippet.to_reference})", "Snippets"
%h3.page-title
Edit Snippet
%hr
diff --git a/app/views/snippets/show.html.haml b/app/views/snippets/show.html.haml
index da9fb755a36..e5711ca79c7 100644
--- a/app/views/snippets/show.html.haml
+++ b/app/views/snippets/show.html.haml
@@ -1,4 +1,4 @@
-- page_title @snippet.title, "Snippets"
+- page_title "#{@snippet.title} (#{@snippet.to_reference})", "Snippets"
= render 'shared/snippets/header'