<div class="build-list">
  <table class="builds table-hover" style="width:100%">
    <tr class="header">
      <th>Name</th>
      <th>Date</th>
      <th>Developer</th>
      <th>Result</th>
    </tr>
    <% if builds.any? %>
      <% builds.each do |build| %>
        <tr class="build-item">

          <!--Name-->
          <td id="name"><%= link_to build.name, build %></td>

          <!--Date-->
          <td id="date"><%= build.initiated_at.strftime('%D') %></td>

          <!--Developer-->
          <% if @params %>
            <td id="developer"><%= link_to build.developer, smoca_build_index_path(@params.merge(:developer => build.developer)) %></td>
          <% else %>
            <td id="developer"><%= build.developer %></td>
          <% end %>

          <!--Result-->
          <td id="result" class="text-uppercase"><%= build.display_result %></td>

        </tr>
      <% end %>
      </table>
    <% else %>
      <tr><td>No Builds Found</td></tr>
      </table>
    <% end %>
</div>
