Merge pull request #47 from abf/rosa-build:40-update-ui-on-mass-builds-page

#40: update UI on mass_builds page.
This commit is contained in:
avm 2013-03-22 18:51:59 +04:00
commit 2460b29fd0
2 changed files with 16 additions and 8 deletions

View File

@ -982,6 +982,10 @@ table.diff {
} }
/* Mass build forms */ /* Mass build forms */
.mass-build-actions a.button {
margin-bottom: 5px;
}
form.mass_build input[type="checkbox"] { form.mass_build input[type="checkbox"] {
width: 10px; width: 10px;
height: 11px; height: 11px;

View File

@ -43,16 +43,20 @@
= mass_build.read_attribute 'missed_projects_count' = mass_build.read_attribute 'missed_projects_count'
%td %td
=link_to_list @platform, mass_build, 'failed_builds_list' =link_to_list @platform, mass_build, 'failed_builds_list'
%td.right %td.right.mass-build-actions
- if can?(:publish, mass_build) - if can?(:publish, mass_build)
- if mass_build.auto_publish? - unless mass_build.auto_publish?
= link_to t("layout.mass_builds.publish_success"), publish_platform_mass_build_path(@platform, mass_build.id), :method => :post = link_to t('layout.mass_builds.publish_success'),
%br publish_platform_mass_build_path(@platform, mass_build.id),
= link_to t("layout.mass_builds.publish_test_failed"), publish_platform_mass_build_path(@platform, mass_build.id, :status => 'test_failed'), :method => :post :method => :post, :confirm => t("layout.confirm"), :class => 'button'
%br = link_to t('layout.mass_builds.publish_test_failed'),
publish_platform_mass_build_path(@platform, mass_build.id, :status => 'test_failed'),
:method => :post, :confirm => t("layout.confirm"), :class => 'button'
- if can?(:cancel, mass_build) - if can?(:cancel, mass_build)
= link_to image_tag('x.png'), cancel_platform_mass_build_path(@platform, mass_build.id), :method => :post, :confirm => t('layout.mass_builds.cancel_confirm') = link_to t('layout.cancel'),
cancel_platform_mass_build_path(@platform, mass_build.id),
:method => :post, :class => 'button',
:confirm => t('layout.mass_builds.cancel_confirm')
%td %td
%a.toggle_btn{:href => "#toggle_#{ mass_build.id }", :'data-target' => "#toggle_#{ mass_build.id }"}= t("layout.mass_builds.extended_data") %a.toggle_btn{:href => "#toggle_#{ mass_build.id }", :'data-target' => "#toggle_#{ mass_build.id }"}= t("layout.mass_builds.extended_data")
.toggle{:id => "toggle_#{ mass_build.id }"} .toggle{:id => "toggle_#{ mass_build.id }"}