.block#block-tables
  .content
    %h2.title= "Environment #{h @environment.name}"
    .inner
      = partial("navigation", :active => "show")
      .content
        .inner
          .left
            %h3 Name
            = @environment.name
          .left
            %h3 Description
            = @environment.description
          .left
            %h3 Cookbook Version Constraints
            %table.table
              %tr
                %th.first Name
                %th.last Version Constraints
              - if @environment.cookbook_versions.empty?
                %tr
                  %td{:colspan => 2} This environment does not include any cookbook version constraints.
              - else
                - @environment.cookbook_versions.each do |name, versions|
                  %tr
                    %td= name
                    %td= versions
          .left
            %h3 Attributes
            = build_tree('attrs', @environment.attributes)

.block#block-tables
  .content
    %h2.title= "Environment #{h @environment.name}"
    .inner
      = partial("navigation", :active => "show")
      .content
        .inner
          .left
            %h3 Name
            = @environment.name
          .left
            %h3 Description
            = @environment.description
          .left
            %h3 Cookbook Version Constraints
            %table.table
              %tr
                %th.first Name
                %th.last Version Constraints
              - if @environment.cookbook_versions.empty?
                %tr
                  %td{:colspan => 2} This environment does not include any cookbook version constraints.
              - else
                - @environment.cookbook_versions.keys.sort.each do |name|
                  - versions = @environment.cookbook_versions[name]
                  %tr
                    %td= name
                    %td= versions
          .left
            %h3 Attributes
            = build_tree('attrs', @environment.attributes)

Sort cookbooks by name in environment show
Sort cookbooks by name in environment show
