diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-02 15:13:52 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-02 15:13:52 +0200 |
| commit | 175b408948e601d3db568768a309eed8f2edb307 (patch) | |
| tree | eef1106f7fb857d26d08aa7fb9055d3c25ad207e /app/views/content | |
| parent | 9a3274345dc83096a9bdea612ec77cb2406fef21 (diff) | |
Add 'open today' sidebar widget and open days in chapter lists
- open_erfas_today helper: samples 3 random open-day-tagged occurrences
of the current day; widget hidden entirely on days without open
chapters; heading shows current weekday
- content/_open_erfas_today partial rendered in right column above
tags and featured articles
- _chapter partial: open-day schedules (event_schedule_text) shown
inline in aggregated chapter lists with 'Offene Tage' label
- ccc.css: open_erfas_today added to existing right-column widget
selector groups (headings, lists, links)
Diffstat (limited to 'app/views/content')
| -rw-r--r-- | app/views/content/_open_erfas_today.html.erb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/views/content/_open_erfas_today.html.erb b/app/views/content/_open_erfas_today.html.erb new file mode 100644 index 0000000..3448af3 --- /dev/null +++ b/app/views/content/_open_erfas_today.html.erb | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | <div id="open_erfas_today"> | ||
| 2 | <h2><%= t(:open_today) %></h2> | ||
| 3 | <ul class="teasertext"> | ||
| 4 | <% occurrences.each do |occurrence| %> | ||
| 5 | <li> | ||
| 6 | <%= link_to_path occurrence.node.head.title, occurrence.node.unique_name %> | ||
| 7 | <span class="event_time"><%= occurrence.start_time.strftime("%H:%M") %></span> | ||
| 8 | </li> | ||
| 9 | <% end %> | ||
| 10 | </ul> | ||
| 11 | </div> | ||
