diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-02 00:12:02 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-02 00:12:02 +0200 |
| commit | b6416e86c9c58b8e886c14de55b01aeb863b8676 (patch) | |
| tree | 55a69ed46888e6a47ccc35a22cef45a33cddfd87 /app/views/nodes | |
| parent | bf68c8fed6776cd40d859e6e968a251b4b934c8b (diff) | |
Clean up events views: return_to, subnav, remove custom_rrule
- events_controller: wire return_to through show and new actions;
create respects return_to with fallback to node/event path;
new pre-populates node_id and tag_list from params
- events/edit: remove custom_rrule checkbox; node link removed from
subnav (use show for node navigation); destroy button added
- events/new: remove custom_rrule checkbox; add return_to hidden
field and back link; tag_list field added
- events/show: fix back link via safe_return_to; add node link to
subnav; add destroy button; remove custom_rrule display; show
humanized rrule below raw string
- events/index: destructive class on destroy button; node_id column
replaced with node link; show/edit links carry return_to
- nodes/show: add show/edit links to event entries with return_to
Diffstat (limited to 'app/views/nodes')
| -rw-r--r-- | app/views/nodes/show.html.erb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/views/nodes/show.html.erb b/app/views/nodes/show.html.erb index 7223219..2ce3853 100644 --- a/app/views/nodes/show.html.erb +++ b/app/views/nodes/show.html.erb | |||
| @@ -48,7 +48,11 @@ | |||
| 48 | <td> | 48 | <td> |
| 49 | <ul> | 49 | <ul> |
| 50 | <% @node.events.order(:start_time).each do |event| %> | 50 | <% @node.events.order(:start_time).each do |event| %> |
| 51 | <li><%= event_schedule_text(event) %><%= " (primary)" if event.is_primary? %></li> | 51 | <li> |
| 52 | <%= event_schedule_text(event) %> | ||
| 53 | [<%= link_to 'show', event_path(event, return_to: request.path) %> | ||
| 54 | | <%= link_to 'edit', edit_event_path(event, return_to: request.path) %>] | ||
| 55 | </li> | ||
| 52 | <% end %> | 56 | <% end %> |
| 53 | </ul> | 57 | </ul> |
| 54 | </td> | 58 | </td> |
