diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-04 01:34:42 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-04 01:34:42 +0200 |
| commit | 9c630d186003a47563be2e3547485060dac7dd98 (patch) | |
| tree | 7acb710dd63d0bb332c2f2e3e68c5a245d5a851a /app/helpers | |
| parent | 4596b32a0787a574881284d042bb77c970df8a4d (diff) | |
Retire event_information, superseded by nodes#show's event manager
The metadata-panel "Event" field on nodes#edit called event_information,
a second, tag-less implementation of "list events + add one" - now
redundant now that nodes#show has the tag-aware version with the
auto-tag flash explanation. Confirmed via grep this was the only call
site before removing both it and the method definition.
Diffstat (limited to 'app/helpers')
| -rw-r--r-- | app/helpers/nodes_helper.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/app/helpers/nodes_helper.rb b/app/helpers/nodes_helper.rb index 093bfc6..2baf813 100644 --- a/app/helpers/nodes_helper.rb +++ b/app/helpers/nodes_helper.rb | |||
| @@ -29,21 +29,6 @@ module NodesHelper | |||
| 29 | User.all.map {|u| [u.login, u.id]} | 29 | User.all.map {|u| [u.login, u.id]} |
| 30 | end | 30 | end |
| 31 | 31 | ||
| 32 | def event_information | ||
| 33 | events = @node.events.order(:start_time) | ||
| 34 | items = events.map do |event| | ||
| 35 | safe_join([ | ||
| 36 | "#{event.start_time&.to_fs(:db)} - #{event.end_time&.to_fs(:db)} > ", | ||
| 37 | link_to('edit', edit_event_path(event)), | ||
| 38 | ]) | ||
| 39 | end | ||
| 40 | safe_join([ | ||
| 41 | safe_join(items, ' | '), | ||
| 42 | ' > ', | ||
| 43 | link_to('add event', new_event_path(:node_id => @node.id)) | ||
| 44 | ]) | ||
| 45 | end | ||
| 46 | |||
| 47 | DEFAULT_EVENT_TAG_BY_PAGE_TAG = { | 32 | DEFAULT_EVENT_TAG_BY_PAGE_TAG = { |
| 48 | 'erfa-detail' => 'open-day', | 33 | 'erfa-detail' => 'open-day', |
| 49 | 'chaostreff-detail' => 'open-day' | 34 | 'chaostreff-detail' => 'open-day' |
