initial: hermes-dashboard snapshot (post overview + git integration)
This commit is contained in:
46
templates/projects.html
Normal file
46
templates/projects.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user