Update public source

This commit is contained in:
2026-10-09 14:23:52 +03:00
parent 3a710e1821
commit c6e55e2476
2 changed files with 190 additions and 6 deletions
+100
View File
@@ -0,0 +1,100 @@
{% extends "base.html" %}
{% block title %}CrackLab — Results{% endblock %}
{% block content %}
<div class="results-page">
<div class="jobs-page-header">
<div>
<h1 class="page-title">Results</h1>
<p class="page-description">
Import completed results from CrackLab clients and review import history.
</p>
</div>
</div>
{% if error %}
<div class="jobs-message jobs-message-error">
{{ error }}
</div>
{% endif %}
{% if message %}
<div class="jobs-message jobs-message-success">
{{ message }}
{% if result_summary and result_summary.status == "COMPLETED" %}
<div class="method-help">
Credentials imported: {{ result_summary.credentials_imported }}.
Already present: {{ result_summary.credentials_already_present }}.
Attempts completed: {{ result_summary.attempts_completed }}.
Reservations released: {{ result_summary.reservations_released }}.
</div>
{% endif %}
</div>
{% endif %}
<section class="card">
<h2>Import Result Package</h2>
<form method="post" enctype="multipart/form-data" class="jobs-form">
<div class="method-field">
<label for="result_package">Result ZIP package</label>
<input
id="result_package"
name="result_package"
type="file"
accept=".zip,application/zip"
required
>
<div class="method-help">
Select the ZIP package produced by a CrackLab client.
Maximum upload size: 100 MB.
</div>
</div>
<div class="method-step-actions">
<button type="submit" class="methods-button">
Import Result
</button>
</div>
</form>
</section>
<section class="card">
<h2>Import History</h2>
{% if results %}
<div class="table-container">
<table>
<thead>
<tr>
<th>Job ID</th>
<th>Status</th>
<th>Imported At (UTC)</th>
</tr>
</thead>
<tbody>
{% for result in results %}
<tr>
<td>{{ result["job_id"] }}</td>
<td>
<span class="badge-completed">
{{ result["status"] }}
</span>
</td>
<td>{{ result["imported_at"] }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% else %}
<div class="empty-state">
No result packages have been imported yet.
</div>
{% endif %}
</section>
</div>
{% endblock %}