diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-06-27 22:52:50 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-06-27 22:52:50 +0200 |
| commit | 9a19a0494ef51cdac9a78e24d517ca48ba44c453 (patch) | |
| tree | 8eaae12d8047a40e29d3ea7ff3116b5c869e04bd /app/views/layouts/application.html.erb | |
| parent | 85a01e35274b8d4d4165a7b26bd7986e211246bb (diff) | |
| parent | 1853082fcd8c067390c246f9daa01a9b47387497 (diff) | |
Migration from Rails 2.3.5 to Rails 8.1 successful.
Merging dev branch.
Diffstat (limited to 'app/views/layouts/application.html.erb')
| -rw-r--r-- | app/views/layouts/application.html.erb | 68 |
1 files changed, 48 insertions, 20 deletions
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 3c95d75..48e0a5b 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb | |||
| @@ -1,47 +1,74 @@ | |||
| 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"/> |
| 6 | <meta name="viewport" content="width=device-width,initial-scale=1"/> | ||
| 7 | <meta name="description" content="Der Chaos Computer Club ist eine galaktische Gemeinschaft von Lebewesen für Informationsfreiheit und Technikfolgenabschätzung."/> | ||
| 8 | |||
| 9 | <meta property="og:image" content="https://www.ccc.de/images/chaosknoten.svg" /> | ||
| 10 | <meta property="og:description" content="Der Chaos Computer Club ist eine galaktische Gemeinschaft von Lebewesen für Informationsfreiheit und Technikfolgenabschätzung." /> | ||
| 7 | 11 | ||
| 8 | <title><%= page_title %></title> | 12 | <title><%= page_title %></title> |
| 9 | <%= stylesheet_link_tag "ccc" %> | 13 | <link rel="stylesheet" href="/stylesheets/ccc.css"> |
| 10 | <%= javascript_include_tag 'jquery-1.3.2.min' %> | 14 | <script src="/javascripts/jquery-1.3.2.min.js"></script> |
| 11 | <%= javascript_include_tag 'shadowbox/shadowbox' %> | 15 | <script src="/javascripts/shadowbox/shadowbox.js"></script> |
| 12 | <%= stylesheet_link_tag "shadowbox" %> | 16 | <link rel="stylesheet" href="/stylesheets/shadowbox.css"> |
| 13 | <%= javascript_include_tag 'public' %> | 17 | <script src="/javascripts/public.js"></script> |
| 18 | |||
| 19 | <%= auto_discovery_link_tag(:atom, '/rss/updates.xml', title: "ATOM") %> | ||
| 20 | <%= auto_discovery_link_tag(:rss, '/rss/updates.rdf', title: "RSS") %> | ||
| 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> | ||
| 14 | 28 | ||
| 15 | <%= auto_discovery_link_tag(:atom, {:locale => :de, :controller => "rss", :action => "updates", :format => :xml}) %> | ||
| 16 | <%= auto_discovery_link_tag(:rss, {:locale => :de, :controller => "rss", :action => "updates", :format => :rdf}) %> | ||
| 17 | </head> | 29 | </head> |
| 18 | 30 | ||
| 19 | <body> | 31 | <body lang="<%= @page ? @page.effective_lang : 'de' %>"> |
| 20 | <div id="wrapper"> | 32 | <div id="wrapper"> |
| 21 | <div id="header"> | 33 | <div id="header"> |
| 22 | <%= link_to_path(image_tag("header.png"), "/home") %> | 34 | <img src="/images/header.png" alt=""> |
| 23 | </div> | 35 | </div> |
| 24 | <div id="search"> | 36 | <div id="toolbox"> |
| 25 | <%= render :partial => "content/search" %> | 37 | <div id="search"> |
| 38 | <%= render :partial => "content/search" %> | ||
| 39 | </div> | ||
| 40 | <div id="light-mode-div"> | ||
| 41 | <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> | ||
| 42 | </div> | ||
| 43 | <div id="burger-div"> | ||
| 44 | <input type="checkbox" id="menu-toggle" class="menu-checkbox"> | ||
| 45 | <label for="menu-toggle" class="burger-menu"><span></span><span></span><span></span></label> | ||
| 46 | </div> | ||
| 26 | </div> | 47 | </div> |
| 27 | <div id="left_column"> | 48 | <div id="left_column"> |
| 28 | <%= main_menu %> | 49 | <%= main_menu %> |
| 29 | 50 | ||
| 30 | <%= language_selector %> | ||
| 31 | <% if current_user && @page.node %> | 51 | <% if current_user && @page.node %> |
| 32 | <%= link_to "Edit", node_path(:id => @page.node) %> | 52 | <div class="main_navigation"> |
| 53 | <h2>Admin</h2> | ||
| 54 | <ul> | ||
| 55 | <li><%= link_to raw('<span class="inactive admin_edit_link">⚙️ Overview</span>'), admin_path %></li> | ||
| 56 | <li><%= link_to raw('<span class="inactive admin_edit_link">✎ Edit</span>'), node_path(@page.node) %></li> | ||
| 57 | </ul> | ||
| 58 | </div> | ||
| 33 | <% end %> | 59 | <% end %> |
| 34 | 60 | ||
| 35 | <%= calendar %> | 61 | <%= calendar %> |
| 36 | </div> | 62 | </div> |
| 37 | <div id="center_column"> | 63 | <div id="center_column"> |
| 38 | <%= yield :layout %> | 64 | <%= yield :layout %> |
| 39 | |||
| 40 | <div id="footer"> | 65 | <div id="footer"> |
| 41 | <br /> | 66 | <br /> |
| 42 | <br /> | ||
| 43 | <p style="text-align: center"> | 67 | <p style="text-align: center"> |
| 44 | <%= link_to t(:sponsors), content_path("sponsors") %> | 68 | <%= link_to "Impressum", content_path("imprint") %> |
| 69 | <%= link_to "Datenschutz", content_path("datenschutz") %> | ||
| 70 | <%= language_selector %> | ||
| 71 | <!-- %= link_to t(:sponsors), content_path("sponsors") % --> | ||
| 45 | </p> | 72 | </p> |
| 46 | </div> | 73 | </div> |
| 47 | </div> | 74 | </div> |
| @@ -50,5 +77,6 @@ | |||
| 50 | <%= featured_articles %> | 77 | <%= featured_articles %> |
| 51 | </div> | 78 | </div> |
| 52 | </div> | 79 | </div> |
| 80 | |||
| 53 | </body> | 81 | </body> |
| 54 | </html> \ No newline at end of file | 82 | </html> |
