From 5f6f272b433ffb1ec0bda2a5e6d64709c4ac6f33 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Wed, 12 Aug 2026 01:24:28 +0200 Subject: Give the admin lists a shared table and row vocabulary row_primary and row_secondary replace four names for a row's title and five for its supporting line, across the tables and the sitemap. Actions cells no longer sit flush against the row edge Header rows move into thead, which retires the .header class from the CSS, the tr.header:hover suppression, and .no_hover Replace variety of nodes_table, assets_table, events_table, revisions_table, user_table and sitemap with a shared class admin_table --- app/views/nodes/_node_list.html.erb | 76 +++++++++++++++++++------------------ 1 file changed, 39 insertions(+), 37 deletions(-) (limited to 'app/views/nodes/_node_list.html.erb') diff --git a/app/views/nodes/_node_list.html.erb b/app/views/nodes/_node_list.html.erb index 55f396b7..1a0c4797 100644 --- a/app/views/nodes/_node_list.html.erb +++ b/app/views/nodes/_node_list.html.erb @@ -4,43 +4,45 @@ (params[:tags].present? ? [["tags", params[:tags]]] : []) %> <%= will_paginate @nodes %> - - <% @nodes.each do |node| %> - "> -
-
- - <%= flag("lock", t(".flag_locked", :login => node.lock_owner.login), - :tier => :attention) if node.lock_owner %> - <%= flag("calendar-clock", - t(".flag_embargo", :date => admin_datetime(node.head.published_at)), - :tier => :attention) if node.embargoed? %> - <%= flag("file-pencil", t(".flag_draft")) if node.draft %> - <%= flag("world-off", t(".flag_no_head")) unless node.head %> - -
-
<%= link_to title_for_node(node), node_path(node) %>
-
<%= link_to_path(node.unique_name, node.unique_name) %>
+ + + <% @nodes.each do |node| %> + "> + - - - <% end %> + + + + <% end %> +
+
+ + <%= flag("lock", t(".flag_locked", :login => node.lock_owner.login), + :tier => :attention) if node.lock_owner %> + <%= flag("calendar-clock", + t(".flag_embargo", :date => admin_datetime(node.head.published_at)), + :tier => :attention) if node.embargoed? %> + <%= flag("file-pencil", t(".flag_draft")) if node.draft %> + <%= flag("world-off", t(".flag_no_head")) unless node.head %> + +
+
<%= link_to title_for_node(node), node_path(node) %>
+
<%= link_to_path(node.unique_name, node.unique_name) %>
+
- -
-
- - <%= link_to node_path(node), "aria-label" => t("admin.common.show"), - title: t("admin.common.show") do %> - <%= icon("eye", library: "tabler", "aria-hidden": true) %> - <% end %> - - - <%= link_to node_revisions_path(node), "aria-label" => t("admin.common.revisions"), - title: t("admin.common.revisions") do %> - <%= icon("history", library: "tabler", "aria-hidden": true) %> - <% end %> - -
-
+
+ + <%= link_to node_path(node), "aria-label" => t("admin.common.show"), + title: t("admin.common.show") do %> + <%= icon("eye", library: "tabler", "aria-hidden": true) %> + <% end %> + + + <%= link_to node_revisions_path(node), "aria-label" => t("admin.common.revisions"), + title: t("admin.common.revisions") do %> + <%= icon("history", library: "tabler", "aria-hidden": true) %> + <% end %> + +
+
<%= will_paginate @nodes %> -- cgit v1.3