add a stylized default template
This commit is contained in:
+21
-2
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user