diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-17 17:52:08 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-17 17:52:08 +0200 |
| commit | da5bb5788802c725f9f14b72e6a54c6c38ea5e0a (patch) | |
| tree | 0899d99ca83dcc89f0f45dfd84af6ae46328cfa4 /app/views/admin | |
| parent | ea3f24f7376b1eb79b461d25765ed355278d700e (diff) | |
Retire recent changes widget, replace with action log
Diffstat (limited to 'app/views/admin')
| -rw-r--r-- | app/views/admin/index.html.erb | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/app/views/admin/index.html.erb b/app/views/admin/index.html.erb index 1b4a0a0..7933cba 100644 --- a/app/views/admin/index.html.erb +++ b/app/views/admin/index.html.erb | |||
| @@ -40,32 +40,10 @@ | |||
| 40 | <%= link_to "See all drafts →", drafts_nodes_path %> | 40 | <%= link_to "See all drafts →", drafts_nodes_path %> |
| 41 | </div> | 41 | </div> |
| 42 | 42 | ||
| 43 | <!--div class="dashboard_widget"> | ||
| 44 | <h3>Recent changes</h3> | ||
| 45 | <ul> | ||
| 46 | <%= render partial: "nodes/recent_change_item", collection: @recent_changes, as: :node %> | ||
| 47 | </ul> | ||
| 48 | <%= link_to "See all recent changes →", recent_nodes_path %> | ||
| 49 | </div--> | ||
| 50 | |||
| 51 | <div class="dashboard_widget"> | 43 | <div class="dashboard_widget"> |
| 52 | <h3>Recent changes</h3> | 44 | <h3>Recent changes</h3> |
| 53 | <table id="node_action_list"> | 45 | <table id="node_action_list"> |
| 54 | <% @actions.each do |action| %> | 46 | <%= render partial: "node_actions/action_row", collection: @actions, as: :action %> |
| 55 | <tr class="node_action node_action--<%= action.action %>"> | ||
| 56 | <td class="node_action_time"><%= raw(action.occurred_at.strftime("%Y-%m-%d %H:%M").gsub(" ", "<br/>")) %></td> | ||
| 57 | <td class="node_action_body"> | ||
| 58 | <%= action_summary(action) %> | ||
| 59 | <% if action.node_id && params[:node_id].blank? %> | ||
| 60 | <%= link_to t("node_actions.node_history"), admin_log_path(:node_id => action.node_id), :class => "node_action_zoom" %> | ||
| 61 | <% end %> | ||
| 62 | <% if action.inferred_from %> | ||
| 63 | <span class="node_action_inferred" title="<%= action.inferred_from %>"><%= t("node_actions.backfilled") %></span> | ||
| 64 | <% end %> | ||
| 65 | <%= render "node_actions/change_details", :action_entry => action if action_details?(action) %> | ||
| 66 | </td> | ||
| 67 | </tr> | ||
| 68 | <% end %> | ||
| 69 | </table> | 47 | </table> |
| 70 | <%= link_to "See all recent changes →", admin_log_path %> | 48 | <%= link_to "See all recent changes →", admin_log_path %> |
| 71 | </div> | 49 | </div> |
