5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-25 23:06:22 +00:00

chore: haml-lint

This commit is contained in:
f 2024-05-24 13:23:30 -03:00
parent 9c8834facc
commit a84ba934cb
No known key found for this signature in database
6 changed files with 12 additions and 13 deletions

View file

@ -11,7 +11,7 @@
- cache [metadata, I18n.locale] do
= render("posts/attributes/#{type}",
base: base, post: post, attribute: attribute,
metadata: metadata, site: site,
dir: dir, locale: locale,
autofocus: (post.attributes.first == attribute))
base: base, post: post, attribute: attribute,
metadata: metadata, site: site,
dir: dir, locale: locale,
autofocus: (post.attributes.first == attribute))

View file

@ -9,10 +9,11 @@
- next if attribute == :date
- next if attribute == :draft
- next if attribute == inverse
- metadata = post[attribute]
- cache [post, metadata, I18n.locale] do
= render "posts/attributes/#{metadata.type}",
base: base, post: post, attribute: attribute,
metadata: metadata, site: site,
dir: dir, locale: locale, autofocus: false
base: base, post: post, attribute: attribute,
metadata: metadata, site: site,
dir: dir, locale: locale, autofocus: false

View file

@ -33,8 +33,7 @@
- dir = t("locales.#{@locale}.dir")
-# Comienza el formulario
= form_tag url, method: method, class: 'form post ' + extra_class, multipart: true do
= form_tag url, method: method, class: "form post #{extra_class}", multipart: true do
-# Botones de guardado
= render 'posts/submit', site: site, post: post

View file

@ -13,7 +13,7 @@
end
options = {
id: base,
id: base,
multipart: true,
class: 'form post ',
'hx-swap': params.require(:swap),

View file

@ -1 +0,0 @@
-#

View file

@ -4,7 +4,7 @@
.col-md-8
%article.content.table-responsive-md
= link_to t('posts.edit_post'),
edit_site_post_path(@site, @post.id),
class: 'btn btn-secondary btn-block'
edit_site_post_path(@site, @post.id),
class: 'btn btn-secondary btn-block'
= render 'table', dir: dir, site: @site, locale: @locale, post: @post, title: t('.front_matter')