5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 00:21:41 +00:00

Merge branch 'issue-13071' into 'rails'
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

Issue #13071

See merge request sutty/sutty!166
This commit is contained in:
fauno 2023-04-19 13:57:34 +00:00
commit 00d3b814d8
2 changed files with 3 additions and 3 deletions

View file

@ -5,6 +5,8 @@
- cache_if @usuarie, [@site, I18n.locale] do - cache_if @usuarie, [@site, I18n.locale] do
= render 'sites/status', site: @site = render 'sites/status', site: @site
= render 'sites/build', site: @site, class: 'btn-block'
%h3= t('posts.new') %h3= t('posts.new')
%table.mb-3 %table.mb-3
- @site.layouts.sort_by(&:humanized_name).each do |layout| - @site.layouts.sort_by(&:humanized_name).each do |layout|
@ -33,8 +35,6 @@
type: 'info', type: 'info',
link: site_usuaries_path(@site) link: site_usuaries_path(@site)
= render 'sites/build', site: @site
- if @site.design.credits - if @site.design.credits
= render 'bootstrap/alert' do = render 'bootstrap/alert' do
= sanitize_markdown @site.design.credits = sanitize_markdown @site.design.credits

View file

@ -3,7 +3,7 @@
method: :post, method: :post,
class: 'form-inline inline' do class: 'form-inline inline' do
= submit_tag site.enqueued? ? t('sites.enqueued') : t('sites.enqueue'), = submit_tag site.enqueued? ? t('sites.enqueued') : t('sites.enqueue'),
class: 'btn no-border-radius', class: "btn no-border-radius #{local_assigns[:class]}",
title: site.enqueued? ? t('help.sites.enqueued') : t('help.sites.enqueue'), title: site.enqueued? ? t('help.sites.enqueued') : t('help.sites.enqueue'),
data: { disable_with: t('sites.enqueued') }, data: { disable_with: t('sites.enqueued') },
disabled: site.enqueued? disabled: site.enqueued?