diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-06-29 16:26:31 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-06-30 19:22:24 +0200 |
| commit | 4705ef970469a852c7bdb4c097ba748e972c8f63 (patch) | |
| tree | 2ff4d47196291b1a5ed1e721a302e89a821d67be /db | |
| parent | 4dd49b1eebb0a99d3aee66b7eca539c87a9c6332 (diff) | |
Add chapter_detail template with events and external URL rendering
New public page template for erfa and chaostreff nodes. Renders the
node's external_url and lists associated events below the page content.
Seed script updated to set template_name: 'chapter_detail' on all
chapter drafts so the template is applied on publish.
Diffstat (limited to 'db')
| -rw-r--r-- | db/seeds/chapters.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/db/seeds/chapters.rb b/db/seeds/chapters.rb index cb48894..8584acd 100644 --- a/db/seeds/chapters.rb +++ b/db/seeds/chapters.rb | |||
| @@ -34,6 +34,7 @@ def seed_chapter(parent_id:, slug:, tag:, title_de:, description_de:, | |||
| 34 | 34 | ||
| 35 | # Set up draft with German translation | 35 | # Set up draft with German translation |
| 36 | draft = node.draft | 36 | draft = node.draft |
| 37 | draft.template_name = 'chapter_detail' | ||
| 37 | I18n.with_locale(:de) do | 38 | I18n.with_locale(:de) do |
| 38 | draft.title = title_de | 39 | draft.title = title_de |
| 39 | draft.abstract = location || "" | 40 | draft.abstract = location || "" |
