From 102c33264fd1463cd88aa8245413e7b331dd9632 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Mon, 27 Jul 2026 02:48:03 +0200 Subject: Retire orphaned drafts partial and their translations --- app/views/admin/_drafts.html.erb | 25 ------------------------- config/locales/de.yml | 3 --- config/locales/en.yml | 3 --- public/stylesheets/admin.css | 37 ++----------------------------------- 4 files changed, 2 insertions(+), 66 deletions(-) delete mode 100644 app/views/admin/_drafts.html.erb diff --git a/app/views/admin/_drafts.html.erb b/app/views/admin/_drafts.html.erb deleted file mode 100644 index bfdc00a4..00000000 --- a/app/views/admin/_drafts.html.erb +++ /dev/null @@ -1,25 +0,0 @@ -

<%= t(".title", :size => @drafts.size) %>

-
- - - - - - - - - <% @drafts.each do |draft| %> - - - - - - - - <% end %> -
<%= t("admin.columns.id") %><%= t("admin.columns.title") %><%= t("admin.columns.path") %><%= t("admin.columns.author") %>
<%= draft.id %><%= draft.title %><%= draft.node.unique_name %><%= draft.user.login rescue "" %> - <%= link_to t("admin.common.show"), node_path(draft.node) %> - <%= link_to t(".revisions"), revision_path(draft.node.id) %> - <%= button_to t("nodes.show.publish"), publish_node_path(draft.node), method: :put, form: { data: { confirm: t("nodes.show.confirm_publish") }, class: 'button_to state_changing' } %> -
-
diff --git a/config/locales/de.yml b/config/locales/de.yml index cfdae95c..6267fcff 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -291,9 +291,6 @@ de: housekeeping: "Verwaltung" my_account: "Mein Konto" navigation: "Navigation" - drafts: - title: "Entwürfe (%{size})" - revisions: "Revisionen" conventions: title: "Konventionen beim Anlegen von Nodes" kind: "Art" diff --git a/config/locales/en.yml b/config/locales/en.yml index 3c4ea1c8..e5a4182f 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -244,9 +244,6 @@ en: housekeeping: "Housekeeping" my_account: "My account" navigation: "Navigation" - drafts: - title: "Drafts (%{size})" - revisions: "Revisions" conventions: title: "Node creation conventions" kind: "Kind" diff --git a/public/stylesheets/admin.css b/public/stylesheets/admin.css index 83acf449..a470032a 100644 --- a/public/stylesheets/admin.css +++ b/public/stylesheets/admin.css @@ -585,9 +585,8 @@ form.button_to svg { /* Generic fallback header row. Shadowed by table.node_table's own tr.header (2rem) and duplicated (same values) by table#revisions's - own tr.header below. Applies as-is to #menu_item_list, - div#draft_list table, and table.user_table, none of which define - their own tr.header. */ + own tr.header below. Applies as-is to #menu_item_list, and + table.user_table, none of which define their own tr.header. */ table tr.header { height: 20px; text-align: left; @@ -1171,38 +1170,6 @@ input#menu_item_title { Draft list (dashboard widget) ============================================================ */ -div#draft_list { - border: 1px solid var(--text); - padding: 5px; - overflow: auto; - height: 300px; -} - -div#draft_list table { - border-collapse: collapse; -} - -div#draft_list table tr.header:hover { - background-color: var(--surface); -} - -div#draft_list table tr:hover { - background-color: var(--surface-tint); -} - -div#draft_list table td.actions { - text-transform: lowercase; - white-space: nowrap; -} - -/* Layout only -- the at-rest visibility (wavy underline) for these - links comes from the scoped rule in Base elements above. */ -div#draft_list table td.actions a { - letter-spacing: 1px; - padding-left: 5px; - padding-right: 5px; -} - .search_results_list { list-style: none; margin: 0; -- cgit v1.3