Move "rerun_tests" button

This commit is contained in:
Vokhmin Alexey V 2014-05-29 23:28:38 +04:00
parent 3d94b42100
commit 8ddfd281a2
1 changed files with 7 additions and 7 deletions

View File

@ -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),