diff options
author | goatchurch <goatchurch@ubuntu.clocksoft.dom> | 2009-09-11 09:04:59 +0100 |
---|---|---|
committer | goatchurch <goatchurch@ubuntu.clocksoft.dom> | 2009-09-11 09:04:59 +0100 |
commit | f21cddb2d04bcdfbb8aa5e93501902460087dee0 (patch) | |
tree | fb29934eedff3c09551774a5325b61f77f5346ba /templates | |
parent | 735b729a414fdda2e4b832c58707decb19aaae6c (diff) | |
download | troggle-f21cddb2d04bcdfbb8aa5e93501902460087dee0.tar.gz troggle-f21cddb2d04bcdfbb8aa5e93501902460087dee0.tar.bz2 troggle-f21cddb2d04bcdfbb8aa5e93501902460087dee0.zip |
modelviz added
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 1 | ||||
-rw-r--r-- | templates/personexpedition.html | 29 |
2 files changed, 17 insertions, 13 deletions
diff --git a/templates/base.html b/templates/base.html index 1715340..10e670c 100644 --- a/templates/base.html +++ b/templates/base.html @@ -33,6 +33,7 @@ </div>
<div class="toolbarlinks">
<a href="{% url survexcaveslist %}">All Cave Survex</a> |
+ <a href="{% url surveyscansfolders %}">All scans</a> |
<a href="{% url survexcavessingle 161 %}">161</a> |
<a href="{% url survexcavessingle 204 %}">204</a> |
<a href="{% url survexcavessingle 258 %}">258</a> |
diff --git a/templates/personexpedition.html b/templates/personexpedition.html index ac6c902..78018db 100644 --- a/templates/personexpedition.html +++ b/templates/personexpedition.html @@ -6,21 +6,20 @@ {% block content %}
-<h2>{{personexpedition.person}}: {{personexpedition.expedition}} ({{personexpedition.date_from}} - {{personexpedition.date_to}})</h2>
+<h1>
+ <a href="{{personexpedition.person.get_absolute_url}}">{{personexpedition.person}}</a> :
+ <a href="{{personexpedition.expedition.get_absolute_url}}">{{personexpedition.expedition}}</a>
+</h1>
-<h3>{{message}}</h3>
+<p>{{message}}</p>
-<p><b><a href="{{ personexpedition.expedition.get_absolute_url }}">Main page for expedition: {{personexpedition.expedition}}</a></b></p>
-<p><b><a href="{{ personexpedition.person.get_absolute_url }}">Main page for person: {{personexpedition.person}}</a></b></p>
-
-<p>List of other expos by this person</p>
-<p>
+<p><b>Other years:</b>
{% for otherpersonexpedition in personexpedition.person.personexpedition_set.all %}
-{% ifequal otherpersonexpedition personexpedition %}
+ {% ifequal otherpersonexpedition personexpedition %}
| <b>{{otherpersonexpedition.expedition.year}}</b>
-{% else %}
- | {{ otherpersonexpedition|link }}
-{% endifequal %}
+ {% else %}
+ | <a href="{{otherpersonexpedition.get_absolute_url}}">{{ otherpersonexpedition.expedition.year }}</a>
+ {% endifequal %}
{% endfor %}
</p>
@@ -40,8 +39,12 @@ {% endif %}
{% if persondate.2 %}
- <td class="survexblock"><a href="{% url survexblock persondate.2.0 %}">{{persondate.2.0}}</a></td>
- <td class="roles">{{persondate.2.1}}</td>
+ <td class="survexblock"><a href="{% url svx persondate.2.survexfile.path %}">{{persondate.2}}</a></td>
+ <td class="roles">
+ {% for survexpersonrole in persondate.2.survexpersonrole_set.all %}
+ {{survexpersonrole.nrole}}
+ {% endfor %}
+ </td>
{% else %}
<td colspan="2"> </td>
{% endif %}
|