sutty/app/views/sites/_build.haml

19 lines
569 B
Text
Raw Normal View History

- if policy(site).build?
- if site.enqueued?
= render 'layouts/btn_with_tooltip',
tooltip: t('help.sites.enqueued'),
text: t('sites.enqueued'),
type: 'secondary',
link: nil,
disabled: true
- else
= form_tag site_enqueue_path(site),
method: :post,
data: { controller: 'submit-once' },
class: 'form-inline inline' do
= button_tag type: 'submit',
class: 'btn no-border-radius',
title: t('help.sites.enqueue'),
data: { action: 'submit-once#disable' } do
= t('sites.enqueue')