commit for publication
This commit is contained in:
@@ -0,0 +1,79 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}Test Bench Setup - Autotest{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<div class="setup-container" style="display: flex; gap: 0px; align-items: flex-start; margin-left: 100px;">
|
||||
|
||||
|
||||
<div>
|
||||
<h2>Active Tests</h2>
|
||||
<table style="width: 100%; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background-color: var(--bg-surface);">
|
||||
<thead>
|
||||
<tr style="background-color: var(--bg-active); border-bottom: 1px solid var(--border);">
|
||||
<th style="padding: 12px; text-align: left;">ID</th>
|
||||
<th style="padding: 12px; text-align: left;">Author</th>
|
||||
<th style="padding: 12px; text-align: left;">Project</th>
|
||||
<th style="padding: 12px; text-align: left;">Version</th>
|
||||
<th style="padding: 12px; text-align: left;">Date</th>
|
||||
<th style="padding: 12px; text-align: left;">Start Time</th>
|
||||
<th style="padding: 12px; text-align: left;">Status</th>
|
||||
<th style="padding: 12px; text-align: center; width: 1%; white-space: nowrap;">Delete</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for report in active_reports %}
|
||||
<tr style="border-bottom: 1px solid var(--border);" class="clickable" data-href="/active-tests/{{ report.test_report_id }}">
|
||||
<td style="padding: 12px; text-align: left; font-weight: 600; color: var(--text-muted);">
|
||||
{{ report.test_report_id }}
|
||||
</td>
|
||||
|
||||
<td style="padding: 12px; text-align: left; font-weight: 600; color: var(--text-muted);">
|
||||
{{ report.author.username }}
|
||||
</td>
|
||||
|
||||
<td style="padding: 12px; text-align: left; font-weight: 600; color: var(--text-muted);">
|
||||
{{ report.project_version.project.project_name }}
|
||||
</td>
|
||||
|
||||
<td style="padding: 12px; text-align: left; font-weight: 600; color: var(--text-muted);">
|
||||
{{ report.project_version.version_string }}
|
||||
</td>
|
||||
|
||||
<td style="padding: 12px; text-align: left; font-weight: 600; color: var(--text-muted);">
|
||||
{{ report.timestamp_start.strftime("%d %b %Y") }}
|
||||
</td>
|
||||
|
||||
<td style="padding: 12px; text-align: left; font-weight: 600; color: var(--text-muted);">
|
||||
{{ report.timestamp_start.strftime("%H:%M:%S") }}
|
||||
</td>
|
||||
|
||||
<td style="padding: 12px; text-align: left; font-weight: 600; color: var(--text-muted);">
|
||||
In Progress
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<form action="/active-tests/delete/{{ report.test_report_id }}" method="POST">
|
||||
<button type="submit">X</button>
|
||||
</form>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="7" style="padding: 20px; text-align: center; color: var(--text-muted);">No tests are in progress.</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
|
||||
|
||||
{% block scripts %}
|
||||
|
||||
<script src="{{ url_for('static', filename='utils/clickable.js') }}"></script>
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user