diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-06-23 18:04:37 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-06-23 18:04:37 +0200 |
| commit | 6424e10be5a89f175a74c71c55660412a169b8b8 (patch) | |
| tree | ae8c8111bd1e8c6e82c0a5f9a2c4b088c92bafe5 /app/views/layouts | |
| parent | 375ed745052148faeb34763087fe04214105f1b8 (diff) | |
Update deployed state to what's currently running
Diffstat (limited to 'app/views/layouts')
| -rw-r--r-- | app/views/layouts/application.html.erb | 43 |
1 files changed, 34 insertions, 9 deletions
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 915091dc..d2a624fc 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb | |||
| @@ -1,11 +1,10 @@ | |||
| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | 1 | <!DOCTYPE HTML> |
| 2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
| 3 | 2 | ||
| 4 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | 3 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| 5 | <head> | 4 | <head> |
| 6 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
| 7 | <meta name="viewport" content="width=device-width,initial-scale=1"/> | 6 | <meta name="viewport" content="width=device-width,initial-scale=1"/> |
| 8 | <meta name="description" content="Der Chaos Computer Club ist eine galaktische Gemeinschaft von Lebewesen für Informationsfreiheit und Technikfolgenabschätzung."> | 7 | <meta name="description" content="Der Chaos Computer Club ist eine galaktische Gemeinschaft von Lebewesen für Informationsfreiheit und Technikfolgenabschätzung."/> |
| 9 | 8 | ||
| 10 | <meta property="og:image" content="https://www.ccc.de/images/chaosknoten.svg" /> | 9 | <meta property="og:image" content="https://www.ccc.de/images/chaosknoten.svg" /> |
| 11 | <meta property="og:description" content="Der Chaos Computer Club ist eine galaktische Gemeinschaft von Lebewesen für Informationsfreiheit und Technikfolgenabschätzung." /> | 10 | <meta property="og:description" content="Der Chaos Computer Club ist eine galaktische Gemeinschaft von Lebewesen für Informationsfreiheit und Technikfolgenabschätzung." /> |
| @@ -19,21 +18,45 @@ | |||
| 19 | 18 | ||
| 20 | <%= auto_discovery_link_tag(:atom, {:locale => :de, :controller => "rss", :action => "updates", :format => :xml}) %> | 19 | <%= auto_discovery_link_tag(:atom, {:locale => :de, :controller => "rss", :action => "updates", :format => :xml}) %> |
| 21 | <%= auto_discovery_link_tag(:rss, {:locale => :de, :controller => "rss", :action => "updates", :format => :rdf}) %> | 20 | <%= auto_discovery_link_tag(:rss, {:locale => :de, :controller => "rss", :action => "updates", :format => :rdf}) %> |
| 21 | |||
| 22 | <script> | ||
| 23 | (function() { document.addEventListener("DOMContentLoaded", function() { | ||
| 24 | if (localStorage.getItem('override-prefers-color-scheme', false)) | ||
| 25 | document.getElementById("light-mode").checked = true; | ||
| 26 | }); })(); | ||
| 27 | </script> | ||
| 28 | |||
| 22 | </head> | 29 | </head> |
| 23 | 30 | ||
| 24 | <body lang="<%= @page.effective_lang %>"> | 31 | <body lang="<%= @page.effective_lang %>"> |
| 25 | <div id="wrapper"> | 32 | <div id="wrapper"> |
| 26 | <div id="header"> | 33 | <div id="header"> |
| 27 | <%= link_to_path(image_tag("header.png"), "/home") %> | 34 | <%= image_tag("header.png") %> |
| 35 | <!-- <%= link_to_path(image_tag("header.png"), "/home") %> --> | ||
| 28 | </div> | 36 | </div> |
| 29 | <div id="search"> | 37 | <div id="toolbox"> |
| 30 | <%= render :partial => "content/search" %> | 38 | <div id="search"> |
| 39 | <%= render :partial => "content/search" %> | ||
| 40 | </div> | ||
| 41 | <div id="light-mode-div"> | ||
| 42 | <input id="light-mode" type="checkbox" aria-label="Switch between dark and light mode" /><label for="light-mode"><span class="hide-me">lights</span></label> | ||
| 43 | </div> | ||
| 44 | <div id="burger-div"> | ||
| 45 | <input type="checkbox" id="menu-toggle" class="menu-checkbox"> | ||
| 46 | <label for="menu-toggle" class="burger-menu"><span></span><span></span><span></span></label> | ||
| 47 | </div> | ||
| 31 | </div> | 48 | </div> |
| 32 | <div id="left_column"> | 49 | <div id="left_column"> |
| 33 | <%= main_menu %> | 50 | <%= main_menu %> |
| 34 | 51 | ||
| 35 | <% if current_user && @page.node %> | 52 | <% if current_user && @page.node %> |
| 36 | <%= link_to "Edit", node_path(:id => @page.node) %> | 53 | <div class="main_navigation"> |
| 54 | <h2>Admin</h2> | ||
| 55 | <ul> | ||
| 56 | <li><%= link_to raw('<span class="inactive admin_edit_link">⚙️ Overview</span>'),:controller => :admin, :action => 'index' %></li> | ||
| 57 | <li><%= link_to raw('<span class="inactive admin_edit_link">✎ Edit</span>'), node_path(:id => @page.node) %></li> | ||
| 58 | </ul> | ||
| 59 | </div> | ||
| 37 | <% end %> | 60 | <% end %> |
| 38 | 61 | ||
| 39 | <%= calendar %> | 62 | <%= calendar %> |
| @@ -42,9 +65,11 @@ | |||
| 42 | <%= yield :layout %> | 65 | <%= yield :layout %> |
| 43 | <div id="footer"> | 66 | <div id="footer"> |
| 44 | <br /> | 67 | <br /> |
| 45 | <br /> | ||
| 46 | <p style="text-align: center"> | 68 | <p style="text-align: center"> |
| 47 | <%= link_to t(:sponsors), content_path("sponsors") %> | 69 | <%= link_to "Impressum", content_path("imprint") %> |
| 70 | <%= link_to "Datenschutz", content_path("datenschutz") %> | ||
| 71 | <%= language_selector %> | ||
| 72 | <!-- %= link_to t(:sponsors), content_path("sponsors") % --> | ||
| 48 | </p> | 73 | </p> |
| 49 | </div> | 74 | </div> |
| 50 | </div> | 75 | </div> |
