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 | 05c5e26e9991fb3e753759c50bc1f29e3592704e (patch) | |
tree | 6f9be692bdf248caa05e4500256e01edc444288d /templates | |
parent | c4301cf6df56ba1bef4f2c908b949a2b45ea65dc (diff) | |
download | troggle-05c5e26e9991fb3e753759c50bc1f29e3592704e.tar.gz troggle-05c5e26e9991fb3e753759c50bc1f29e3592704e.tar.bz2 troggle-05c5e26e9991fb3e753759c50bc1f29e3592704e.zip |
Sort people by notability
Better errors and tidy
Nicer date formats
Diffstat (limited to 'templates')
-rw-r--r-- | templates/expedition.html | 2 | ||||
-rw-r--r-- | templates/logbookentry.html | 4 | ||||
-rw-r--r-- | templates/personindex.html | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/templates/expedition.html b/templates/expedition.html index 7c0ecd5..0b0d360 100644 --- a/templates/expedition.html +++ b/templates/expedition.html @@ -69,7 +69,7 @@ an "S" for a survey trip. The colours are the same for people on the same trip. {% regroup dateditems|dictsort:"date" by date as dates %} {% for date in dates %} <tr> -<td>{{date.grouper}}</td> +<td>{{date.grouper|date:"D d M Y"}}</td> <td>{% for item in date.list %} {% if item.isLogbookEntry %}<a href="{{ item.get_absolute_url }}">{{item.title|safe}}</a><br/>{% endif %} {% endfor %}</td> diff --git a/templates/logbookentry.html b/templates/logbookentry.html index 0534de9..5c8c341 100644 --- a/templates/logbookentry.html +++ b/templates/logbookentry.html @@ -7,7 +7,7 @@ {% block related %}{% endblock %} {% block nav %}{% endblock %} -<h2>{{logbookentry.title}}</h2> +<h2>{{logbookentry.title|safe}}</h2> <div id="related"> <p><a href="{{ logbookentry.expedition.get_absolute_url }}">{{logbookentry.expedition.name}}</a></p> @@ -66,7 +66,7 @@ <div id="col1"> <div class="logbookentry"> - <b>{{logbookentry.date}}</b> + <b>{{logbookentry.date|date:"D d M Y"}}</b> {% if logbookentry.entry_type == "html" %} <p>{{logbookentry.text|safe}}</p> {% else %} 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> |