<div id="header">
<div id="top-bar">
- <a href="/account/login">login</a>
- <a href="/account/signup">sign up</a>
- <a href="/site/about">help/about</a>
+ <% if session[:user]%>
+ <%= link_to User.find(session[:user]).login.downcase,
+ :controller => "account",
+ :action => "summary", :id => session[:user][:id] %>
+ <%= link_to( 'log out', :controller => 'account',
+ :action => 'logout' )%>
+ <% else %>
+ <%= link_to("login", :controller => "account", :action => "login")
+ %>
+ <%= link_to "sign up", :controller => "account",
+ :action => "signup" %>
+ <% end -%>
+ <%= link_to "help/about", :controller => 'about' %>
</div>
- <a href="index.html"><h1>selectricity: voting machinery for the masses</h1></a>
+ <a href="/"><h1>selectricity: voting machinery for the masses</h1></a>
</div>
<div id="body">