Updated the system to Rails 1.2.
[selectricity] / app / views / layouts / hc.rhtml
1 <% %>
2 <html>
3     <head>
4         <title><%= @page_title || "Selectricity" %></title>
5         <%= stylesheet_link_tag "hc", :media => "all" %>
6  
7         <%= javascript_include_tag "prototype", "effects", "dragdrop", "controls" %>
8     </head>
9     <body>
10         <div id="top">
11             <% if @page_title %>
12               <h3><%= @page_title %></h3>  
13             <% else %>
14               <h3>Selectricity<br />
15               <font size="-1">Voting Machinery for the Masses</font></h3>
16            <% end %>
17
18            <div id="links">
19              <% if session[:user] %>
20                Welcome <strong><%= session[:user].login.capitalize %></strong>
21              <% else %>
22                <%= link_to("Login",:controller => "user", :action => "login")
23                  %>/<%= link_to("Sign up", :controller => "user", :action => "signup")%>
24              <% end %> |
25           
26              <% if session[:user] %>
27                <%= link_to("Logout", :controller => "user", :action => "logout") %>  |
28              <% end %>
29              
30              <%= link_to("Help/About", :controller => "site", :action => "about") %>
31            </div>
32         </div>
33         
34         <% if @flash[:notice]%>
35           <div id="notice"><%= @flash[:notice] %></div>
36         <% end%>
37
38         <div id="main">
39           <%= @content_for_layout %>
40         </div>
41
42         <div id="footer">
43           <hr />
44           <%= link_to "Copyleft", "http://mako.cc/projects/selectricity"
45           %> 2006, 2007 |
46           <%= link_to "MIT Media Lab", "http://www.media.mit.edu" %> and
47           <a href="http://mako.cc">Benjamin Mako Hill</a>
48         </div>
49
50     </body>
51 </html>

Benjamin Mako Hill || Want to submit a patch?