diff options
author | Fatih Acet <acetfatih@gmail.com> | 2017-02-07 21:21:30 +0000 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2017-02-07 21:21:30 +0000 |
commit | 71c80375474e0bda201de07870587b0bb8553069 (patch) | |
tree | 1b4aa9316ba709a534f06522d8224d78fd38ccf0 /app/views | |
parent | 9aafb2a6d3c1b2588ef0689d6919014150123e64 (diff) | |
parent | d410c937a509c46cd1de807937b8d74bf383070c (diff) | |
download | gitlab-ce-71c80375474e0bda201de07870587b0bb8553069.tar.gz |
Merge branch 'fix/gb/invalid-new-merge-request-api' into 'master'
Fix rendering pipelines for a new merge request
See merge request !9032
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/merge_requests/_new_submit.html.haml | 2 | ||||
-rw-r--r-- | app/views/projects/merge_requests/show/_pipelines.html.haml | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/app/views/projects/merge_requests/_new_submit.html.haml b/app/views/projects/merge_requests/_new_submit.html.haml index 38259faf62f..bd72310c16b 100644 --- a/app/views/projects/merge_requests/_new_submit.html.haml +++ b/app/views/projects/merge_requests/_new_submit.html.haml @@ -46,7 +46,7 @@ -# This tab is always loaded via AJAX - if @pipelines.any? #pipelines.pipelines.tab-pane - = render "projects/merge_requests/show/pipelines", endpoint: link_to(url_for(params)) + = render 'projects/merge_requests/show/pipelines', endpoint: url_for(params.merge(format: :json)) .mr-loading-status = spinner diff --git a/app/views/projects/merge_requests/show/_pipelines.html.haml b/app/views/projects/merge_requests/show/_pipelines.html.haml index cbe534abedb..de4aa255bbd 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, format: :json) + += render 'projects/commit/pipelines_list', endpoint: endpoint_path |