summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2017-08-11 10:55:53 +0000
committerDouwe Maan <douwe@gitlab.com>2017-08-11 10:55:53 +0000
commit539152bcafcc40d11952e6c7ac0f2a6a71a88baa (patch)
tree8dc613414151b26b4ae28acd744f0f99762fea54
parent86f5a4aaf19935b4d23a81426c1576bc16024696 (diff)
parente641072502111593f94590f9bdcac48bfe599036 (diff)
downloadgitlab-ce-539152bcafcc40d11952e6c7ac0f2a6a71a88baa.tar.gz
Merge branch 'zj-ref-path-monospace' into 'master'
Fix 404 on jobs details page See merge request !13459
-rw-r--r--app/views/projects/jobs/_sidebar.html.haml2
-rw-r--r--changelogs/unreleased/zj-ref-path-monospace.yml4
2 files changed, 5 insertions, 1 deletions
diff --git a/app/views/projects/jobs/_sidebar.html.haml b/app/views/projects/jobs/_sidebar.html.haml
index 99f4b30d085..f5d5bc7eda9 100644
--- a/app/views/projects/jobs/_sidebar.html.haml
+++ b/app/views/projects/jobs/_sidebar.html.haml
@@ -75,7 +75,7 @@
Pipeline
= link_to "##{@build.pipeline.id}", project_pipeline_path(@project, @build.pipeline), class: 'link-commit'
from
- = link_to "#{@build.pipeline.ref}", project_branch_path(@project, @build.pipeline.ref), class: 'link-commit'
+ = link_to "#{@build.pipeline.ref}", project_ref_path(@project, @build.pipeline.ref), class: 'link-commit ref-name'
%button.dropdown-menu-toggle{ type: 'button', 'data-toggle' => 'dropdown' }
%span.stage-selection More
= icon('chevron-down')
diff --git a/changelogs/unreleased/zj-ref-path-monospace.yml b/changelogs/unreleased/zj-ref-path-monospace.yml
new file mode 100644
index 00000000000..638a29eb90e
--- /dev/null
+++ b/changelogs/unreleased/zj-ref-path-monospace.yml
@@ -0,0 +1,4 @@
+---
+title: Use project_ref_path to create the link to a branch to fix links that 404
+merge_request:
+author: