summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-30 14:04:57 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-30 14:04:57 +0200
commit6b0b0ebbe76a5cf4eef8de18c9c5ae9a5af39b83 (patch)
tree0673edd623665638fadad67e442ab0065e169818
parentad410b963369ec6b55526401c3873e6076b18b5f (diff)
Use icon sets on the public page and add a public-site shortcut in admin realm
-rw-r--r--app/views/layouts/_nav_controls.html.erb5
-rw-r--r--app/views/layouts/application.html.erb4
-rw-r--r--config/locales/de.yml7
-rw-r--r--config/locales/en.yml1
-rw-r--r--public/stylesheets/ccc.css6
5 files changed, 18 insertions, 5 deletions
diff --git a/app/views/layouts/_nav_controls.html.erb b/app/views/layouts/_nav_controls.html.erb
index d6053dab..bae1082b 100644
--- a/app/views/layouts/_nav_controls.html.erb
+++ b/app/views/layouts/_nav_controls.html.erb
@@ -1,7 +1,12 @@
1
1<% if current_user %> 2<% if current_user %>
2 <%= link_to icon("home", library: "tabler", "aria-hidden": true), admin_path, "aria-label": t(".dashboard"), title: t(".dashboard") %> 3 <%= link_to icon("home", library: "tabler", "aria-hidden": true), admin_path, "aria-label": t(".dashboard"), title: t(".dashboard") %>
3 <a href="#" onclick="admin_search.display_toggle(); return false;" aria-label="<%= t(".search") %>" title="<%= t(".search") %>"><%= icon("search", library: "tabler", "aria-hidden": true) %></a> 4 <a href="#" onclick="admin_search.display_toggle(); return false;" aria-label="<%= t(".search") %>" title="<%= t(".search") %>"><%= icon("search", library: "tabler", "aria-hidden": true) %></a>
4<% end %> 5<% end %>
6<%= link_to root_path, class: "nav_toggle",
7 "aria-label" => t(".public_site"), title: t(".public_site") do %>
8 <%= icon("world", library: "tabler", "aria-hidden": true) %>
9<% end %>
5 10
6<span class="nav_group"> 11<span class="nav_group">
7 <%= link_to url_for(locale: (:en unless I18n.locale == :en)), 12 <%= link_to url_for(locale: (:en unless I18n.locale == :en)),
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index 6947d329..b9a53fd3 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -49,8 +49,8 @@
49 <div class="main_navigation"> 49 <div class="main_navigation">
50 <h2><%= t(".admin") %></h2> 50 <h2><%= t(".admin") %></h2>
51 <ul> 51 <ul>
52 <li><%= link_to admin_path do %><span class="inactive admin_edit_link">⚙️ <%= t(".overview") %></span><% end %></li> 52 <li><%= link_to admin_path do %><span class="inactive admin_edit_link"><%= icon("settings", library: "tabler", "aria-hidden": true) %> <%= t(".overview") %></span><% end %></li>
53 <li><%= link_to node_path(@page.node) do %><span class="inactive admin_edit_link">✎ <%= t(".edit") %></span><% end %></li> 53 <li><%= link_to node_path(@page.node) do %><span class="inactive admin_edit_link"><%= icon("edit", library: "tabler", "aria-hidden": true) %> <%= t(".edit") %></span><% end %></li>
54 </ul> 54 </ul>
55 </div> 55 </div>
56 <% end %> 56 <% end %>
diff --git a/config/locales/de.yml b/config/locales/de.yml
index 4f0739ce..e8a65cea 100644
--- a/config/locales/de.yml
+++ b/config/locales/de.yml
@@ -282,7 +282,7 @@ de:
282 title: "cccms Dashboard" 282 title: "cccms Dashboard"
283 search_placeholder: "Nodes und Tags durchsuchen…" 283 search_placeholder: "Nodes und Tags durchsuchen…"
284 create_post: "Beitrag anlegen" 284 create_post: "Beitrag anlegen"
285 find_chapter: "Chapter finden" 285 find_chapter: "Dezentrale finden"
286 upload_asset: "Asset hochladen" 286 upload_asset: "Asset hochladen"
287 add_in_tree: "Seite im Seitenbaum anlegen" 287 add_in_tree: "Seite im Seitenbaum anlegen"
288 drafts_widget: "In Arbeit (%{total})" 288 drafts_widget: "In Arbeit (%{total})"
@@ -433,7 +433,7 @@ de:
433 sitemap: 433 sitemap:
434 title: "Sitemap" 434 title: "Sitemap"
435 chapters: 435 chapters:
436 title: "Chapters" 436 title: "Dezentrale"
437 filter: "Filter" 437 filter: "Filter"
438 node_list: 438 node_list:
439 search_placeholder: "Titel, Abstract, Text durchsuchen…" 439 search_placeholder: "Titel, Abstract, Text durchsuchen…"
@@ -645,7 +645,7 @@ de:
645 application: 645 application:
646 light_mode_aria: "Zwischen dunklem und hellem Modus wechseln" 646 light_mode_aria: "Zwischen dunklem und hellem Modus wechseln"
647 light_mode_label: "Licht" 647 light_mode_label: "Licht"
648 admin: "Verwaltung" 648 admin: "Admin"
649 overview: "Übersicht" 649 overview: "Übersicht"
650 edit: "Bearbeiten" 650 edit: "Bearbeiten"
651 flash: 651 flash:
@@ -668,6 +668,7 @@ de:
668 nav_controls: 668 nav_controls:
669 dashboard: "Dashboard" 669 dashboard: "Dashboard"
670 search: "Suche" 670 search: "Suche"
671 public_site: "Zur Website"
671 switch_locale: "Sprache umschalten" 672 switch_locale: "Sprache umschalten"
672 scheme_override: "Hell/Dunkel umschalten" 673 scheme_override: "Hell/Dunkel umschalten"
673 log_out: "Abmelden" 674 log_out: "Abmelden"
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 703e14ec..da87777d 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -620,6 +620,7 @@ en:
620 nav_controls: 620 nav_controls:
621 dashboard: "Dashboard" 621 dashboard: "Dashboard"
622 search: "Search" 622 search: "Search"
623 public_site: "To the website"
623 switch_locale: "Toggle language" 624 switch_locale: "Toggle language"
624 scheme_override: "Toggle light/dark" 625 scheme_override: "Toggle light/dark"
625 log_out: "Log out" 626 log_out: "Log out"
diff --git a/public/stylesheets/ccc.css b/public/stylesheets/ccc.css
index faa9c18d..5b10fa26 100644
--- a/public/stylesheets/ccc.css
+++ b/public/stylesheets/ccc.css
@@ -344,6 +344,12 @@ div#center_column {
344} 344}
345} 345}
346 346
347.admin_edit_link svg {
348 width: 1em;
349 height: 1em;
350 vertical-align: -0.125em;
351}
352
347/* Footer */ 353/* Footer */
348#footer { 354#footer {
349 border-bottom: 1px solid color-mix(in srgb, CanvasText, Canvas 60%); 355 border-bottom: 1px solid color-mix(in srgb, CanvasText, Canvas 60%);