summaryrefslogtreecommitdiffstats
path: root/templates/person.html
blob: 5b0c7e97f9436e76b912d02acd4e459b29e9f7e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{% 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.blurb %}
{{person.blurb|safe}}
{% endif %}

{% for pic in person.photo_set.all %}
{% if pic.is_mugshot %}
    <div class="figure">
      <p> <img src="{{ pic.thumbnail_image.url }}" class="thumbnail" />
      <p> {{ pic.caption }} </p>
      <p> <a href="{{ pic.get_admin_url }}">edit {{pic}}</a>
      </p>
      </p>
    </div>
{% endif %}
{% endfor %}
<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>


{% endblock %}