Sha256: 918ade634613ef3ae5f00881e5b0839b6704931826984e51b97b6d38830d1af6

Contents?: true

Size: 1.91 KB

Versions: 1

Compression:

Stored size: 1.91 KB

Contents

!!! 1.1
%html{:xmlns => "http://www.w3.org/1999/xhtml", "xml:lang" => "en", :lang => "en"}
  %head
    %title= part[:title, 'Orange Site'] 
    %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 => "/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[: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[:admin].links(packet)["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*

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
orange-sparkles-0.5.9 lib/orange-sparkles/templates/sparkles-admin.haml