<div class="top-bar">
  <div class="row">
    <div class="title pull-left">
      <h1>My Dashboard</h1>
    </div>

    <div class="trigger-build">
      <%= link_to 'Trigger New Build', new_smoca_build_path, class: 'btn btn-info pull-right' %>
    </div>
  </div>
</div>

<hr>

<div id="dashboard_builds" class="row builds">
  <% if @in_progress_builds.any? %>
    <div id="pending_builds">
      <div class="dashboard-section-header">
        <h2>In Progress Builds</h2>
        <!--Commented out until we introduce the expand logic-->
        <!--<span id="pending-dropdown" class="glyphicon glyphicon-menu-down"></span>-->
      </div>

      <div id="pending_build_list" class="build-list">
        <%= render 'build_list', builds: @in_progress_builds %>
      </div>
    </div>
    <hr>
  <% end %>

  <div id="past_builds">
    <div class="dashboard-section-header">
      <h2>Past Builds</h2>
      <!--Commented out until we introduce the expand logic-->
      <!--<span id="past-dropdown" class="glyphicon glyphicon-menu-down"></span>-->
    </div>

    <div id="past_builds_list" class="build-list">
      <%= render 'build_list', builds: @paginated_builds %>
      <%= will_paginate @paginated_builds %>
    </div>
  </div>
</div>
