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

fix: error de indentación

This commit is contained in:
maki 2024-05-31 10:53:51 -03:00
parent e58898178b
commit c0917b4c09

View file

@ -135,16 +135,16 @@
%span{ lang: post.locale, dir: dir }= category
= '/' unless post.front_matter['categories'].last == category
%td.text-nowrap
= post.created_at.strftime('%F')
%br/
= post.order
%td.text-nowrap
.d-flex.flex-row.align-items-start
- if @usuarie || policy(post).edit?
= link_to t('posts.edit_post'), edit_site_post_path(@site, post.path), class: 'btn btn-secondary'
- if @usuarie || policy(post).destroy?
= link_to t('posts.destroy'), site_post_path(@site, post.path), class: 'btn btn-secondary', method: :delete, data: { confirm: t('posts.confirm_destroy') }
%td.text-nowrap
= post.created_at.strftime('%F')
%br/
= post.order
%td.text-nowrap
.d-flex.flex-row.align-items-start
- if @usuarie || policy(post).edit?
= link_to t('posts.edit_post'), edit_site_post_path(@site, post.path), class: 'btn btn-secondary'
- if @usuarie || policy(post).destroy?
= link_to t('posts.destroy'), site_post_path(@site, post.path), class: 'btn btn-secondary', method: :delete, data: { confirm: t('posts.confirm_destroy') }
-#
Rescatar cualquier error en un post, notificarlo e
ignorar su renderización.