5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 04:31:41 +00:00
panel/app/views/sites/index.haml

32 lines
1.2 KiB
Text
Raw Normal View History

2018-01-29 22:19:10 +00:00
2018-02-05 17:27:12 +00:00
.row
.col
= render 'layouts/breadcrumb', crumbs: [ t('sites.index') ]
.row
.col
%h1= t('sites.title')
%table.table.table-striped.table-condensed
%tbody
- @sites.each do |site|
%tr
2018-02-26 18:46:47 +00:00
%td
%h2= link_to site.name, site_path(site)
%br
.btn-group{role: 'group', 'aria-label': t('sites.actions')}
= link_to t('sites.posts'), site_path(site), class: 'btn btn-success'
= link_to t('i18n.edit'), site_i18n_edit_path(site), class: 'btn btn-info'
- if site.enqueued?
%button.btn.btn-secondary= t('sites.enqueued')
- else
= form_tag site_enqueue_path(site), method: :post, class: 'form-inline' do
= button_tag type: 'submit', class: 'btn btn-success' do
= fa_icon 'building'
= t('sites.enqueue')
- if site.failed?
%button.btn.btn-danger= t('sites.failed')
- if site.build_log?
= link_to t('sites.build_log'), site_build_log_path(site),
class: 'btn btn-warning'