Move "rerun_tests" button
This commit is contained in:
parent
3d94b42100
commit
8ddfd281a2
|
@ -184,13 +184,6 @@
|
|||
data: { confirm: t("layout.publish_again_warning") },
|
||||
name: 'publish',
|
||||
'ng-show' => "build_list.can_publish && build_list.status == #{BuildList::BUILD_PUBLISHED}"
|
||||
- if can?(:rerun_tests, @build_list) && (current_user.tester? || current_user.admin?)
|
||||
= link_to t('layout.build_lists.rerun_tests'),
|
||||
rerun_tests_build_list_path(@build_list),
|
||||
method: :put,
|
||||
data: { confirm: t("layout.confirm") },
|
||||
class: 'button',
|
||||
'ng-show' => "build_list.status == #{BuildList::TESTS_FAILED} || build_list.status == #{BuildList::SUCCESS}"
|
||||
= submit_tag t("layout.publish"),
|
||||
data: { confirm: t('layout.build_lists.tests_failed') }, name: 'publish',
|
||||
'ng-show' => "build_list.can_publish && build_list.can_publish_in_future && build_list.extra_build_lists_published && build_list.status == #{BuildList::TESTS_FAILED}"
|
||||
|
@ -206,6 +199,13 @@
|
|||
method: :put, data: { confirm: t("layout.confirm") },
|
||||
class: 'button',
|
||||
'ng-show' => 'build_list.can_reject_publish'
|
||||
- if can?(:rerun_tests, @build_list) && (current_user.tester? || current_user.admin?)
|
||||
= link_to t('layout.build_lists.rerun_tests'),
|
||||
rerun_tests_build_list_path(@build_list),
|
||||
method: :put,
|
||||
data: { confirm: t("layout.confirm") },
|
||||
class: 'button',
|
||||
'ng-show' => "build_list.status == #{BuildList::TESTS_FAILED} || build_list.status == #{BuildList::SUCCESS}"
|
||||
- if can?(:create_container, @build_list)
|
||||
= link_to t("layout.build_lists.create_container"),
|
||||
create_container_build_list_path(@build_list),
|
||||
|
|
Loading…
Reference in New Issue