From 22c690749e154a5426c4f190fbbc08a5dee2eeee Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sat, 25 Jul 2026 17:29:35 +0200 Subject: Retire the unroutable occurrences scaffolding --- app/views/layouts/occurrences.html.erb | 17 ----------------- app/views/occurrences/edit.html.erb | 32 -------------------------------- app/views/occurrences/index.html.erb | 30 ------------------------------ app/views/occurrences/new.html.erb | 31 ------------------------------- app/views/occurrences/show.html.erb | 28 ---------------------------- 5 files changed, 138 deletions(-) delete mode 100644 app/views/layouts/occurrences.html.erb delete mode 100644 app/views/occurrences/edit.html.erb delete mode 100644 app/views/occurrences/index.html.erb delete mode 100644 app/views/occurrences/new.html.erb delete mode 100644 app/views/occurrences/show.html.erb (limited to 'app/views') diff --git a/app/views/layouts/occurrences.html.erb b/app/views/layouts/occurrences.html.erb deleted file mode 100644 index ab4aca63..00000000 --- a/app/views/layouts/occurrences.html.erb +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - Occurrences: <%= controller.action_name %> - <%= stylesheet_link_tag 'scaffold' %> - - - -

<%= flash[:notice] %>

- -<%= yield %> - - - diff --git a/app/views/occurrences/edit.html.erb b/app/views/occurrences/edit.html.erb deleted file mode 100644 index aa4f6e07..00000000 --- a/app/views/occurrences/edit.html.erb +++ /dev/null @@ -1,32 +0,0 @@ -

Editing occurrence

- -<%= form_for(@occurrence) do |f| %> - <%= form_error_messages(f) %> - -

- <%= f.label :summary %>
- <%= f.text_field :summary %> -

-

- <%= f.label :start_time %>
- <%= f.datetime_select :start_time %> -

-

- <%= f.label :end_time %>
- <%= f.datetime_select :end_time %> -

-

- <%= f.label :node_id %>
- <%= f.text_field :node_id %> -

-

- <%= f.label :event_id %>
- <%= f.text_field :event_id %> -

-

- <%= f.submit 'Update' %> -

-<% end %> - -<%= link_to 'Show', @occurrence %> | -<%= link_to 'Back', occurrences_path %> diff --git a/app/views/occurrences/index.html.erb b/app/views/occurrences/index.html.erb deleted file mode 100644 index aa084ed9..00000000 --- a/app/views/occurrences/index.html.erb +++ /dev/null @@ -1,30 +0,0 @@ -

Occurrences

- - - - - - - - - - -<% @occurrences.each do |occurrence| %> - - - - - - - - - - -<% end %> -
SummaryStart timeEnd timeNodeEvent
<%=h occurrence.summary %><%=h occurrence.start_time %><%=h occurrence.end_time %><%=h occurrence.node_id %><%=h occurrence.event_id %><%= link_to 'Show', occurrence %><%= link_to 'Edit', edit_occurrence_path(occurrence) %><%= button_to occurrence, method: :delete, form: { data: { confirm: 'Are you sure?' }, class: 'button_to destructive' } do %> - <%= icon("trash", library: "tabler", "aria-hidden": true) %> Destroy - <% end %>
- -
- -<%= link_to 'New occurrence', new_occurrence_path %> diff --git a/app/views/occurrences/new.html.erb b/app/views/occurrences/new.html.erb deleted file mode 100644 index c05ce400..00000000 --- a/app/views/occurrences/new.html.erb +++ /dev/null @@ -1,31 +0,0 @@ -

New occurrence

- -<%= form_for(@occurrence) do |f| %> - <%= form_error_messages(f) %> - -

- <%= f.label :summary %>
- <%= f.text_field :summary %> -

-

- <%= f.label :start_time %>
- <%= f.datetime_select :start_time %> -

-

- <%= f.label :end_time %>
- <%= f.datetime_select :end_time %> -

-

- <%= f.label :node_id %>
- <%= f.text_field :node_id %> -

-

- <%= f.label :event_id %>
- <%= f.text_field :event_id %> -

-

- <%= f.submit 'Create' %> -

-<% end %> - -<%= link_to 'Back', occurrences_path %> diff --git a/app/views/occurrences/show.html.erb b/app/views/occurrences/show.html.erb deleted file mode 100644 index 9e831cf3..00000000 --- a/app/views/occurrences/show.html.erb +++ /dev/null @@ -1,28 +0,0 @@ -

- Summary: - <%=h @occurrence.summary %> -

- -

- Start time: - <%=h @occurrence.start_time %> -

- -

- End time: - <%=h @occurrence.end_time %> -

- -

- Node: - <%=h @occurrence.node_id %> -

- -

- Event: - <%=h @occurrence.event_id %> -

- - -<%= link_to 'Edit', edit_occurrence_path(@occurrence) %> | -<%= link_to 'Back', occurrences_path %> \ No newline at end of file -- cgit v1.3