summaryrefslogtreecommitdiffstats
path: root/templates/dashboard.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/dashboard.html')
-rw-r--r--templates/dashboard.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/templates/dashboard.html b/templates/dashboard.html
new file mode 100644
index 0000000..6cca81e
--- /dev/null
+++ b/templates/dashboard.html
@@ -0,0 +1,21 @@
+{% extends "base.html" %}
+{% block content %}
+<h1>Dashboard</h1>
+<div class="card">
+<table>
+<tr><th>Subscriptions</th><td>{{ subscriptions }}</td></tr>
+<tr><th>Packages in the index</th><td>{{ index_count }}</td></tr>
+<tr><th>Reviews pending</th><td><a href="/reviews">{{ pending_reviews }}</a></td></tr>
+<tr><th>Builds queued or running</th><td><a href="/builds">{{ running_builds }}</a></td></tr>
+<tr><th>Needs attention</th><td><a href="/attention">{{ attention }}</a></td></tr>
+</table>
+</div>
+<h2>Recent publishes</h2>
+{% if publishes.is_empty() %}<p class="mut">Nothing published yet.</p>{% else %}
+<table><tr><th>pkgbase</th><th>version</th><th>published</th><th>aur_commit</th></tr>
+{% for r in publishes %}<tr>
+<td><a href="/packages/{{ r.name }}">{{ r.name }}</a></td>
+<td>{{ r.version }}</td><td class="mut">{{ r.published_at }}</td>
+<td><a href="https://aur.archlinux.org/cgit/aur.git/tree/?h={{ r.name }}&id={{ r.aur_commit }}">{{ r.aur_commit_short }}</a></td>
+</tr>{% endfor %}</table>{% endif %}
+{% endblock %}