summaryrefslogtreecommitdiff
path: root/chef-server-slice/app/views/layout/chef_server_slice.html.haml
blob: e480ad71e10239140fb631c517ee096b278bc219 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
!!! 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