forked from expo/troggle
42 lines
1.2 KiB
HTML
42 lines
1.2 KiB
HTML
{% extends "base.html" %}
|
|
{% load wiki_markup %}
|
|
{% block title %}Person {{person|wiki_to_html_short}}{% endblock %}
|
|
|
|
{% block editLink %}| <a href={{person.get_admin_url}}>Edit person {{person|wiki_to_html_short}}</a>{% endblock %}
|
|
|
|
{% block contentheader %}
|
|
<h2> {{person|wiki_to_html_short}} </h2>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
|
|
{% if person.mug_shot %}
|
|
<div class="figure">
|
|
<p> <img src="{{ person.mug_shot }}" class="thumbnail" />
|
|
</p>
|
|
</div>
|
|
{% endif %}
|
|
<br class="clearfloat" />
|
|
|
|
<h3>{{person|wiki_to_html_short}} has been on expo in the following years:</h3>
|
|
<p>
|
|
<ul>
|
|
{% for personexpedition in person.personexpedition_set.all %}
|
|
<li> <a href="{{ personexpedition.get_absolute_url }}">{{personexpedition.expedition.year}}</a>
|
|
<span style="padding-left:{{personexpedition.persontrip_set.all|length}}0px; background-color:red"></span>
|
|
{{personexpedition.persontrip_set.all|length}} trips
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</p>
|
|
|
|
{% if person.blurb %}
|
|
{{person.blurb|safe}}
|
|
{% else %}
|
|
To add a blurb file for a person, create /folk/l/<id>.html and register it in /folk/folk.csv .
|
|
Documented in <a href="/handbook/computing/folkupdate.html">/handbook/computing/folkupdate.html</a>
|
|
{% endif %}
|
|
|
|
{% endblock %}
|