mirror of
https://0xacab.org/sutty/sutty
synced 2025-03-19 21:38:15 +00:00
Merge branch 'issue-15109-1' into production.panel.sutty.nl
This commit is contained in:
commit
750120981d
1 changed files with 5 additions and 4 deletions
|
@ -135,10 +135,11 @@
|
||||||
%br/
|
%br/
|
||||||
= post.order
|
= post.order
|
||||||
%td.text-nowrap
|
%td.text-nowrap
|
||||||
- if @usuarie || policy(post).edit?
|
.d-flex.flex-row.align-items-start
|
||||||
= link_to t('posts.edit'), edit_site_post_path(@site, post.path), class: 'btn btn-secondary btn-block'
|
- if @usuarie || policy(post).edit?
|
||||||
- if @usuarie || policy(post).destroy?
|
= link_to t('posts.edit'), edit_site_post_path(@site, post.path), class: 'btn btn-secondary'
|
||||||
= link_to t('posts.destroy'), site_post_path(@site, post.path), class: 'btn btn-secondary btn-block', method: :delete, data: { confirm: t('posts.confirm_destroy') }
|
- 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
|
Rescatar cualquier error en un post, notificarlo e
|
||||||
ignorar su renderización.
|
ignorar su renderización.
|
||||||
|
|
Loading…
Reference in a new issue