mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 22:16:21 +00:00
solo las usuarias pueden ordenar posts
This commit is contained in:
parent
e3c42bc606
commit
c9e4356dba
1 changed files with 20 additions and 19 deletions
|
@ -51,6 +51,7 @@
|
||||||
sort_by: s)
|
sort_by: s)
|
||||||
= form_tag site_reorder_posts_path, method: :post do
|
= form_tag site_reorder_posts_path, method: :post do
|
||||||
= hidden_field 'posts', 'lang', value: @lang
|
= hidden_field 'posts', 'lang', value: @lang
|
||||||
|
- if policy(@site).reorder_posts?
|
||||||
- if @site.ordered? @lang
|
- if @site.ordered? @lang
|
||||||
.reorder-posts-panel.alert.alert-info.alert-dismissible.fade.show{role: 'alert'}
|
.reorder-posts-panel.alert.alert-info.alert-dismissible.fade.show{role: 'alert'}
|
||||||
= raw t('help.posts.reorder')
|
= raw t('help.posts.reorder')
|
||||||
|
@ -79,7 +80,7 @@
|
||||||
-# establecer la direccion del texto
|
-# establecer la direccion del texto
|
||||||
- direction = post.get_front_matter(:dir)
|
- direction = post.get_front_matter(:dir)
|
||||||
%tr
|
%tr
|
||||||
- if @site.ordered? @lang
|
- if policy(@site).reorder_posts? && @site.ordered?(@lang)
|
||||||
%td
|
%td
|
||||||
= fa_icon 'arrows-v', class: 'handle'
|
= fa_icon 'arrows-v', class: 'handle'
|
||||||
= hidden_field 'posts[order]', i, value: post.order, class: 'post_order'
|
= hidden_field 'posts[order]', i, value: post.order, class: 'post_order'
|
||||||
|
|
Loading…
Reference in a new issue