From b7dee77cd1dd6f70e3bfa55df8b61681e9db321e Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sat, 25 Jul 2026 15:39:17 +0200 Subject: Extract admin strings to i18n: dashboard, layout chrome, and the JS bridge --- app/views/admin/_drafts.html.erb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'app/views/admin/_drafts.html.erb') diff --git a/app/views/admin/_drafts.html.erb b/app/views/admin/_drafts.html.erb index 4ef568f8..bfdc00a4 100644 --- a/app/views/admin/_drafts.html.erb +++ b/app/views/admin/_drafts.html.erb @@ -1,11 +1,11 @@ -

Drafts (<%= @drafts.size %>)

+

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

- - - - + + + + <% @drafts.each do |draft| %> @@ -15,9 +15,9 @@ <% end %> -- cgit v1.3
IDTitlePathauthor<%= t("admin.columns.id") %><%= t("admin.columns.title") %><%= t("admin.columns.path") %><%= t("admin.columns.author") %>
<%= draft.node.unique_name %> <%= draft.user.login rescue "" %> - <%= link_to 'Show', node_path(draft.node) %> - <%= link_to "Revisions", revision_path(draft.node.id) %> - <%= button_to "Publish", publish_node_path(draft.node), method: :put, form: { data: { confirm: "Do you really want to publish?" }, class: 'button_to state_changing' } %> + <%= 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' } %>