summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-02-07 15:48:35 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-02-07 15:48:35 +0100
commit9c916bf528a8076927df0ac18883513bd6ce415e (patch)
tree2e96a8617cada32e22f36632167c6cb6411c0049 /app/views
parentf97d7769e0c70b0d4cda376d03939e2aa78d2c0e (diff)
downloadgitlab-ce-9c916bf528a8076927df0ac18883513bd6ce415e.tar.gz
Pass proper endpoint path to MR pipelines partial
Diffstat (limited to 'app/views')
-rw-r--r--app/views/projects/merge_requests/show/_pipelines.html.haml4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/projects/merge_requests/show/_pipelines.html.haml b/app/views/projects/merge_requests/show/_pipelines.html.haml
index cbe534abedb..6c243c866c8 100644
--- a/app/views/projects/merge_requests/show/_pipelines.html.haml
+++ b/app/views/projects/merge_requests/show/_pipelines.html.haml
@@ -1 +1,3 @@
-= render 'projects/commit/pipelines_list', endpoint: pipelines_namespace_project_merge_request_path(@project.namespace, @project, @merge_request)
+- endpoint_path = local_assigns[:endpoint] || pipelines_namespace_project_merge_request_path(@project.namespace, @project, @merge_request)
+
+= render 'projects/commit/pipelines_list', endpoint: endpoint_path