summaryrefslogtreecommitdiff
path: root/app/views/layouts/application.html.erb
blob: 678180df22102ebdbc063b9daa33cc389e27d563 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  
    <title><%= page_title %></title>
    <%= stylesheet_link_tag "ccc" %>
    <%= javascript_include_tag 'jquery-1.3.2.min' %>
    <%= javascript_include_tag 'shadowbox/shadowbox' %>
    <%= stylesheet_link_tag "shadowbox" %>
    <%= javascript_include_tag 'public' %>
    
    <%= auto_discovery_link_tag(:atom, {:locale => :de, :controller => "rss", :action => "updates", :format => :xml}) %>
    <%= auto_discovery_link_tag(:rss,  {:locale => :de, :controller => "rss", :action => "updates", :format => :rdf}) %>
  </head>
  
  <body>
    <div id="wrapper">
      <div id="header">
        <%= link_to_path(image_tag("header.png"), "/home") %>
      </div>
      <div id="search">
        <%= render :partial => "content/search" %>
      </div>
      <div id="left_column">
        <%= main_menu %>
        
        <div class="main_navigation">
          <ul>
            <li><a class="inactive" href="http://dasalte.ccc.de/"><%= t(:old_ccc_de) %></a></li>
          </ul>
        </div>
        
        <%= language_selector %>
        <% if current_user && @page.node %>
          <%= link_to "Edit", node_path(:id => @page.node) %>
        <% end %>
      
        <%= calendar %>
      </div>
      <div id="center_column">
        <%= yield :layout %>
        
        <div id="footer">
          <br />
          <br />
          <p style="text-align: center">
            <%= link_to t(:sponsors), content_path("sponsors") %>
          </p>
        </div>
      </div>
      <div id="right_column">
        <%= tags %>
        <%= featured_articles %>
      </div>
    </div>
  </body>
</html>