feat: add "Last Updated" column to search results

Signed-off-by: moson-mo <mo-son@mailbox.org>
This commit is contained in:
moson-mo 2023-01-18 21:55:01 +01:00
parent becce1aac4
commit ec239ceeb3
No known key found for this signature in database
GPG key ID: 4A4760AB4EE15296
3 changed files with 23 additions and 1 deletions

View file

@ -68,6 +68,16 @@
{{ "Maintainer" | tr }}
</a>
</th>
<th>
{% if SB == "l" %}
{% set order = reverse_order %}
{% else %}
{% set order = SO %}
{% endif %}
<a href="/packages?{{ q | extend_query(('O', 0), ('SB', 'l'), ('SO', order)) | urlencode }}">
{{ "Last Updated" | tr }}
</a>
</th>
</tr>
</thead>
<tbody>
@ -115,6 +125,11 @@
<span class="error">{{ "orphan" | tr }}</span>
{% endif %}
</td>
{% if flagged %}
<td class="flagged">{{ datetime_display(pkg.ModifiedTS) }}</td>
{% else %}
<td>{{ datetime_display(pkg.ModifiedTS) }}</td>
{% endif %}
</tr>
{% endfor %}
</tbody>