52 lines
1.2 KiB
Plaintext
52 lines
1.2 KiB
Plaintext
<div class="row">
|
|
<div class="col-12">
|
|
<h1><%= benchmark.name %></h1>
|
|
</div>
|
|
|
|
<div class="col-12">
|
|
<p><a href="/benchmark/<%= benchmark.id %>/edit">Edit</a></p>
|
|
</div>
|
|
|
|
<div class="col-12">
|
|
Benchmark scoring type: <%= benchmark.scoring %>
|
|
</div>
|
|
|
|
<div class="col-12">
|
|
Description:
|
|
<p><%= benchmark.description %></p>
|
|
</div>
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<h3 class="mb-3">Profiles created for this benchmark:</h3>
|
|
|
|
<% if benchmark.benchmark_profiles.length > 0 %>
|
|
<table class="table table-hover table-responsive">
|
|
<thead class="table-light">
|
|
<tr>
|
|
<th>Profile Label</th>
|
|
<th>Tests Linked</th>
|
|
<th>Created at</th>
|
|
<th>Last updated</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% benchmark.benchmark_profiles.each do |bp| %>
|
|
<tr>
|
|
<td><%= bp.display_name %></td>
|
|
<td><%= bp.tests.length %></td>
|
|
<td><%= bp.created_at %></td>
|
|
<td><%= bp.updated_at %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
<% else %>
|
|
<p>There are no profiles associated with this benchmark.</p>
|
|
<% end %>
|
|
</div>
|
|
</div>
|