]> projects.mako.cc - selectricity-live/blob - app/views/layouts/hc.rhtml
I have added the acts_as_authenticated plugin to code, and have gotten VERY BASIC...
[selectricity-live] / 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 <% breakpoint%>
21                Welcome <strong><%= User.find(session[:user]).login.capitalize %></strong>
22              <% else %>
23                <%= link_to("Login", :controller => "account", :action => "login")
24                  %>/<%= link_to("Sign up", :controller => "account", :action => "signup")%>
25              <% end %> |
26           
27              <% if session[:user] %>
28                <%= link_to("Logout", :controller => "account", :action => "logout") %>  |
29              <% end %>
30              
31              <%= link_to("Help/About", :controller => "site", :action => "about") %>
32            </div>
33         </div>
34         
35         <% if @flash[:notice]%>
36           <div id="notice"><%= @flash[:notice] %></div>
37         <% end%>
38
39         <div id="main">
40           <%= @content_for_layout %>
41         </div>
42
43         <div id="footer">
44           <hr />
45           <%= link_to "Copyleft", "http://mako.cc/projects/selectricity"
46           %> 2006, 2007 |
47           <%= link_to "MIT Media Lab", "http://www.media.mit.edu" %> and
48           <a href="http://mako.cc">Benjamin Mako Hill</a>
49         </div>
50
51     </body>
52 </html>

Benjamin Mako Hill || Want to submit a patch?