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/index.html.erb | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'app/views/admin/index.html.erb') diff --git a/app/views/admin/index.html.erb b/app/views/admin/index.html.erb index 4d67dd77..25bdbdc6 100644 --- a/app/views/admin/index.html.erb +++ b/app/views/admin/index.html.erb @@ -1,29 +1,29 @@ -

cccms dashboard

+

<%= t(".title") %>

<%= link_to new_node_path, class: "action_button" do %> - <%= icon("plus", library: "tabler", "aria-hidden": true) %> Create post + <%= icon("plus", library: "tabler", "aria-hidden": true) %> <%= t(".create_post") %> <% end %> <%= link_to chapters_nodes_path, class: "action_button" do %> - <%= icon("map-pin", library: "tabler", "aria-hidden": true) %> Find a chapter + <%= icon("map-pin", library: "tabler", "aria-hidden": true) %> <%= t(".find_chapter") %> <% end %> <%= link_to new_asset_path, class: "action_button" do %> - <%= icon("upload", library: "tabler", "aria-hidden": true) %> Upload asset + <%= icon("upload", library: "tabler", "aria-hidden": true) %> <%= t(".upload_asset") %> <% end %> <%= link_to sitemap_nodes_path, class: "action_button" do %> - <%= icon("list-tree", library: "tabler", "aria-hidden": true) %> Add a page in the page tree + <%= icon("list-tree", library: "tabler", "aria-hidden": true) %> <%= t(".add_in_tree") %> <% end %>
-

Drafts and autosaves

+

<%= t(".drafts_widget") %>

    <% @drafts.each do |node| %>
  • @@ -37,43 +37,43 @@
  • <% end %>
- <%= link_to "See all drafts →", drafts_nodes_path %> + <%= link_to t(".see_all_drafts"), drafts_nodes_path %>
-

Recent changes

+

<%= t("node_actions.heading") %>

<%= render partial: "node_actions/action_row", collection: @actions, as: :action %>
- <%= link_to "See all recent changes →", admin_log_path %> + <%= link_to t(".see_all_changes"), admin_log_path %>
-

Housekeeping

+

<%= t(".housekeeping") %>

<%= link_to edit_user_path(current_user), class: "action_button" do %> - <%= icon("user-cog", library: "tabler", "aria-hidden": true) %> My account + <%= icon("user-cog", library: "tabler", "aria-hidden": true) %> <%= t(".my_account") %> <% end %> <%= link_to nodes_path, class: "action_button" do %> - <%= icon("list", library: "tabler", "aria-hidden": true) %> Nodes + <%= icon("list", library: "tabler", "aria-hidden": true) %> <%= t("nodes.index.title") %> <% end %> <%= link_to events_path, class: "action_button" do %> - <%= icon("calendar", library: "tabler", "aria-hidden": true) %> Events + <%= icon("calendar", library: "tabler", "aria-hidden": true) %> <%= t("events.index.title") %> <% end %> <%= link_to assets_path, class: "action_button" do %> - <%= icon("folder", library: "tabler", "aria-hidden": true) %> Assets + <%= icon("folder", library: "tabler", "aria-hidden": true) %> <%= t("assets.index.title") %> <% end %> <%= link_to users_path, class: "action_button" do %> - <%= icon("users", library: "tabler", "aria-hidden": true) %> Users + <%= icon("users", library: "tabler", "aria-hidden": true) %> <%= t("users.index.users") %> <% end %> <%= link_to menu_items_path, class: "action_button" do %> - <%= icon("menu-2", library: "tabler", "aria-hidden": true) %> Navigation + <%= icon("menu-2", library: "tabler", "aria-hidden": true) %> <%= t(".navigation") %> <% end %> <% trash_count = Node.trash.children.count %> <%= link_to trashed_nodes_path, class: "action_button" do %> - <%= icon("trash", library: "tabler", "aria-hidden": true) %> Trash<%= " (#{trash_count})" if trash_count > 0 %> + <%= icon("trash", library: "tabler", "aria-hidden": true) %> <%= t("nodes.trashed.title") %><%= " (#{trash_count})" if trash_count > 0 %> <% end %>
-- cgit v1.3