5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 14:16:23 +00:00
panel/app/views/sites/_build.haml

16 lines
486 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
- else
= form_tag site_enqueue_path(site),
method: :post, class: 'form-inline inline' do
= button_tag type: 'submit',
class: 'btn no-border-radius',
title: t('help.sites.enqueue'),
data: { toggle: 'tooltip' } do
= t('sites.enqueue')