!!! 1.1
%html{:xmlns => "http://www.w3.org/1999/xhtml", "xml:lang" => "en", :lang => "en"}
%head
%title= part[:title, 'Orange Site']
%meta{"http-equiv" => "Content-Type", :content => "text/html; charset=utf-8"}
%script{:src => "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"}
%link{:rel => "stylesheet", :type => "text/css", :href => "http://yui.yahooapis.com/3.0.0/build/cssreset/reset-min.css"}
= part[:css]
= part[:js]
%link{:rel => "stylesheet", :type => "text/css", :href => "/assets/_sparkles_/js/markitup/skins/simple/style.css"}
%link{:rel => "stylesheet", :type => "text/css", :href => "/assets/_sparkles_/js/markitup/sets/markdown/style.css"}
%body{:id => packet["route.resource"].to_s}
%div#header
%div#user-status
Welcome, #{packet["user"] ? packet["user"].name : "User"}!
%a.orange-text{:href => full_url('logout')} Sign Out
%p
%a{:href => route_to(:users)} Manage Users
|
%a{:href => route_to(:orange_sites, packet["site"].id, "edit")} Site Settings
%div#current-site-header
%span Currently editing:
%br
%a.orange-text{:href => orange[:mapper].root_url(packet)}= orange[:sparkles].site_name(packet)
%div.tab-container
/ %a.tab#home-tab{:href => "#"} Home
%a.tab#sitemap-tab{:href => route_to(:sitemap)} Pages
%a.tab#assets-tab{:href => route_to(:assets)} Assets
- for link in (orange[:sparkles].tabs || [])
%style= "body##{link[:resource]} a##{link[:resource]}-tab{ background: #999999;}"
%a.tab{:id => "#{link[:resource]}-tab", :href => route_to(link[:resource])}= link[:text]
%div#subheader
%h1
%img.subhead-icon{:src => "/assets/_sparkles_/images/edit.png", :width => "23", :height => "22", :alt => "Pages icon"}
= packet["page.title"] || packet["route.resource"].to_s.capitalize
%div#page-content
%div#box-container
= yield
%div#footer
powered by
%span.orange-text Sparkles*