diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/helpers/nodes_helper.rb | 15 | ||||
| -rw-r--r-- | app/views/nodes/edit.html.erb | 3 |
2 files changed, 0 insertions, 18 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' |
diff --git a/app/views/nodes/edit.html.erb b/app/views/nodes/edit.html.erb index 498fa1f..31f585c 100644 --- a/app/views/nodes/edit.html.erb +++ b/app/views/nodes/edit.html.erb | |||
| @@ -15,9 +15,6 @@ | |||
| 15 | <% end %> | 15 | <% end %> |
| 16 | 16 | ||
| 17 | <div id="metadata"> | 17 | <div id="metadata"> |
| 18 | <div class="node_description">Event</div> | ||
| 19 | <div class="node_content"><%= event_information %></div> | ||
| 20 | |||
| 21 | <div class="node_description">Slug</div> | 18 | <div class="node_description">Slug</div> |
| 22 | <div class="node_content"> | 19 | <div class="node_content"> |
| 23 | <%= f.text_field( | 20 | <%= f.text_field( |
