!!! XML
!!!
%html
  %head
    %meta{ "http-equiv" => "content-type", :content => "text/html; charset=utf-8" }
    %title Chef Server
    = css_include_tag "base", "themes/djime-cerulean/style", "chef", "/facebox/facebox.css", "jquery-ui-1.7.1.custom", "jquery.treeTable"
    = js_include_tag "jquery-1.3.2.min", "jquery.jeditable.mini", "jquery.livequery", "jquery.localscroll", "jquery.scrollTo", "jquery.tools.min"
    = js_include_tag "/facebox/facebox.js"
    = js_include_tag "jquery-ui-1.7.1.custom.min"
    = js_include_tag "jquery.treeTable.min"
    = js_include_tag "JSONeditor"
    = js_include_tag "chef"
        
  %body
    #container
      #header
        %h1= link_to "Chef Server", slice_url(:top)
        #user-navigation
          %ul
            - if session[:openid]
              %li= link_to "Logout #{h session[:openid]} (#{session[:level].to_s})", slice_url(:openid_consumer_logout), :method => "get", :confirm => "Are you sure you want to logout?"
            - else
              %li= link_to "Login", slice_url(:openid_consumer), :rel => "facebox"
          .clear
        #main-navigation
          %ul
            %li= link_to "Search", slice_url(:searches)
            %li= link_to "Status", slice_url(:status)
            %li= link_to "Roles", slice_url(:roles)
            %li= link_to "Nodes", slice_url(:nodes)
            %li= link_to "Cookbooks", slice_url(:cookbooks)
            %li= link_to "Registrations", slice_url(:registrations)
          .clear
      #wrapper
        #main
          - unless message.empty?
            .block#block-messages
              .content
                %h2.title Messages
                .inner
                  .flash
                    - message.each do |type, msg|
                      %div{:class => "message #{type}"}
                        %p= msg             
          = catch_content :for_layout
          #footer
            .block
              %p Copyright © 2009 Opscode
        #sidebar
          .block.notice#sidebar_block_notice= catch_content :sidebar_block_notice
          .block#sidebar_block= catch_content :sidebar_block
        .clear