2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-22 23:31:52 +00:00
troggle/templates/notablepersons.html

51 lines
1.9 KiB
HTML
Raw Normal View History

2011-07-11 02:10:22 +01:00
{% extends "base.html" %}
{% block title %}Person Index{% endblock %}
{% block content %}
<!-- notablepersons.html - this text visible because this template has been included -->
2011-07-11 02:10:22 +01:00
<h2>Notably Recent Expoers</h2>
2011-07-11 02:10:22 +01:00
<table class="searchable">
<tr><th>Person</th><th>First</th><th>Last</th><th>Recency</th></tr>
{% for person in notablepersons %}
2011-07-11 02:10:22 +01:00
<tr>
2021-04-30 22:44:03 +01:00
<td><a href="{{ person.get_absolute_url }}">{{person|safe}}</a></td>
2011-07-11 02:10:22 +01:00
<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 style="text-align:right">{{person.notability|floatformat:2}}</td>
2011-07-11 02:10:22 +01:00
</tr>
{% empty %}
<td>&nbsp;No one is notable&nbsp;</td><td> &nbsp; </td><td> &nbsp;</td><td> &nbsp;</td>
{% endfor %}
2011-07-11 02:10:22 +01:00
</table>
<p>This is based purely on attendance, not on activities, surveying or usefulness of any kind.
But as Woody Allen said: "90% of success is just turning up".
This is mostly people who have been within the past three years, with an additional bias for number of attendances since 1976.
The metric is just a geometric "recency" (1/2 for attending last year, 1/3 for the year before, etc., added up.)
The display cuttoff is 1/3 so if you came just once, three years ago, you are on the list.
2011-07-11 02:10:22 +01:00
<h2>All expoers</h2>
<table class="searchable">
<tr>
{% for persons in pcols %}
2011-07-11 02:10:22 +01:00
<td>
<table>
<tr><th>Person</th><th>First</th><th>Last</th><th>Surveyed length</th></tr>
{% for person in persons %}
<tr>
2021-04-30 22:44:03 +01:00
<td><a href="{{ person.get_absolute_url }}">{{person|safe}}</a></td>
2011-07-11 02:10:22 +01:00
<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 style="text-align:right">{{person.surveyedleglength|stringformat:".0f"}} m </td>
2011-07-11 02:10:22 +01:00
</tr>
{% endfor %}
</table>
</td>
{% endfor %}
</tr>
</table>
{% endblock %}