diff options
Diffstat (limited to 'app/views/layouts')
| -rw-r--r-- | app/views/layouts/admin.html.erb | 15 | ||||
| -rw-r--r-- | app/views/layouts/application.html.erb | 68 | ||||
| -rw-r--r-- | app/views/layouts/pages.html.erb | 2 |
3 files changed, 57 insertions, 28 deletions
diff --git a/app/views/layouts/admin.html.erb b/app/views/layouts/admin.html.erb index 97b81df..890aeaa 100644 --- a/app/views/layouts/admin.html.erb +++ b/app/views/layouts/admin.html.erb | |||
| @@ -4,16 +4,15 @@ | |||
| 4 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | 4 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| 5 | <head> | 5 | <head> |
| 6 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | 6 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
| 7 | <%= csrf_meta_tags %> | ||
| 7 | 8 | ||
| 8 | <title><%= "#{params[:controller]} | #{params[:action]}" %></title> | 9 | <title><%= "#{params[:controller]} | #{params[:action]}" %></title> |
| 9 | <%= javascript_include_tag 'jquery-1.3.2.min' %> | ||
| 10 | <%= javascript_include_tag 'jquery-ui-1.7.2.custom.min' %> | ||
| 11 | <%= javascript_include_tag 'jquery.hotkeys' %> | ||
| 12 | <%= javascript_include_tag 'tiny_mce/jquery.tinymce.js' %> | ||
| 13 | <%= javascript_tag "var AUTH_TOKEN = #{form_authenticity_token.inspect};" if protect_against_forgery? %> | 10 | <%= javascript_tag "var AUTH_TOKEN = #{form_authenticity_token.inspect};" if protect_against_forgery? %> |
| 14 | <%= stylesheet_link_tag 'admin' %> | 11 | <%= javascript_include_tag 'admin_bundle' %> |
| 15 | <%= javascript_include_tag 'admin_search.js' %> | 12 | <%= tinymce_assets %> |
| 16 | <%= javascript_include_tag 'admin_interface.js' %> | 13 | <link rel="stylesheet" href="/stylesheets/admin.css"> |
| 14 | <script src="/javascripts/admin_search.js"></script> | ||
| 15 | <script src="/javascripts/admin_interface.js"></script> | ||
| 17 | </head> | 16 | </head> |
| 18 | 17 | ||
| 19 | <body> | 18 | <body> |
| @@ -34,7 +33,7 @@ | |||
| 34 | <% end %> | 33 | <% end %> |
| 35 | </div> | 34 | </div> |
| 36 | <div id="content"> | 35 | <div id="content"> |
| 37 | <%= yield :layout %> | 36 | <%= yield %> |
| 38 | </div> | 37 | </div> |
| 39 | 38 | ||
| 40 | <div id="results"></div> | 39 | <div id="results"></div> |
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> |
diff --git a/app/views/layouts/pages.html.erb b/app/views/layouts/pages.html.erb index 327e0eb..70ceece 100644 --- a/app/views/layouts/pages.html.erb +++ b/app/views/layouts/pages.html.erb | |||
| @@ -4,6 +4,8 @@ | |||
| 4 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | 4 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| 5 | <head> | 5 | <head> |
| 6 | <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> | 6 | <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> |
| 7 | <meta name="viewport" content="width=device-width,initial-scale=1" /> | ||
| 8 | <meta property="og:image" content="https://www.ccc.de/images/chaosknoten.svg" /> | ||
| 7 | <title>Pages: <%= controller.action_name %></title> | 9 | <title>Pages: <%= controller.action_name %></title> |
| 8 | <%= stylesheet_link_tag 'scaffold' %> | 10 | <%= stylesheet_link_tag 'scaffold' %> |
| 9 | </head> | 11 | </head> |
