summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-10-19 12:23:51 +0200
committerRobert Speicher <rspeicher@gmail.com>2016-10-19 12:24:29 +0200
commit31d369b796466a726bbfce9ab72df11c8644f945 (patch)
treefd8a1128013b9cb60e2531e6048b1c3db162bc9e
parent8cf45f63613276f47099def265ab4cde8eb0c758 (diff)
downloadgitlab-ce-rs-revert-title-change.tar.gz
Use `to_reference` for Issue "show" and "edit" page titlesrs-revert-title-change
Thanks to Greg Laubenstein for noticing in !6503
-rw-r--r--app/views/projects/issues/edit.html.haml2
-rw-r--r--app/views/projects/issues/show.html.haml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/issues/edit.html.haml b/app/views/projects/issues/edit.html.haml
index 7cf1923456e..1b7d878c38c 100644
--- a/app/views/projects/issues/edit.html.haml
+++ b/app/views/projects/issues/edit.html.haml
@@ -1,4 +1,4 @@
-- page_title "Edit", "#{@issue.title} (##{@issue.iid})", "Issues"
+- page_title "Edit", "#{@issue.title} (#{@issue.to_reference})", "Issues"
%h3.page-title
Edit Issue ##{@issue.iid}
diff --git a/app/views/projects/issues/show.html.haml b/app/views/projects/issues/show.html.haml
index 49c47a7dc6a..6f3f238a436 100644
--- a/app/views/projects/issues/show.html.haml
+++ b/app/views/projects/issues/show.html.haml
@@ -1,4 +1,4 @@
-- page_title "#{@issue.title} (##{@issue.iid})", "Issues"
+- page_title "#{@issue.title} (#{@issue.to_reference})", "Issues"
- page_description @issue.description
- page_card_attributes @issue.card_attributes