debian-mirror-gitlab/app/views/projects/merge_requests/widget/_show.html.haml

21 lines
855 B
Text
Raw Normal View History

2015-09-11 14:41:01 +05:30
- if @merge_request.open?
= render 'projects/merge_requests/widget/open'
- elsif @merge_request.merged?
= render 'projects/merge_requests/widget/merged'
- elsif @merge_request.closed?
= render 'projects/merge_requests/widget/closed'
- elsif @merge_request.locked?
= render 'projects/merge_requests/widget/locked'
:javascript
var merge_request_widget;
merge_request_widget = new MergeRequestWidget({
2015-09-25 12:07:36 +05:30
url_to_automerge_check: "#{merge_check_namespace_project_merge_request_path(@project.namespace, @project, @merge_request)}",
2015-09-11 14:41:01 +05:30
check_enable: #{@merge_request.unchecked? ? "true" : "false"},
url_to_ci_check: "#{ci_status_namespace_project_merge_request_path(@project.namespace, @project, @merge_request)}",
ci_enable: #{@project.ci_service ? "true" : "false"},
2015-09-25 12:07:36 +05:30
current_status: "#{@merge_request.gitlab_merge_status}",
2015-09-11 14:41:01 +05:30
});