]> projects.mako.cc - selectricity/blobdiff - app/views/layouts/frontpage.rhtml
minor bugfix
[selectricity] / app / views / layouts / frontpage.rhtml
index 8f14c3ae32c014fce8213e22a4698978b27552ac..e227e87daa23197727934e876a87659c6ccae207 100644 (file)
     <div id="page-wrapper">
 
     <div id="header">
     <div id="page-wrapper">
 
     <div id="header">
-         <a href="index.html"><h1>selectricity: voting machinery for the masses</h1></a>
+      <div id="top-bar">
+       <% if session[:user]%>
+       <%= link_to User.find(session[:user]).login.capitalize,
+                  :controller => "account",
+                  :action => "summary", :id => session[:user][:id] %>
+       &nbsp;&nbsp;<%= link_to( 'Log out', :controller => 'account', 
+                       :action => 'logout' )%>
+       <% else %>
+      <%= link_to("login", :controller => "account", :action => "login")
+      %>
+      &nbsp;&nbsp;<%= link_to "sign up", :controller => "account", 
+                                :action => "signup" %>
+    <% end -%>
+      &nbsp;&nbsp;<%= link_to "help/about", :controller => 'about' %>
+      </div>
+         <a href="/"><h1>selectricity: voting machinery for the masses</h1></a>
     </div>
   
   <div id="body">
     </div>
   
   <div id="body">

Benjamin Mako Hill || Want to submit a patch?