41 lines
1.0 KiB
HTML
41 lines
1.0 KiB
HTML
{% extends "base.html" %}
|
|
{% block content %}
|
|
<div style="display:flex; justify-content:space-between; align-items:center; margin-bottom:16px;">
|
|
<h1>Export Logs — {{ config.name }}</h1>
|
|
<a href="/configs/{{ config.id }}" class="btn" style="background:#6b7280;color:#fff;">← Back</a>
|
|
</div>
|
|
|
|
{% if logs %}
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Time</th>
|
|
<th>Status</th>
|
|
<th>Nodes</th>
|
|
<th>Error</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for log in logs %}
|
|
<tr>
|
|
<td>{{ log.fetched_at.strftime('%Y-%m-%d %H:%M:%S') }}</td>
|
|
<td>
|
|
{% if log.success %}
|
|
<span class="success">✓ OK</span>
|
|
{% else %}
|
|
<span class="error">✗ Failed</span>
|
|
{% endif %}
|
|
</td>
|
|
<td>{{ log.node_count }}</td>
|
|
<td style="font-size:.8rem;color:#666;">{{ log.error_message or '' }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<div class="card">
|
|
<p style="color:#666;text-align:center;">No export logs yet.</p>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|