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'))}");
|
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'))}");
|