44 lines
1.1 KiB
Twig
44 lines
1.1 KiB
Twig
{% extends 'layout.twig' %}
|
|
|
|
{% block title %}Component: {{ component.name }}{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="twelve columns">
|
|
<h1>{{ component.name }}</h1>
|
|
<p>{{ component.type }}</p>
|
|
</div>
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<div class="row">
|
|
<div class="twelve columns">
|
|
<h3>Tests using this component:</h3>
|
|
|
|
{% if component.tests | length > 0 %}
|
|
<table class="u-full-width">
|
|
<thead>
|
|
<tr>
|
|
<th>Test title</th>
|
|
<th>Benchmarks</th>
|
|
<th>Last updated</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for t in component.tests %}
|
|
<tr>
|
|
<td><a href="{{ url_for('test.view', { test_id: t.id }) }}">{{ t.title }}</a></td>
|
|
<td>{{ t.benchmarks | length }}</td>
|
|
<td>{{ t.updated_at }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<p>There are no tests associated with this component.</p>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|