Major update of Selectricity to work with Rails 2.2.2 from 1.2!
[selectricity] / app / views / layouts / frontpage.rhtml
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3   <head>
4     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
5     <title>Selectricity</title>
6     <%= stylesheet_link_tag "common", :media => "all" %>
7     <%= stylesheet_link_tag "front", :media => "all" %>
8   </head>
9
10   <body>
11     <div id="page-wrapper">
12
13     <div id="header">
14       <div id="top-bar">
15         <% if session[:user]%>
16         <%= link_to User.find(session[:user]).login.downcase,
17                   :controller => "account",
18                   :action => "summary", :id => session[:user][:id] %>
19         &nbsp;&nbsp;<%= link_to( 'log out', :controller => 'account', 
20                         :action => 'logout' )%>
21         <% else %>
22       <%= link_to("login", :controller => "account", :action => "login")
23       %>
24       <!--&nbsp;&nbsp;<%= link_to "sign up", :controller => "account", 
25                                 :action => "signup" %> -->
26     <% end -%>
27       &nbsp;&nbsp;<%= link_to "help/about", :controller => 'about' %>
28       </div>
29           <a href="/"><h1>selectricity: voting machinery for the masses</h1></a>
30     </div>
31   
32   <div id="body">
33     <%= @content_for_layout %>
34   </div>
35   
36   <%= render :partial => 'layouts/footer' %>
37 </div>
38 </body>
39
40 </html>

Benjamin Mako Hill || Want to submit a patch?