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

27 lines
1.0 KiB
Plaintext

= render 'platforms/base/submenu'
.row
.col-md-12
rd-widget
rd-widget-header
- if policy(@platform.mass_builds.build).create?
a.btn.btn-primary.pull-right href=new_platform_mass_build_path(@platform)
= t('layout.mass_builds.new')
rd-widget-body class="no-padding"
table.table.table-striped
thead
tr
th= t('activerecord.attributes.mass_build.id')
th= t('activerecord.attributes.mass_build.name')
th= t('activerecord.attributes.mass_build.description')
th= t('activerecord.attributes.mass_build.created_at')
th
tbody
- @mass_builds.each do |mass_build|
tr
td= mass_build.id
td= link_to_mass_build(mass_build)
td= mass_build.description
td= mass_build.created_at.to_s
td= link_to t('layout.show'), platform_mass_build_path(@platform, mass_build.id)
= will_paginate @mass_builds, rd_widget_footer: true