summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/expedition.html4
-rw-r--r--templates/logbookentry.html4
-rw-r--r--templates/personexpedition.html4
-rw-r--r--templates/svxcaveseveral.html4
-rw-r--r--templates/svxcavesingle.html4
5 files changed, 10 insertions, 10 deletions
diff --git a/templates/expedition.html b/templates/expedition.html
index 6c3e186..3533e28 100644
--- a/templates/expedition.html
+++ b/templates/expedition.html
@@ -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
diff --git a/templates/logbookentry.html b/templates/logbookentry.html
index 5691c4e..1af88bd 100644
--- a/templates/logbookentry.html
+++ b/templates/logbookentry.html
@@ -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>
diff --git a/templates/personexpedition.html b/templates/personexpedition.html
index 48e94ac..fd52fe1 100644
--- a/templates/personexpedition.html
+++ b/templates/personexpedition.html
@@ -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>
diff --git a/templates/svxcaveseveral.html b/templates/svxcaveseveral.html
index d0412be..a0e2f97 100644
--- a/templates/svxcaveseveral.html
+++ b/templates/svxcaveseveral.html
@@ -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 %}
diff --git a/templates/svxcavesingle.html b/templates/svxcavesingle.html
index a53889f..a17231d 100644
--- a/templates/svxcavesingle.html
+++ b/templates/svxcavesingle.html
@@ -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 %}