summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/blocks
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-03-26 15:26:20 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-10-24 18:32:21 +0200
commitb98b3004bb1a47674c9595a5d674dc4ba83344c8 (patch)
tree8c382fb22ff3a8ddbf94dd69ad1a3a81f96cba7a /ishtar_common/templates/blocks
parent3b8d21e5bbee1ba59152ba6abc6ab73432fe611f (diff)
downloadIshtar-b98b3004bb1a47674c9595a5d674dc4ba83344c8.tar.bz2
Ishtar-b98b3004bb1a47674c9595a5d674dc4ba83344c8.zip
♻️ django 3.2 deprecation: force_text -> force_str - templates: remove ifequal ; PIL: Image.ANTIALIAS -> Image.Resampling.LANCZOS
Diffstat (limited to 'ishtar_common/templates/blocks')
-rw-r--r--ishtar_common/templates/blocks/bs_formset_snippet.html4
-rw-r--r--ishtar_common/templates/blocks/comma_list.html2
2 files changed, 3 insertions, 3 deletions
diff --git a/ishtar_common/templates/blocks/bs_formset_snippet.html b/ishtar_common/templates/blocks/bs_formset_snippet.html
index cfc9bb37b..8ed958d1c 100644
--- a/ishtar_common/templates/blocks/bs_formset_snippet.html
+++ b/ishtar_common/templates/blocks/bs_formset_snippet.html
@@ -19,9 +19,9 @@
{% csrf_token %}
{% for field in form.visible_fields %}
- {% ifequal field.name "DELETE" %}{% with bs_col_width='col-2' %}{% include "blocks/bs_field_snippet.html" %}{% endwith %}
+ {% if field.name == "DELETE" %}{% with bs_col_width='col-2' %}{% include "blocks/bs_field_snippet.html" %}{% endwith %}
{% else %}{% with bs_col_width='col-3' %}{% include "blocks/bs_field_snippet.html" %}{% endwith %}
- {% endifequal %}
+ {% endif %}
{% endfor %}
{% if form.extra_render %}
diff --git a/ishtar_common/templates/blocks/comma_list.html b/ishtar_common/templates/blocks/comma_list.html
index 12fcd2b41..60aa6bacc 100644
--- a/ishtar_common/templates/blocks/comma_list.html
+++ b/ishtar_common/templates/blocks/comma_list.html
@@ -1 +1 @@
-{% load i18n %}{% if not forloop.last %}{% ifequal forloop.revcounter 2 %} {% trans "and" %} {% else %}{% trans ", "%}{% endifequal %}{% else %}{% trans "." %}{% endif %}
+{% load i18n %}{% if not forloop.last %}{% if forloop.revcounter == 2 %} {% trans "and" %} {% else %}{% trans ", "%}{% endif %}{% else %}{% trans "." %}{% endif %}