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 <%= stylesheet_link_tag "ie6hacks", :media => "all" if \
9 request.methods.include?(:user_agent) and \
10 request.user_agent =~ /msie\s(5\.[5-9]|[6]\.[0-9]*).*(win)/i %>
11 <%= javascript_include_tag "prototype", "effects", "dragdrop", "controls" %>
15 <div id="page-wrapper">
18 <%= link_to "<h1>Selectricity</h1>",
19 :controller => 'site', :action => 'index' %>
21 <div id="left-side-content">
22 <% if flash[:notice]%>
23 <div id="notice"><%= flash[:notice] %></div>
26 <%= @sidebar_content %>
34 <% if session[:user] %>
35 <%= link_to User.find(session[:user]).login.capitalize,
36 :controller => "account",
37 :action => "summary", :id => session[:user][:id] %>
38 <%= link_to "logout", :controller => "account",
39 :action => "logout" %>
41 <%= link_to("login", :controller => "account", :action => "login")
42 %>/<%= link_to("sign up", :controller => "account", :action => "signup")%>
47 <%= link_to("help/about", :controller => "site", :action => "about") %>
49 </div> <!-- end of top-bar -->
52 <%= @content_for_layout %>
55 </div> <!-- end of right-side -->
56 <div class="clear-div"></div>
57 <%= render_partial 'layouts/footer' %>