diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-27 02:48:03 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-27 02:48:03 +0200 |
| commit | 102c33264fd1463cd88aa8245413e7b331dd9632 (patch) | |
| tree | a8cd6421c0fc467e18bea7c14aa19c9ab5d4dca0 | |
| parent | c9d347161f329d626595faccbbff4c77e010e678 (diff) | |
Retire orphaned drafts partial and their translations
| -rw-r--r-- | app/views/admin/_drafts.html.erb | 25 | ||||
| -rw-r--r-- | config/locales/de.yml | 3 | ||||
| -rw-r--r-- | config/locales/en.yml | 3 | ||||
| -rw-r--r-- | public/stylesheets/admin.css | 37 |
4 files changed, 2 insertions, 66 deletions
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 @@ | |||
| 1 | <h2><%= t(".title", :size => @drafts.size) %></h2> | ||
| 2 | <div id="draft_list"> | ||
| 3 | <table> | ||
| 4 | <tr class="header"> | ||
| 5 | <th><%= t("admin.columns.id") %></th> | ||
| 6 | <th><%= t("admin.columns.title") %></th> | ||
| 7 | <th><%= t("admin.columns.path") %></th> | ||
| 8 | <th><%= t("admin.columns.author") %></th> | ||
| 9 | <th></th> | ||
| 10 | </tr> | ||
| 11 | <% @drafts.each do |draft| %> | ||
| 12 | <tr> | ||
| 13 | <td><%= draft.id %></td> | ||
| 14 | <td><%= draft.title %></td> | ||
| 15 | <td><%= draft.node.unique_name %></td> | ||
| 16 | <td><%= draft.user.login rescue "" %></td> | ||
| 17 | <td class="actions"> | ||
| 18 | <%= link_to t("admin.common.show"), node_path(draft.node) %> | ||
| 19 | <%= link_to t(".revisions"), revision_path(draft.node.id) %> | ||
| 20 | <%= 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' } %> | ||
| 21 | </td> | ||
| 22 | </tr> | ||
| 23 | <% end %> | ||
| 24 | </table> | ||
| 25 | </div> | ||
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: | |||
| 291 | housekeeping: "Verwaltung" | 291 | housekeeping: "Verwaltung" |
| 292 | my_account: "Mein Konto" | 292 | my_account: "Mein Konto" |
| 293 | navigation: "Navigation" | 293 | navigation: "Navigation" |
| 294 | drafts: | ||
| 295 | title: "Entwürfe (%{size})" | ||
| 296 | revisions: "Revisionen" | ||
| 297 | conventions: | 294 | conventions: |
| 298 | title: "Konventionen beim Anlegen von Nodes" | 295 | title: "Konventionen beim Anlegen von Nodes" |
| 299 | kind: "Art" | 296 | 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: | |||
| 244 | housekeeping: "Housekeeping" | 244 | housekeeping: "Housekeeping" |
| 245 | my_account: "My account" | 245 | my_account: "My account" |
| 246 | navigation: "Navigation" | 246 | navigation: "Navigation" |
| 247 | drafts: | ||
| 248 | title: "Drafts (%{size})" | ||
| 249 | revisions: "Revisions" | ||
| 250 | conventions: | 247 | conventions: |
| 251 | title: "Node creation conventions" | 248 | title: "Node creation conventions" |
| 252 | kind: "Kind" | 249 | 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 { | |||
| 585 | 585 | ||
| 586 | /* Generic fallback header row. Shadowed by table.node_table's own | 586 | /* Generic fallback header row. Shadowed by table.node_table's own |
| 587 | tr.header (2rem) and duplicated (same values) by table#revisions's | 587 | tr.header (2rem) and duplicated (same values) by table#revisions's |
| 588 | own tr.header below. Applies as-is to #menu_item_list, | 588 | own tr.header below. Applies as-is to #menu_item_list, and |
| 589 | div#draft_list table, and table.user_table, none of which define | 589 | table.user_table, none of which define their own tr.header. */ |
| 590 | their own tr.header. */ | ||
| 591 | table tr.header { | 590 | table tr.header { |
| 592 | height: 20px; | 591 | height: 20px; |
| 593 | text-align: left; | 592 | text-align: left; |
| @@ -1171,38 +1170,6 @@ input#menu_item_title { | |||
| 1171 | Draft list (dashboard widget) | 1170 | Draft list (dashboard widget) |
| 1172 | ============================================================ */ | 1171 | ============================================================ */ |
| 1173 | 1172 | ||
| 1174 | div#draft_list { | ||
| 1175 | border: 1px solid var(--text); | ||
| 1176 | padding: 5px; | ||
| 1177 | overflow: auto; | ||
| 1178 | height: 300px; | ||
| 1179 | } | ||
| 1180 | |||
| 1181 | div#draft_list table { | ||
| 1182 | border-collapse: collapse; | ||
| 1183 | } | ||
| 1184 | |||
| 1185 | div#draft_list table tr.header:hover { | ||
| 1186 | background-color: var(--surface); | ||
| 1187 | } | ||
| 1188 | |||
| 1189 | div#draft_list table tr:hover { | ||
| 1190 | background-color: var(--surface-tint); | ||
| 1191 | } | ||
| 1192 | |||
| 1193 | div#draft_list table td.actions { | ||
| 1194 | text-transform: lowercase; | ||
| 1195 | white-space: nowrap; | ||
| 1196 | } | ||
| 1197 | |||
| 1198 | /* Layout only -- the at-rest visibility (wavy underline) for these | ||
| 1199 | links comes from the scoped rule in Base elements above. */ | ||
| 1200 | div#draft_list table td.actions a { | ||
| 1201 | letter-spacing: 1px; | ||
| 1202 | padding-left: 5px; | ||
| 1203 | padding-right: 5px; | ||
| 1204 | } | ||
| 1205 | |||
| 1206 | .search_results_list { | 1173 | .search_results_list { |
| 1207 | list-style: none; | 1174 | list-style: none; |
| 1208 | margin: 0; | 1175 | margin: 0; |
