%ul.slugtree{:data => { :href => mapping_sections_path(@program, :format => :html)}}
  -if sections.empty?
    Nothing found.
  =walk_slug_tree(Program.slugtree(sections)) do |section, step|
    .row-fluid
      .span12
        .regulationslot.toggle.span9
          =link_to mapping_selected_section_path(section), :remote => true, :method => :post, :class => [:selector, :collapsed] do
            %span.prefix=section.compact_slug
            =section.title
        -controls = section.linked_controls
        -status_class = (controls.empty? && !section.na?) ? 'statusred' : 'statusyellow'
        .attached.controllistRM.span3(class = status_class)
          -if !controls.empty?
            %ul.spannomargin{ :title => controls.map(&:slug).join(", ") }
              %li
                %a.controls{:data => { :href => mapping_section_dialog_path(section)} }
                  %strong=controls.count
                  \:
              -controls.each do |control|
                %li
                  %a.controls{:data => { :href => mapping_section_dialog_path(section)} }
                    =control.slug
          -if section.na?
            %a.controls{:data => { :href => mapping_section_dialog_path(section)} }
              N/A
          -elsif controls.empty?
            %a.controls{:data => { :href => mapping_section_dialog_path(section)} }
              %strong 0

%ul.slugtree{:data => { :href => mapping_sections_path(@program, :format => :html)}}
  -if sections.empty?
    Nothing found.
  =walk_slug_tree(Program.slugtree(sections)) do |section, step|
    .row-fluid
      .span12
        .regulationslot.toggle.span9.collapsed
          =link_to mapping_selected_section_path(section), :remote => true, :method => :post, :class => [:selector, :collapsed] do
            %span.prefix=section.compact_slug
            =section.title
        -controls = section.linked_controls
        -status_class = (controls.empty? && !section.na?) ? 'statusred' : 'statusyellow'
        .attached.controllistRM.span3(class = status_class)
          -if !controls.empty?
            %ul.spannomargin{ :title => controls.map(&:slug).join(", ") }
              %li
                %a.controls{:data => { :href => mapping_section_dialog_path(section)} }
                  %strong=controls.count
                  \:
              -controls.each do |control|
                %li
                  %a.controls{:data => { :href => mapping_section_dialog_path(section)} }
                    =control.slug
          -if section.na?
            %a.controls{:data => { :href => mapping_section_dialog_path(section)} }
              N/A
          -elsif controls.empty?
            %a.controls{:data => { :href => mapping_section_dialog_path(section)} }
              %strong 0

Add 'collapsed' class to trigger ellipses
Add 'collapsed' class to trigger ellipses
