diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-09 14:19:36 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-09 14:19:36 +0200 |
| commit | 8310751d4db2854597d6379b24e346c65622972d (patch) | |
| tree | dd00ae2f671ab81cf292caf41b09c6da90fbc383 /app/views/users/index.html.erb | |
| parent | 3ae22916cd5fd0f63ffacc7a9e1aa97d311b83e6 (diff) | |
Major resource view cleanup
Remove dead pages#index and occurrences resource; fix menu_items#new
menu_items#new called menu_item_params, which requires a submitted
menu_item key that can never be present on a fresh GET -- new only
ever needs a blank record to render against.
pages#index and the entire occurrences resource were unmodified Rails
scaffold generator output, unlinked from any nav and unreachable except
by direct URL. pages#index had no controller action at all (@pages was
never assigned); occurrences#index queried every row with no scoping or
pagination and its layout referenced a scaffold.css asset that no
longer exists in the pipeline. Neither is a real editorial surface --
occurrences are auto-generated from an event's RRULE and were never
meant to be browsed as a flat list. Removed rather than repaired.
pages#preview and pages#sort_images remain, now as explicit routes
rather than under a full resources :pages block.
Diffstat (limited to 'app/views/users/index.html.erb')
| -rw-r--r-- | app/views/users/index.html.erb | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb index 88868f5..46e958b 100644 --- a/app/views/users/index.html.erb +++ b/app/views/users/index.html.erb | |||
| @@ -1,7 +1,6 @@ | |||
| 1 | <h1>Admins</h1> | ||
| 2 | <%= link_to 'New admin user', new_user_path(admin: true), class: 'action_button' %> | ||
| 1 | <table class="user_table"> | 3 | <table class="user_table"> |
| 2 | <tr> | ||
| 3 | <td><h1>Admins</h1></td> | ||
| 4 | </tr> | ||
| 5 | <tr class="header"> | 4 | <tr class="header"> |
| 6 | <th>Login</th> | 5 | <th>Login</th> |
| 7 | <th></th> | 6 | <th></th> |
| @@ -9,9 +8,11 @@ | |||
| 9 | <th></th> | 8 | <th></th> |
| 10 | </tr> | 9 | </tr> |
| 11 | <%= render :partial => "user", :locals => {:users => @users[:admin] ||= []} %> | 10 | <%= render :partial => "user", :locals => {:users => @users[:admin] ||= []} %> |
| 12 | <tr> | 11 | </table> |
| 13 | <td><h1>Users</h1></td> | 12 | |
| 14 | </tr> | 13 | <h1>Users</h1> |
| 14 | <%= link_to 'New user', new_user_path, class: 'action_button' %> | ||
| 15 | <table class="user_table"> | ||
| 15 | <tr class="header"> | 16 | <tr class="header"> |
| 16 | <th>Login</th> | 17 | <th>Login</th> |
| 17 | <th></th> | 18 | <th></th> |
| @@ -20,7 +21,3 @@ | |||
| 20 | </tr> | 21 | </tr> |
| 21 | <%= render :partial => "user", :locals => {:users => @users[:user] ||= []} %> | 22 | <%= render :partial => "user", :locals => {:users => @users[:user] ||= []} %> |
| 22 | </table> | 23 | </table> |
| 23 | |||
| 24 | <% content_for :subnavigation do %> | ||
| 25 | <%= link_to "create", new_user_path %> | ||
| 26 | <% end %> | ||
