2019-09-12 18:10:01 +00:00
|
|
|
- if policy(site).build?
|
|
|
|
- if site.enqueued?
|
|
|
|
= render 'layouts/btn_with_tooltip',
|
|
|
|
tooltip: t('help.sites.enqueued'),
|
2020-11-23 17:00:58 +00:00
|
|
|
text: t('sites.enqueued'),
|
2019-09-12 18:10:01 +00:00
|
|
|
type: 'secondary',
|
2021-04-16 14:07:28 +00:00
|
|
|
link: nil,
|
|
|
|
disabled: true
|
2019-09-12 18:10:01 +00:00
|
|
|
- else
|
|
|
|
= form_tag site_enqueue_path(site),
|
2021-04-16 14:07:28 +00:00
|
|
|
method: :post,
|
|
|
|
data: { controller: 'submit-once' },
|
|
|
|
class: 'form-inline inline' do
|
2019-09-12 18:10:01 +00:00
|
|
|
= button_tag type: 'submit',
|
|
|
|
class: 'btn no-border-radius',
|
|
|
|
title: t('help.sites.enqueue'),
|
2021-04-16 14:07:28 +00:00
|
|
|
data: { action: 'submit-once#disable' } do
|
2019-09-12 18:10:01 +00:00
|
|
|
= t('sites.enqueue')
|