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) %>
9 <%= stylesheet_link_tag "ie6hacks", :media => "all" if
10 request.user_agent =~ /msie\s(5\.[5-9]|[6]\.[0-9]*).*(win)/i %>
11 <%rescue NoMethodError%>
13 <%= javascript_include_tag "prototype", "effects", "dragdrop", "controls" %>
17 <div id="page-wrapper">
20 <%= link_to "<h1>Selectricity</h1>",
21 :controller => 'site', :action => 'index' %>
23 <div id="left-side-content">
24 <% if flash[:notice]%>
25 <div id="notice"><%= flash[:notice] %></div>
28 <%= @sidebar_content %>
36 <% if session[:user] %>
37 <%= link_to User.find(session[:user]).login.capitalize,
38 :controller => "account",
39 :action => "summary", :id => session[:user][:id] %>
40 <%= link_to "logout", :controller => "account",
41 :action => "logout" %>
43 <%= link_to("login", :controller => "account", :action => "login")
44 %>/<%= link_to("sign up", :controller => "account", :action => "signup")%>
49 <%= link_to("help/about", :controller => "site", :action => "about") %>
51 </div> <!-- end of top-bar -->
54 <%= @content_for_layout %>
57 </div> <!-- end of right-side -->
58 <div class="clear-div"></div>
59 <%= render_partial 'layouts/footer' %>