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

poder ver las categorias que son articulos

This commit is contained in:
f 2021-05-10 15:28:04 -03:00
parent 1e2b2d9de3
commit 9e935a2c49

View file

@ -99,9 +99,13 @@
- unless post.categories.value.empty?
%br
%small
- (post.categories.respond_to?(:belongs_to) ? post.categories.belongs_to : post.categories.value).each do |c|
- categories = post.categories.respond_to?(:has_many) ? post.categories.has_many : post.categories.value
- categories.each do |c|
- c.read
= link_to site_posts_path(@site, category: (c.respond_to?(:uuid) ? c.uuid.value : c)) do
%span{ lang: post.lang.value, dir: dir }= (c.respond_to?(:title) ? c.title.value : c)
- unless categories.last == c
= '/'
%td
= post.date.value.strftime('%F')