2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-03-01 03:01:41 +00:00

Make troggle compatible with Django 3.1

This commit is contained in:
Philip Sargent
2021-04-19 01:32:18 +01:00
parent e17a21defd
commit 879f6c288e
7 changed files with 91 additions and 90 deletions

View File

@@ -12,11 +12,11 @@
<p><b>Other years:</b>
{% for otherexpedition in expeditions %}
{% ifequal otherexpedition expedition %}
{% if otherexpedition == expedition %}
| <b>{{otherexpedition.year}}</b>
{% else %}
| <a href="{{otherexpedition.get_absolute_url}}">{{ otherexpedition.year }}</a>
{% endifequal %}
{% endif %}
{% endfor %}
</p>
<p>See also the <a href="/years/{{expedition.year}}/">documentation index</a> for this Expo

View File

@@ -31,11 +31,11 @@
<tr><th>Caver</th><th>T/U</th><th>Prev</th><th>Next</th></tr>
{% for persontrip in logbookentry.persontrip_set.all %}
<tr>
{% ifequal persontrip.personexpedition logbookentry.author %}
{% if persontrip.personexpedition == logbookentry.author %}
<td class="author">
{% else %}
<td>
{% endifequal %}
{% endif %}
<a href="{{ persontrip.personexpedition.get_absolute_url }}">{{persontrip.personexpedition.person}}</a>
</td>

View File

@@ -14,11 +14,11 @@
<p><b>Other years:</b>
{% for otherpersonexpedition in personexpedition.person.personexpedition_set.all %}
{% ifequal otherpersonexpedition personexpedition %}
{% if otherpersonexpedition == personexpedition %}
| <b>{{otherpersonexpedition.expedition.year}}</b>
{% else %}
| <a href="{{otherpersonexpedition.get_absolute_url}}">{{ otherpersonexpedition.expedition.year }}</a>
{% endifequal %}
{% endif %}
{% endfor %}
</p>

View File

@@ -50,11 +50,11 @@
<td class="survexnewfile" rowspan="{{survexfile.survexblock_set.all|length|plusone}}">
{% endif %}
{% ifequal survexfile survexdirectory.primarysurvexfile %}
{% if survexfile == survexdirectory.primarysurvexfile %}
<a href="{% url "svx" survexfile.path %}"><b>{% url "svx" survexfile.path %}</b></a>
{% else %}
<a href="{% url "svx" survexfile.path %}"><i><small>{% url "svx" survexfile.path %}</small></i></a><!-- would like to extract only the last bit. Some javascript useful ?-->
{% endifequal %}
{% endif %}
</td>
</tr>
{% for survexblock in survexfile.survexblock_set.all %}

View File

@@ -50,11 +50,11 @@ to go to a form to correct the online data.
<td class="survexnewfile" rowspan="{{survexfile.survexblock_set.all|length|plusone}}">
{% endif %}
{% ifequal survexfile survexdirectory.primarysurvexfile %}
{% if survexfile == survexdirectory.primarysurvexfile %}
<a href="{% url "svx" survexfile.path %}"><b>{% url "svx" survexfile.path %}</b></a>
{% else %}
<a href="{% url "svx" survexfile.path %}"><i><small>{% url "svx" survexfile.path %}</small></i></a><!-- would like to extract only the last bit. Some javascript useful ?-->
{% endifequal %}
{% endif %}
</td>
</tr>
{% for survexblock in survexfile.survexblock_set.all %}