add a stylized default template

This commit is contained in:
Trevor Bentley
2023-01-13 17:25:28 +01:00
parent 0966bb534f
commit f142234be0
16 changed files with 664 additions and 122 deletions
+21 -2
View File
@@ -1,7 +1,26 @@
{% extends "base.html" %}
{% block content %}
{% for repo in repos | sort(attribute="name") -%}
<a href="{{repo.name}}/summary.html">{{ repo.name }}</a> ({{repo.metadata.website}}) [{{repo.metadata.attributes | get(key="status", default="unknown")}}] ({{ts_to_date(ts=repo.history[0].ts_utc, tz=repo.history[0].ts_offset)}})<br/>
<table class="repo-list">
<colgroup>
<col class="repo" />
<col class="description nosmall" />
<col class="website" />
<col class="updated" />
</colgroup>
<tr>
<th>Repository</th>
<th class="nosmall">Description</th>
<th>Website</th>
<th>Last Updated</th>
</tr>
{% for repo in repos | sort(attribute="name") -%}
<tr>
<td class="repo"><a href="{{repo.name}}/summary.html">{{ repo.name }}</a></td>
<td class="description nosmall">{{repo.metadata.description}}</td>
<td class="website">{% if repo.metadata.website -%}<a href="{{repo.metadata.website}}">link</a>{% endif -%}</td>
<td class="date">{{ts_to_date(ts=repo.history[0].ts_utc, tz=repo.history[0].ts_offset)}}</td>
</tr>
{% endfor -%}
</table>
{% endblock content %}