initial: hermes-dashboard snapshot (post overview + git integration)

This commit is contained in:
hermes-dashboard
2026-08-17 19:51:51 +08:00
commit 1e5e30ffcb
22 changed files with 2333 additions and 0 deletions

46
templates/projects.html Normal file
View File

@@ -0,0 +1,46 @@
{% extends "base.html" %}
{% block title %}Projects - Hermes{% endblock %}
{% block content %}
<h2>📦 Managed Projects</h2>
<div class="card">
<table>
<thead>
<tr>
<th>Name</th>
<th>Path</th>
<th>Branch</th>
<th>Last Commit</th>
<th>Time</th>
<th>Dirty</th>
<th>Gitea</th>
</tr>
</thead>
<tbody>
{% for proj in projects %}
<tr>
<td><a href="/projects/{{ proj.name }}">{{ proj.name }}</a></td>
<td class="text-small">{{ proj.path }}</td>
<td>{{ proj.branch or 'N/A' }}</td>
<td class="text-small">
{% if proj.commit_short %}
{{ proj.commit_short }} {{ proj.commit_msg[:50] }}
{% else %}
<span class="text-muted">{{ proj.status }}</span>
{% endif %}
</td>
<td>{% if proj.commit_time %}{{ proj.commit_time|int|rel }}{% else %}N/A{% endif %}</td>
<td>{{ proj.dirty_count }}</td>
<td>
{% if proj.gitea_repo %}
<a href="http://localhost:3000/admin/{{ proj.gitea_repo }}" target="_blank"></a>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}