<h1>Control Panel</h1>
<div class="dashboard">
  <div class="admin btn-toolbar">
    <div class="btn-group">
      <a class="admin dropdown-toggle" data-toggle="dropdown" href="#">
        <h3><%= @repository.name %> <strong class="repository caret"></strong></h3>
      </a>
      <ul class="dropdown-menu" role="menu">
        <% @repositories.each do |repository| %>
          <li><a href="?repository=<%= repository.name %>"><%= repository.name %></a></li>
        <% end %>
      </ul>
    </div>
  </div>
  <table class="table">
    <thead>
      <tr>
        <th>Metric</th>
        <th>Status</th>
        <th>Action</th>
      </tr>
    </thead>
    <tbody>
      <% @metrics.each do |metric| %>
        <tr>
          <td rowspan="2"><%= metric.to_s.titlecase %></td>
          <td><div class="admin control progress"><div class="bar"></div></div></td>
          <td rowspan="2"><button class="btn compute-metric <%= metric  %>"><strong class="icon-tasks"></strong></button></td>
        </tr>
        <tr>
          <td><div class="admin control progress"><div class="bar"></div></div></td>
        </tr>
      <% end %>
    </tbody>
  </table>
</div>

<h1>Control Panel</h1>
<div class="dashboard">
  <div class="admin btn-toolbar">
    <div class="btn-group">
      <a class="admin dropdown-toggle" data-toggle="dropdown" href="#">
        <h3><%= @repository.name %> <strong class="repository caret"></strong></h3>
      </a>
      <ul class="dropdown-menu" role="menu">
        <% @repositories.each do |repository| %>
          <li><a href="?repository=<%= repository.name %>"><%= repository.name %></a></li>
        <% end %>
      </ul>
    </div>
  </div>
  <button class="btn compute-metric all"><strong class="icon-th"></strong> Compute All</button>
  <table class="table">
    <thead>
      <tr>
        <th>Metric</th>
        <th>Progress</th>
        <th>Status</th>
        <th>Action</th>
      </tr>
    </thead>
    <tbody>
      <% @metrics.each do |metric| %>
        <tr>
          <td rowspan="2"><%= metric.to_s.titlecase %></td>
          <td><div class="admin control progress"><div class="bar"></div></div></td>
          <td></td>
          <td rowspan="2"><button class="btn compute-metric <%= metric  %>"><strong class="icon-tasks"></strong></button></td>
        </tr>
        <tr>
          <td><div class="admin control progress"><div class="bar"></div></div></td>
        </tr>
      <% end %>
    </tbody>
  </table>
</div>

Add compute all button and status table column
Add compute all button and status table column

It should be possible to compute all metrics on a certain repository, as
well as all metrics on all repositories. To introduce this I have added
a button. The additional status table column should be used to display,
whether there are metric results available and/or from when.

Signed-off-by: Konrad Reiche <4ff0213f56e2082fcd8c882d04c546881c579ce4@gmail.com>
