#sidebar= render 'shared/node_manager_sidebar'
#main
  .header
    %h2
      Class:
      = @node_class.name
    %ul.actions
      - unless SETTINGS.enable_read_only_mode
        %li= link_to 'Edit', edit_node_class_path(@node_class), :class => "edit button"
        %li= link_to 'Delete', @node_class, :confirm => 'Are you sure?', :method => :delete, :class => "delete button"

  .item
    - if @node_class.all_nodes.present?
      .section
        = render 'statuses/run_failure', :nodes => @node_class.all_nodes
    .section
      %h3 Nodes in this class
      - if @node_class.all_nodes.present?
        = render 'nodes/nodes', :nodes => @node_class.all_nodes, :container => @node_class
      - else
        = describe_no_matches_for :nodes, :class
