diff options
author | Sam Wenham <sam@wenhams.co.uk> | 2019-04-02 02:04:38 +0100 |
---|---|---|
committer | Sam Wenham <sam@wenhams.co.uk> | 2019-04-02 02:04:38 +0100 |
commit | d1d0c24ed8864e88f1f6e74c5ac5776fdeaf6f5a (patch) | |
tree | 6f9be692bdf248caa05e4500256e01edc444288d /templates/personindex.html | |
parent | b3089fafe99d4fffc9ee96ad1a8d70d0dd242f80 (diff) | |
download | troggle-d1d0c24ed8864e88f1f6e74c5ac5776fdeaf6f5a.tar.gz troggle-d1d0c24ed8864e88f1f6e74c5ac5776fdeaf6f5a.tar.bz2 troggle-d1d0c24ed8864e88f1f6e74c5ac5776fdeaf6f5a.zip |
Sort people by notability
Better errors and tidy
Nicer date formats
Diffstat (limited to 'templates/personindex.html')
-rw-r--r-- | templates/personindex.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/personindex.html b/templates/personindex.html index 1f21b2b..56e97d9 100644 --- a/templates/personindex.html +++ b/templates/personindex.html @@ -8,12 +8,12 @@ <h2>Notable expoers</h2> <table class="searchable"> <tr><th>Person</th><th>First</th><th>Last</th><th>Notability</th></tr> -{% for person in notablepersons %} +{% for person in notablepersons|dictsortreversed:"notability" %} <tr> <td><a href="{{ person.get_absolute_url }}">{{person|wiki_to_html_short}}</a></td> <td><a href="{{ person.first.get_absolute_url }}">{{ person.first.expedition.year }}</a></td> <td><a href="{{ person.last.get_absolute_url }}">{{ person.last.expedition.year }}</a></td> - <td>{{person.notability}}</td> + <td>{{person.notability|floatformat:2}}</td> </tr> {% endfor %} </table> |