mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-25 23:06:22 +00:00
chore: haml-lint
This commit is contained in:
parent
9c8834facc
commit
a84ba934cb
6 changed files with 12 additions and 13 deletions
|
@ -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))
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
end
|
||||
|
||||
options = {
|
||||
id: base,
|
||||
id: base,
|
||||
multipart: true,
|
||||
class: 'form post ',
|
||||
'hx-swap': params.require(:swap),
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
-#
|
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue