<% if @page_title %>
<%= @page_title %>
<% else %>
Voting Booth
Preferential Voting on the Web
<% end %>
<% if session[:user] %>
Welcome <%= session[:user].login.capitalize %>
<% else %>
<%= link_to("Login",:controller => "account", :action => "login") %>/<%= link_to("Sign up", :controller => "account", :action => "signup")%>
<% end %> |
<%= link_to("Home", :controller => "site", :action => "index")%> |
<%= link_to("Browse", :controller => "site", :action => "index")%> |
<% if session[:user] %>
<%= link_to("Logout", :controller => "account", :action => "logout") %> |
<% end %>
<%= link_to("Help/About", :controller => "site", :action => "about") %>
<% if @flash[:notice]%>