Allowed for the results page of quickvotes to be hidden while the quickvote is go
[selectricity-live] / app / views / layouts / main.rhtml
1 <% %>
2 <html>
3     <head>
4         <title><%= @page_title || "Selectricity" %></title>
5         <%= stylesheet_link_tag "main", :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               <span id="headertext"><%= link_to('<h3>Selectricity<br />
15               <font size="-1">Voting Machinery for the Masses</font></h3>', :controller => 
16               'site', :action => 'index')%></span>
17            <% end %>
18
19            <div id="links">
20              <% if session[:user] %>
21                Welcome <strong><%= User.find(session[:user]).login.capitalize %></strong>
22                <%= link_to("Logout", :controller => "account", :action => "logout") %>  |
23              <% else %>
24                <%= link_to("Login", :controller => "account", :action => "login")
25                  %>/<%= link_to("Sign up", :controller => "account", :action => "signup")%>
26              <% end %> |
27              
28              <%= link_to("Help/About", :controller => "site", :action => "about") %>
29            </div>
30         </div>
31         
32         <% if flash[:notice]%>
33           <div id="notice"><%= flash[:notice] %></div>
34         <% end%>
35
36         <div id="main">
37           <%= @content_for_layout %>
38         </div>
39
40         <div id="footer">
41           <hr />
42           <%= link_to "Copyleft", "http://code.selectricity.org/"
43           %> 2006, 2007 || 
44           <%= link_to "MIT Media Lab", "http://www.media.mit.edu" %> and the
45           <a href="http://code.selectricity.org/team">Selectricity Team</a>
46         </div>
47
48     </body>
49 </html>

Benjamin Mako Hill || Want to submit a patch?