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'),
|
|
|
|
text: t('.enqueued'),
|
|
|
|
type: 'secondary',
|
|
|
|
link: nil
|
|
|
|
- else
|
|
|
|
= form_tag site_enqueue_path(site),
|
2020-02-11 17:43:02 +00:00
|
|
|
method: :post, 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'),
|
|
|
|
data: { toggle: 'tooltip' } do
|
|
|
|
= t('sites.enqueue')
|