5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 05:36:21 +00:00
panel/app/views/posts/attributes/_has_one_nested.haml

6 lines
385 B
Text

- nested_post = metadata.has_one || site.posts(lang: locale).build(layout: metadata.nested)
- base = "#{base}[#{metadata.name}]"
.form-group
= render 'layouts/details', id: metadata.nested, summary: site.layouts[metadata.nested].humanized_name do
= render 'posts/attributes_nested', site: site, post: nested_post, dir: dir, base: base, locale: locale, inverse: metadata.inverse