1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
4 <title><%= @page_title || "Selectricity" %></title>
5 <%= stylesheet_link_tag "common", :media => "all" %>
6 <%= stylesheet_link_tag "main", :media => "all" %>
7 <%= stylesheet_link_tag *(@stylesheets) %>
8 <%= javascript_include_tag "prototype", "effects", "dragdrop", "controls" %>
12 <div id="page-wrapper">
15 <%= link_to "<h1>Selectricity</h1>",
16 :controller => 'site', :action => 'index' %>
18 <div id="left-side-content">
19 <% if flash[:notice]%>
20 <div id="notice"><%= flash[:notice] %></div>
23 <%= @sidebar_content %>
31 <% if session[:user] %>
32 <%= link_to User.find(session[:user]).login.capitalize,
33 :controller => "account",
34 :action => "summary", :id => session[:user][:id] %>
35 <%= link_to "logout", :controller => "account",
36 :action => "logout" %>
38 <%= link_to("login", :controller => "account", :action => "login")
39 %>/<%= link_to("sign up", :controller => "account", :action => "signup")%>
44 <%= link_to("help/about", :controller => "site", :action => "about") %>
46 </div> <!-- end of top-bar -->
49 <%= @content_for_layout %>
52 </div> <!-- end of right-side -->
53 <div class="clear-div"></div>
54 <%= render_partial 'layouts/footer' %>