5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 17:16:23 +00:00

Merge branch 'issue-10491' into panel.sutty.nl
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
f 2023-04-05 19:31:24 -03:00
commit 20cfaf0777
3 changed files with 26 additions and 24 deletions

View file

@ -44,6 +44,6 @@ class MetadataLocales < MetadataHasAndBelongsToMany
def posts
other_locales.map do |locale|
site.posts(lang: locale).where(layout: post.layout.value)
end.reduce(&:concat) || PostRelation.new
end.reduce(&:concat) || PostRelation.new(site: site, lang: 'any')
end
end

View file

@ -1,4 +1,5 @@
%tr{ id: attribute }
- if site.locales.count > 1
%tr{ id: attribute }
%th= post_label_t(attribute, post: post)
%td
%ul

View file

@ -1,4 +1,5 @@
%fieldset
- if site.locales.count > 1
%fieldset
%legend= post_label_t(attribute, post: post)
= render 'posts/attribute_feedback',