git-subtree-dir: fiscal git-subtree-mainline:d95165fc8fgit-subtree-split:102ba84500
36 lines
2.1 KiB
HTML
36 lines
2.1 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Releases do Agent | GTI Fiscal{% endblock %}
|
|
{% block content %}
|
|
<div class="page-heading"><div><p class="eyebrow">DISTRIBUIÇÃO DO AGENT</p><h1>Versões do Agent</h1><p class="muted">O binário é universal por versão; publicação é feita por script (<code>central/scripts/publish_agent_release.py</code>), nunca por upload no navegador.</p></div><div><a href="/agents/new" class="botao">+ Nova instalação</a> <a href="/agents" class="secondary">Voltar</a></div></div>
|
|
<div class="panel table-wrap">
|
|
<table>
|
|
<caption>Releases catalogadas</caption>
|
|
<thead><tr><th>Versão</th><th>Plataforma</th><th>Status</th><th>SHA-256</th><th>Tamanho</th><th>Publicada em</th><th>Instalações</th><th></th></tr></thead>
|
|
<tbody>
|
|
{% for release in releases %}
|
|
<tr>
|
|
<td><b>{{ release.version }}</b></td>
|
|
<td>{{ release.platform }}/{{ release.architecture }} {% if release.filename.lower().endswith(".exe") %}<span class="badge">EXE</span>{% endif %}</td>
|
|
<td><span class="badge {{ 'critical' if release.status == 'REVOKED' else '' }}">{{ release.status }}</span></td>
|
|
<td><code>{{ release.sha256[:12] }}…</code></td>
|
|
<td>{{ "%.1f"|format(release.size_bytes / 1048576) }} MB</td>
|
|
<td>{{ release.published_at or "não publicada" }}</td>
|
|
<td>{{ installation_counts.get(release.id, 0) }}</td>
|
|
<td>
|
|
{% if release.status == "PUBLISHED" %}
|
|
<span class="muted" style="font-size:.8rem">{{ release.filename }}</span>
|
|
<form method="post" action="/agents/releases/{{ release.id }}/revoke" onsubmit="return confirm('Revogar a release {{ release.version }}? Nenhum novo download poderá usá-la.');">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
|
|
<button type="submit" class="secondary">Revogar</button>
|
|
</form>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% else %}
|
|
<tr><td colspan="8" class="empty-state">Nenhuma release publicada ainda.</td></tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% endblock %}
|