refactor(templates): use timeago filter for admin/blueprint timestamps
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
263a9a9f27
commit
4f6d9bcca6
2 changed files with 4 additions and 4 deletions
|
|
@ -22,8 +22,8 @@
|
||||||
<td>{{ user.username }}</td>
|
<td>{{ user.username }}</td>
|
||||||
<td>{{ "yes" if user.admin else "no" }}</td>
|
<td>{{ "yes" if user.admin else "no" }}</td>
|
||||||
<td>{{ "yes" if user.active else "no" }}</td>
|
<td>{{ "yes" if user.active else "no" }}</td>
|
||||||
<td>{{ user.created_at }}</td>
|
<td>{{ user.created_at | timeago }}</td>
|
||||||
<td>{{ user.updated_at }}</td>
|
<td>{{ user.updated_at | timeago }}</td>
|
||||||
<td>
|
<td>
|
||||||
{% if user.id == g.user.id %}
|
{% if user.id == g.user.id %}
|
||||||
<span class="muted">you</span>
|
<span class="muted">you</span>
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,8 @@
|
||||||
{% for blueprint in blueprints %}
|
{% for blueprint in blueprints %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="/blueprints/{{ blueprint.id }}">{{ blueprint.name }}</a></td>
|
<td><a href="/blueprints/{{ blueprint.id }}">{{ blueprint.name }}</a></td>
|
||||||
<td>{{ blueprint.created_at }}</td>
|
<td>{{ blueprint.created_at | timeago }}</td>
|
||||||
<td>{{ blueprint.updated_at }}</td>
|
<td>{{ blueprint.updated_at | timeago }}</td>
|
||||||
<td><a href="/servers?blueprint_id={{ blueprint.id }}">Create server</a></td>
|
<td><a href="/servers?blueprint_id={{ blueprint.id }}">Create server</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue