<script>
  $(document).ready(function() {
    $(".collapse").collapse();
  });
</script>
<ul class="pager">
<% builds.each_with_index do |build, idx| %>
  <div class="accordion" id="accordion<%= idx %>">
    <div class="accordion-heading">
      <a class="accordion-toggle <%= build.heading_color %>" data-toggle="collapse" data-parent="#accordion<%= idx+1 %>" href="#collapse_<%= idx %>">
        <strong><%= build[:parent] %></strong> :: <%= build.display_title %>&nbsp;<% build[:warnings].each do |warning| %><span class="label label-important"><%= warning %></span><% end %>
      </a>
    </div>
    <div id="collapse_<%= idx %>" class="accordion-body collapse in">
      <div class="row">
        <div class="span8">
          <div>
            <a href="<%= build_url_for(build) %>">Link to this build</a>
          </div>
          <div class="accordion-inner build-output">
            <%= build.output if build.respond_to? :output %>
          </div>
        </div>
        <div class="span4">
          <%= erb(:"partials/builds/debug", :locals => { :build => build }) %>
        </div>
      </div>
    </div>
  </div>
<% end %>
</ul>

<script>
  $(document).ready(function() {
    $(".collapse").collapse();
  });
</script>
<ul class="pager">
<% builds.each_with_index do |build, idx| %>
  <div class="accordion" id="accordion<%= idx %>">
    <%= erb(:"partials/builds/show", :locals => { :build => build, :idx => idx }) %>
  </div>
<% end %>
</ul>

Use the build/show partial in the build queue
Use the build/show partial in the build queue
