summaryrefslogtreecommitdiffstats
path: root/templates/cavewallets.html
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-10-05 14:11:05 +0300
committerPhilip Sargent <philip.sargent@gmail.com>2023-10-05 14:11:05 +0300
commitfcfa59cdf7273c97c022fb1ba2b249f4199811ba (patch)
treebdd48f9ecbd62c8286d1b270fed4131d45e8fe98 /templates/cavewallets.html
parenteae919e5b213d03d29b9103b8db2534e506e81d1 (diff)
downloadtroggle-fcfa59cdf7273c97c022fb1ba2b249f4199811ba.tar.gz
troggle-fcfa59cdf7273c97c022fb1ba2b249f4199811ba.tar.bz2
troggle-fcfa59cdf7273c97c022fb1ba2b249f4199811ba.zip
Make people listed in wallets url-linkable
Diffstat (limited to 'templates/cavewallets.html')
-rw-r--r--templates/cavewallets.html11
1 files changed, 8 insertions, 3 deletions
diff --git a/templates/cavewallets.html b/templates/cavewallets.html
index 3f88def..ffc4034 100644
--- a/templates/cavewallets.html
+++ b/templates/cavewallets.html
@@ -31,8 +31,13 @@ traced to produce Tunnel or Therion drawings and eventually the final complete c
<td style="padding:2px">{% if wallet.walletdate %}{{wallet.walletdate}}{% else %} {% endif %}</td>
<td style="padding:2px">{% if wallet.name %}{{wallet.name|truncatechars:20}}{% else %}<em>{% if wallet.displaynames %} {% for dn in wallet.displaynames %}{{dn}}{%if not forloop.last %}, {% endif %} {% endfor %}{% else %} {% endif %}</em>{% endif %}</td>
- <td style="padding:2px">{% if wallet.slugpeople %}<em>{%for p in wallet.slugpeople%}<a href="/person/{{p.slug}}">{{p.fullname}}</a>{%if not forloop.last %}, {% endif %}{% endfor %}</em>{% else %}{{wallet.persons }}{% endif %}</td>
- <td align="center" style="padding:2px"><a href="{{wallet.get_absolute_url}}">{{wallet.singlescan_set.all|length}}</a></td>
+ <td style="padding:2px">
+ {% if wallet.slugpeople %}
+ <em>{%for p in wallet.slugpeople%}<a href="/person/{{p.slug}}">{{p.fullname}}</a>{%if not forloop.last %}, {% endif %}{% endfor %}</em>
+ {% endif %}
+ {%for p in wallet.persons%}
+ <a href="/person/{{p.slug}}">{{p.fullname}}</a>{%if not forloop.last %}, {% endif %}
+ {% endfor %}</td> <td align="center" style="padding:2px"><a href="{{wallet.get_absolute_url}}">{{wallet.singlescan_set.all|length}}</a></td>
<td style="padding:2px">
{% for survexblock in wallet.survexblock_set.all %}
<a href="{% url "svx" survexblock.survexfile.path %}">{{survexblock}}</a>
@@ -49,5 +54,5 @@ traced to produce Tunnel or Therion drawings and eventually the final complete c
</tr>
{% endfor %}
</table>
-
+<br />Names in italics are taken from the associated survex file blocks, names not in italics are listed explicitly on the wallet.
{% endblock %} \ No newline at end of file