debian-mirror-gitlab/app/views/projects/merge_requests/merge.js.haml

14 lines
571 B
Text
Raw Normal View History

2015-12-23 02:04:40 +05:30
- case @status
- when :success
2014-09-02 18:07:02 +05:30
:plain
2015-12-23 02:04:40 +05:30
merge_request_widget.mergeInProgress(#{params[:should_remove_source_branch] == '1'});
- when :merge_when_build_succeeds
:plain
$('.mr-widget-body').html("#{escape_javascript(render('projects/merge_requests/widget/open/merge_when_build_succeeds'))}");
- when :sha_mismatch
:plain
$('.mr-widget-body').html("#{escape_javascript(render('projects/merge_requests/widget/open/sha_mismatch'))}");
2015-09-11 14:41:01 +05:30
- else
2014-09-02 18:07:02 +05:30
:plain
2015-09-11 14:41:01 +05:30
$('.mr-widget-body').html("#{escape_javascript(render('projects/merge_requests/widget/open/reload'))}");