changeset 119228563334 in bugs.tryton.org:default
details: https://hg.tryton.org/bugs.tryton.org?cmd=changeset;node=119228563334
description:
Sort files by reverse creation
diffstat:
html/file.index.html | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 623b80810629 -r 119228563334 html/file.index.html
--- a/html/file.index.html Sat Jan 30 21:29:32 2021 +0100
+++ b/html/file.index.html Thu Feb 04 18:08:21 2021 +0100
@@ -9,7 +9,7 @@
{% if context.is_edit_ok() %}<th>{% trans %}Remove{% endtrans %}</th>{%
endif %}
</tr>
</thead>
- {% for file in context.files %}
+ {% for file in context.files.sorted('creation', reverse=True) %}
<tr>
<td>
<a class="btn btn-sm btn-outline-primary" href='{{
file.download_url()|u|safe }}'>{{ file.name.plain()|u }}</a>