5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-24 16:46:22 +00:00
panel/app/views/posts/attribute_ro/_related_posts.haml
f 8350bfdfeb
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
fix: no leer los posts al obtener relaciones
2023-10-20 12:23:57 -03:00

10 lines
402 B
Text

%tr{ id: attribute }
%th= post_label_t(attribute, post: post)
%td
%ul{ dir: dir, lang: locale }
- site.indexed_posts.where(locale: post.lang.value, post_id: metadata.value).find_each do |p|
-#
XXX: Ignorar todos los posts no encontrados (ej: fueron
borrados o el uuid cambió)
- next unless p
%li= link_to p.title, site_post_path(site, p.path)