]> projects.mako.cc - selectricity-live/blob - app/views/layouts/vb.rhtml
Mostly worked on the candidate adding feature to include pictures and
[selectricity-live] / app / views / layouts / vb.rhtml
1 <% %>
2 <html>
3     <head>
4         <title><%= @page_title || "VotingBooth" %></title>
5         <%= stylesheet_link_tag "vb", :media => "all" %>
6         <% #engine_stylesheet 'login_engine' %>
7  
8         <%= javascript_include_tag "prototype", "effects", "dragdrop", "controls" %>
9     </head>
10     <body>
11         <div id="top">
12             <% if @page_title %>
13               <h3><%= @page_title %></h3>  
14             <% else %>
15               <h3>Voting Booth<br />
16               <font size="-1">Preferential Voting on the Web</font></h3>
17            <% end %>
18
19            <div id="links">
20              <% if session[:user] %>
21                Welcome <strong><%= session[:user].login.capitalize %></strong>
22              <% else %>
23                <%= link_to("Login",:controller => "user", :action => "login")
24                  %>/<%= link_to("Sign up", :controller => "user", :action => "signup")%>
25              <% end %> |
26           
27              <% if session[:user] %>
28                <%= link_to("Logout", :controller => "user", :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         <hr />
44         <div id="footer">(C) 2006 |
45           <%= link_to "MIT Media Lab", "http://www.media.mit.edu" %> and
46           <a href="http://mako.cc">Benjamin Mako Hill</a>
47         </div>
48
49     </body>
50 </html>

Benjamin Mako Hill || Want to submit a patch?