rosa-build/app/views/platforms/mass_builds/index.html.haml

61 lines
3.1 KiB
Plaintext
Raw Normal View History

= render 'platforms/base/submenu'
= render 'platforms/base/sidebar'
2012-05-28 11:28:19 +01:00
= render 'form' if can? :edit, @platform
%table.tablesorter.unbordered{:cellpadding => "0", :cellspacing => "0"}
%thead
%tr
2012-05-28 20:18:50 +01:00
%th.lpadding16= t('activerecord.attributes.mass_build.id')
%th.lpadding16= t('activerecord.attributes.mass_build.name')
2012-06-27 15:06:59 +01:00
%th.lpadding16= t("layout.mass_builds.statuses")
%th.lpadding16= t("layout.mass_builds.failed_builds_list")
%th.lpadding16= t("layout.mass_builds.actions")
%th.lpadding16= t("layout.mass_builds.extended_data")
- @mass_builds.each do |mass_build|
%tr
2012-05-28 20:18:50 +01:00
%td= mass_build.id
%td= link_to mass_build.name, build_lists_path(:filter => {:mass_build_id => mass_build.id, :ownership => 'everything'})
2012-06-27 15:06:59 +01:00
%td.min_width_120
- MassBuild::COUNT_STATUSES.each do |status|
= link_to t("layout.build_lists.statuses.#{status}") + ": ", build_lists_path(:filter => {:mass_build_id => mass_build.id, :ownership => 'everything'}.merge(status != :build_lists ? {:status => BuildList.status_by_human(status)} : {}))
= mass_build.read_attribute "#{status}_count"
.both
2012-12-06 17:59:17 +00:00
-if mass_build.projects_list.present?
=link_to_list @platform, mass_build, 'missed_projects_list'
= mass_build.read_attribute 'missed_projects_count'
%td
=link_to_list @platform, mass_build, 'failed_builds_list'
2013-03-22 13:05:14 +00:00
%td.right.mass-build-actions
- if can?(:publish, mass_build)
- unless mass_build.auto_publish?
2013-03-22 14:29:18 +00:00
= link_to t('layout.mass_builds.publish_success'),
publish_platform_mass_build_path(@platform, mass_build.id),
:method => :post, :confirm => t("layout.confirm"), :class => 'button'
= 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)
2013-03-22 14:29:18 +00:00
= 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
%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 }"}
2012-12-06 17:59:17 +00:00
-if mass_build.projects_list.present?
= link_to_list @platform, mass_build, 'projects_list'
.both
= t('activerecord.attributes.mass_build.arch_names') + ": "
= mass_build.arch_names
.both
= t('activerecord.attributes.mass_build.user') + ": "
= link_to mass_build.user.fullname, mass_build.user
.both
= t('activerecord.attributes.mass_build.auto_publish') + ": "
= mass_build.auto_publish
.both
= t('activerecord.attributes.mass_build.created_at') + ": "
= mass_build.created_at
= will_paginate @mass_builds