<% if @page_title %>
<%= @page_title %>
<% else %>
Selectricity
Voting Machinery for the Masses
<% end %>
<% if session[:user] %>
<% breakpoint %>
Welcome <%= User.find(session[:user]).login.capitalize %>
<% else %>
<%= link_to("Login", :controller => "account", :action => "login")
%>/<%= link_to("Sign up", :controller => "account", :action => "signup")%>
<% end %> |
<% if session[:user] %>
<%= link_to("Logout", :controller => "account", :action => "logout") %> |
<% end %>
<%= link_to("Help/About", :controller => "site", :action => "about") %>
<% if @flash[:notice]%>