5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2025-03-15 06:08:18 +00:00

Merge branch 'issue-15068' into production.panel.sutty.nl

This commit is contained in:
f 2024-06-25 17:01:31 -03:00
commit d9c4ae7b7f
No known key found for this signature in database
6 changed files with 7 additions and 5 deletions

View file

@ -44,7 +44,7 @@
Para poder cancelar, mantenemos el estado original y desactivamos Para poder cancelar, mantenemos el estado original y desactivamos
o activamos los ítemes según estén incluidos en esa lista o no. o activamos los ítemes según estén incluidos en esa lista o no.
.row.row-cols-3.row-cols-md-4.no-gutters.placeholder-glow{ data: { target: 'array.current' } } .row.no-gutters.placeholder-glow{ data: { target: 'array.current' } }
-# @todo issue-7537 -# @todo issue-7537
- if !metadata.empty? && (indexed_post = site.indexed_posts.find_by(post_id: metadata.value)) - if !metadata.empty? && (indexed_post = site.indexed_posts.find_by(post_id: metadata.value))
= render 'posts/new_related_post', post: indexed_post = render 'posts/new_related_post', post: indexed_post

View file

@ -44,7 +44,7 @@
Para poder cancelar, mantenemos el estado original y desactivamos Para poder cancelar, mantenemos el estado original y desactivamos
o activamos los ítemes según estén incluidos en esa lista o no. o activamos los ítemes según estén incluidos en esa lista o no.
.row.row-cols-3.row-cols-md-4.no-gutters.placeholder-glow{ data: { target: 'array.current' } } .row.no-gutters.placeholder-glow{ data: { target: 'array.current' } }
-# @todo issue-7537 -# @todo issue-7537
- metadata.value.each do |uuid| - metadata.value.each do |uuid|
- if (indexed_post = site.indexed_posts.find_by(post_id: uuid)) - if (indexed_post = site.indexed_posts.find_by(post_id: uuid))

View file

@ -44,7 +44,7 @@
Para poder cancelar, mantenemos el estado original y desactivamos Para poder cancelar, mantenemos el estado original y desactivamos
o activamos los ítemes según estén incluidos en esa lista o no. o activamos los ítemes según estén incluidos en esa lista o no.
.row.row-cols-3.row-cols-md-4.no-gutters.placeholder-glow{ data: { target: 'array.current' } } .row.no-gutters.placeholder-glow{ data: { target: 'array.current' } }
-# @todo issue-7537 -# @todo issue-7537
- metadata.value.each do |uuid| - metadata.value.each do |uuid|
- if (indexed_post = site.indexed_posts.find_by(post_id: uuid)) - if (indexed_post = site.indexed_posts.find_by(post_id: uuid))

View file

@ -31,7 +31,7 @@
= render 'bootstrap/btn', content: t('.edit'), action: 'modal#showAnother', data: { 'modal-show-value': modal_id }, id: random_id = render 'bootstrap/btn', content: t('.edit'), action: 'modal#showAnother', data: { 'modal-show-value': modal_id }, id: random_id
-# Aquí se reemplaza por la tarjeta y el UUID luego de guardar -# Aquí se reemplaza por la tarjeta y el UUID luego de guardar
.row.row-cols-1.no-gutters.placeholder-glow{ id: target_id } .row.no-gutters.placeholder-glow{ id: target_id }
-# @todo issue-7537 -# @todo issue-7537
- if !metadata.empty? && (indexed_post = site.indexed_posts.find_by(post_id: metadata.value)) - if !metadata.empty? && (indexed_post = site.indexed_posts.find_by(post_id: metadata.value))
= render 'posts/new_has_one', post: indexed_post, name: name, value: metadata.value = render 'posts/new_has_one', post: indexed_post, name: name, value: metadata.value

View file

@ -44,7 +44,7 @@
Para poder cancelar, mantenemos el estado original y desactivamos Para poder cancelar, mantenemos el estado original y desactivamos
o activamos los ítemes según estén incluidos en esa lista o no. o activamos los ítemes según estén incluidos en esa lista o no.
%ul.placeholder-glow{ data: { target: 'array.current' } } %ul.list-unstyled.px-3.font-weight-bold.placeholder-glow{ data: { target: 'array.current' } }
- unless metadata.empty? - unless metadata.empty?
= render 'posts/new_array_value', value: metadata.to_s = render 'posts/new_array_value', value: metadata.to_s

View file

@ -100,6 +100,8 @@
- dir = @site.data.dig(params[:locale], 'dir') - dir = @site.data.dig(params[:locale], 'dir')
- size = @posts.size - size = @posts.size
- @posts.each_with_index do |post, i| - @posts.each_with_index do |post, i|
-# @todo issue-7537
- next if post.layout.hidden?
-# -#
TODO: Solo les usuaries cachean porque tenemos que separar TODO: Solo les usuaries cachean porque tenemos que separar
les botones por permisos. les botones por permisos.