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>", :controller => 'front' %>
22 <div id="left-side-content">
23 <% if flash[:notice]%>
24 <div id="notice"><%= flash[:notice] %></div>
27 <%= @sidebar_content %>
35 <% if session[:user] %>
36 <%= link_to User.find(session[:user]).login.downcase,
37 :controller => "account",
38 :action => "summary", :id => session[:user][:id] %>
39 <%= link_to "logout", :controller => "account",
40 :action => "logout" %>
42 <%= link_to "login", :controller => "account", :action => "login"
43 %><!-- /<%= link_to "sign up", :controller => "account", :action => "signup" %>-->
48 <%= link_to "help/about", :controller => 'about' %>
50 </div> <!-- end of top-bar -->
53 <%= @content_for_layout %>
56 </div> <!-- end of right-side -->
57 <div class="clear-div"></div>
58 <%= render :partial => 'layouts/footer' %>