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.user_agent =~ /msie\s(5\.[5-9]|[6]\.[0-9]*).*(win)/i %>
10 <%= javascript_include_tag "prototype", "effects", "dragdrop", "controls" %>
14 <div id="page-wrapper">
17 <%= link_to "<h1>Selectricity</h1>",
18 :controller => 'site', :action => 'index' %>
20 <div id="left-side-content">
21 <% if flash[:notice]%>
22 <div id="notice"><%= flash[:notice] %></div>
25 <%= @sidebar_content %>
33 <% if session[:user] %>
34 <%= link_to User.find(session[:user]).login.capitalize,
35 :controller => "account",
36 :action => "summary", :id => session[:user][:id] %>
37 <%= link_to "logout", :controller => "account",
38 :action => "logout" %>
40 <%= link_to("login", :controller => "account", :action => "login")
41 %>/<%= link_to("sign up", :controller => "account", :action => "signup")%>
46 <%= link_to("help/about", :controller => "site", :action => "about") %>
48 </div> <!-- end of top-bar -->
51 <%= @content_for_layout %>
54 </div> <!-- end of right-side -->
55 <div class="clear-div"></div>
56 <%= render_partial 'layouts/footer' %>