2019-09-12 18:10:01 +00:00
|
|
|
- if policy(site).build?
|
2021-04-21 18:26:27 +00:00
|
|
|
= form_tag site_enqueue_path(site),
|
|
|
|
method: :post,
|
|
|
|
class: 'form-inline inline' do
|
|
|
|
= submit_tag site.enqueued? ? t('sites.enqueued') : t('sites.enqueue'),
|
|
|
|
class: 'btn no-border-radius',
|
|
|
|
title: site.enqueued? ? t('help.sites.enqueued') : t('help.sites.enqueue'),
|
|
|
|
data: { disable_with: t('sites.enqueued') },
|
|
|
|
disabled: site.enqueued?
|