!!! 1.1 %html{:xmlns => "http://www.w3.org/1999/xhtml", "xml:lang" => "en", :lang => "en"} %head %title= part[:title, 'Orange Site'] %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 => "/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 Current Site: %br %select{:id => "site-selector"} - for site in packet["user"].orange_sites %option{:value => (!site.is_a?(OrangeSubsite) ? "/admin/sitemap" : "/admin#{orange[:subsites].url_for(packet, site)}sitemap"), :selected => (packet['subsite', false] ? site == packet['subsite'] : site == packet['site'])}= site.name %div.tab-container / %a.tab#home-tab{:href => "#"} Home %a.tab#sitemap-tab{:href => route_to(:sitemap)} Pages %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*