2015-11-02 11:27:38 -05:00
|
|
|
- case @status
|
2015-12-07 04:06:07 -05:00
|
|
|
- when :success
|
2012-04-16 16:05:08 -04:00
|
|
|
:plain
|
2015-11-24 22:41:36 -05:00
|
|
|
merge_request_widget.mergeInProgress(#{params[:should_remove_source_branch] == '1'});
|
2015-11-02 11:27:38 -05:00
|
|
|
- when :merge_when_build_succeeds
|
|
|
|
:plain
|
|
|
|
$('.mr-widget-body').html("#{escape_javascript(render('projects/merge_requests/widget/open/merge_when_build_succeeds'))}");
|
2016-06-01 08:25:44 -04:00
|
|
|
- when :sha_mismatch
|
|
|
|
:plain
|
|
|
|
$('.mr-widget-body').html("#{escape_javascript(render('projects/merge_requests/widget/open/sha_mismatch'))}");
|
2015-06-11 09:14:50 -04:00
|
|
|
- else
|
2012-04-16 16:05:08 -04:00
|
|
|
:plain
|
2015-06-11 09:14:50 -04:00
|
|
|
$('.mr-widget-body').html("#{escape_javascript(render('projects/merge_requests/widget/open/reload'))}");
|