-
- <% if session[:user] %>
- Welcome <%= User.find(session[:user]).login.capitalize %>
- <%= link_to("Profile", :controller => "account",
- :action => "summary", :id => session[:user][:id] )%>
- <%= link_to("Logout", :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 => "site", :action => "about") %>
-
-
+ <%= link_to "
Selectricity
",
+ :controller => 'site', :action => 'index' %>
+
+
+ <%= @sidebar_content %>
+
+
+
+
+
+ <% if session[:user] %>
+ <%= link_to User.find(session[:user]).login.capitalize,
+ :controller => "account",
+ :action => "summary", :id => session[:user][:id] %>
+ <%= link_to "logout", :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 => "site", :action => "about") %>
+
+
- <% if flash[:notice]%>
+
+ <% if flash[:notice]%>
<%= flash[:notice] %>
- <% end%>
-
-
+ <% end%>
<%= @content_for_layout %>
- <%= render_partial 'layouts/footer' %>
+
+
+ <%= render_partial 'layouts/footer' %>
+