5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-25 21:46:21 +00:00
panel/app/views/sites/_build.haml

10 lines
419 B
Text
Raw Normal View History

- if policy(site).build?
= form_tag site_enqueue_path(site),
method: :post,
class: 'form-inline inline' do
= submit_tag site.enqueued? ? t('sites.enqueued') : t('sites.enqueue'),
2023-04-13 17:27:51 +00:00
class: "btn no-border-radius #{local_assigns[:class]}",
title: site.enqueued? ? t('help.sites.enqueued') : t('help.sites.enqueue'),
data: { disable_with: t('sites.enqueued') },
disabled: site.enqueued?