diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-06-28 04:43:28 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-06-30 19:22:24 +0200 |
| commit | 4dd49b1eebb0a99d3aee66b7eca539c87a9c6332 (patch) | |
| tree | a3bc6325c6433c8cf29f2fcff4c3459c6d612d6d /app/helpers/content_helper.rb | |
| parent | a7a6ad786eeb9f94f7882462bccbdd31e1bb4743 (diff) | |
Phase 2: chapter nodes, aggregate partial, fixes
- _chapter.html.erb: new partial for erfa/chaostreff aggregated lists;
renders title, location, external_url, sanitized body
- content_helper: fix aggregate attr regex to allow hyphens in values
(erfa-detail tag was silently dropped); add debug logging (remove)
- page.rb: suppress libxml stderr noise in rewrite_links_in_body
- db/seeds/chapters.rb: one-shot seed script for erfa and chaostreff
chapter nodes under parent nodes 548/549; creates bilingual pages,
external_url, primary events with RRULEs where known
Note: run Node.rebuild!(false) after execution to fix lft/rgt values
Diffstat (limited to 'app/helpers/content_helper.rb')
| -rw-r--r-- | app/helpers/content_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/content_helper.rb b/app/helpers/content_helper.rb index 21cc579..53bf5b2 100644 --- a/app/helpers/content_helper.rb +++ b/app/helpers/content_helper.rb | |||
| @@ -80,7 +80,7 @@ module ContentHelper | |||
| 80 | begin | 80 | begin |
| 81 | if content =~ /\[aggregate([^\]]*)\]/ | 81 | if content =~ /\[aggregate([^\]]*)\]/ |
| 82 | tag = $~.to_s | 82 | tag = $~.to_s |
| 83 | matched_data = $1.scan(/\w+\="[a-zA-Z\s\/_\d,.=]*"/) | 83 | matched_data = $1.scan(/\w+\="[a-zA-Z\s\/_\d,.=-]*"/) |
| 84 | 84 | ||
| 85 | matched_data.each do |data| | 85 | matched_data.each do |data| |
| 86 | splitted_data = data.split("=", 2) | 86 | splitted_data = data.split("=", 2) |
