X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/5f51982916827b84d73bfa8f3a98a9ee1d48d3ce..c65b1e11059c5cf510b54c785d4a246215058f70:/app/views/layouts/hc.rhtml?ds=inline
diff --git a/app/views/layouts/hc.rhtml b/app/views/layouts/hc.rhtml
old mode 100755
new mode 100644
index 860992a..c04eb87
--- a/app/views/layouts/hc.rhtml
+++ b/app/views/layouts/hc.rhtml
@@ -11,28 +11,30 @@
<% if @page_title %>
<%= @page_title %>
<% else %>
- Selectricity
- Voting Machinery for the Masses
+
<% end %>
<% if session[:user] %>
- Welcome <%= session[:user].login.capitalize %>
+ Welcome <%= User.find(session[:user]).login.capitalize %>
<% else %>
- <%= link_to("Login",:controller => "user", :action => "login")
- %>/<%= link_to("Sign up", :controller => "user", :action => "signup")%>
+ <%= link_to("Login", :controller => "account", :action => "login")
+ %>/<%= link_to("Sign up", :controller => "account", :action => "signup")%>
<% end %> |
<% if session[:user] %>
- <%= link_to("Logout", :controller => "user", :action => "logout") %> |
+ <%= link_to("Logout", :controller => "account", :action => "logout") %> |
<% end %>
<%= link_to("Help/About", :controller => "site", :action => "about") %>
+ <%= link_to( "Home", :controller => 'site', :action => 'index' )%>
- <% if @flash[:notice]%>
- <%= @flash[:notice] %>
+ <% if flash[:notice]%>
+ <%= flash[:notice] %>
<% end%>