diff options
author | luxagraf <sng@luxagraf.net> | 2022-02-14 21:15:36 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2022-02-14 21:15:36 -0500 |
commit | 337a458c4d2e06ce611fff60cb592df3bb96f88e (patch) | |
tree | 1859218a3b2fa0e18d5a10721feb7ea56f16ee4b /templates/comments | |
parent | b8f2cbf930eabeb055099fc9080ef55a63e3ab40 (diff) |
lib: got rid of all ifequal in templates
Diffstat (limited to 'templates/comments')
-rw-r--r-- | templates/comments/form.html | 4 | ||||
-rw-r--r-- | templates/comments/preview.html | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/comments/form.html b/templates/comments/form.html index b70862f..129de90 100644 --- a/templates/comments/form.html +++ b/templates/comments/form.html @@ -10,9 +10,9 @@ {% if field.is_hidden %} {{ field }} {% else %} - <fieldset class="{% if field.errors %} error{% endif %} {% ifequal field.name "honeypot" %} honeypot"{% endifequal %}"> + <fieldset class="{% if field.errors %} error{% endif %} {% if field.name == "honeypot" %} honeypot"{% endif%}"> {{ field.label_tag }} - {%ifequal field.name "comment"%}<div class="textarea-rounded">{{ field }}</div>{%else%}{{field}}{%endifequal%} + {%if field.name == "comment"%}<div class="textarea-rounded">{{ field }}</div>{%else%}{{field}}{%endif%} </fieldset> {% endif %} {% endfor %} diff --git a/templates/comments/preview.html b/templates/comments/preview.html index 9e27c81..b42e42d 100644 --- a/templates/comments/preview.html +++ b/templates/comments/preview.html @@ -29,9 +29,9 @@ class="detail"{%endblock%} {% if field.is_hidden %} {{ field }} {% else %} - <fieldset {% if field.errors %} class="error"{% endif %} {% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}> + <fieldset {% if field.errors %} class="error"{% endif %} {% if field.name == "honeypot" %} style="display:none;"{% endif%}> {{ field.label_tag }} - {%ifequal field.name "comment"%}<div class="textarea-rounded">{{ field }}</div>{%else%}{{field}}{%endifequal%} + {%if field.name == "comment"%}<div class="textarea-rounded">{{ field }}</div>{%else%}{{field}}{%endif%} </fieldset> {% endif %} {% endfor %} |