Sha256: 64781647e0d8656f8405c9fef091ffe4f8cf19350370956c6222d8a7b6be34e9

Contents?: true

Size: 990 Bytes

Versions: 42

Compression:

Stored size: 990 Bytes

Contents

.block#block-tables
  .content
    %h2.title Environments 
    .inner
      = partial('navigation', :active => 'index')
    .content
      .inner
        %table.table
          %tr
            %th.first{:colspan => 2} Name
            %th  
            %th.last  
          - even = false;
          - @environment_list.sort_by {|key,value| key.downcase}.each do |env|
            %tr{ :class => even ? "even" : "odd" }
              %td{:colspan => 2}= link_to(env[0], url(:environment, env[0]))
              %td
                - if session[:environment] != env[0]
                  = link_to('Select', url(:environment_select, env[0]))
                - else
                  Select
                |
                = link_to('Edit', url(:edit_environment, env[0])) 
                |
                = link_to('Delete', url(:environment, env[0]), :method => "delete", :confirm => "Really delete Environment #{env[0]}?  there is no undo.")
              - even = (not even)

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
chef-server-webui-10.30.4 app/views/environments/index.html.haml
chef-server-webui-10.30.2 app/views/environments/index.html.haml
chef-server-webui-10.30.2.rc.0 app/views/environments/index.html.haml
chef-server-webui-10.30.0.rc.2 app/views/environments/index.html.haml
chef-server-webui-10.30.0.rc.1 app/views/environments/index.html.haml
chef-server-webui-10.30.0.rc.0 app/views/environments/index.html.haml
chef-server-webui-10.28.0 app/views/environments/index.html.haml
chef-server-webui-10.28.0.rc.0 app/views/environments/index.html.haml
chef-server-webui-10.26.0 app/views/environments/index.html.haml
chef-server-webui-10.26.0.beta.0 app/views/environments/index.html.haml
chef-server-webui-10.24.4 app/views/environments/index.html.haml
chef-server-webui-10.24.0 app/views/environments/index.html.haml
chef-server-webui-10.24.0.rc.2 app/views/environments/index.html.haml
chef-server-webui-10.24.0.rc.1 app/views/environments/index.html.haml
chef-server-webui-10.24.0.rc.0 app/views/environments/index.html.haml
chef-server-webui-10.22.0 app/views/environments/index.html.haml
chef-server-webui-10.22.0.rc.0 app/views/environments/index.html.haml
chef-server-webui-10.20.0 app/views/environments/index.html.haml
chef-server-webui-10.18.4.rc.2 app/views/environments/index.html.haml
chef-server-webui-10.18.4.rc.1 app/views/environments/index.html.haml