Linting templates

This commit is contained in:
David Larlet 2023-12-27 13:50:21 -05:00
parent c4e55d82cb
commit 36f72e3154
No known key found for this signature in database
GPG key ID: 3E2953A359E7E7BD

View file

@ -46,11 +46,13 @@
</table> </table>
<div class="pagination"> <div class="pagination">
{% if maps.has_previous %} {% if maps.has_previous %}
<a href="?p=1{% if q %}&q={{ q }}{% endif %}">&laquo; {% translate "first" %}</a> <a href="?p=1{% if q %}&q={{ q }}{% endif %}">« {% translate "first" %}</a>
<a href="?p={{ maps.previous_page_number }}{% if q %}&q={{ q }}{% endif %}">&lsaquo; {% translate "previous" %}</a> <a href="?p={{ maps.previous_page_number }}{% if q %}&q={{ q }}{% endif %}"> {% translate "previous" %}</a>
{% else %} {% else %}
{# djlint:off #}
<span></span> <span></span>
<span></span> <span></span>
{# djlint:on #}
{% endif %} {% endif %}
<span class="current"> <span class="current">
@ -60,10 +62,12 @@
</span> </span>
{% if maps.has_next %} {% if maps.has_next %}
<a href="?p={{ maps.next_page_number }}{% if q %}&q={{ q }}{% endif %}">{% translate "next" %} &rsaquo;</a> <a href="?p={{ maps.next_page_number }}{% if q %}&q={{ q }}{% endif %}">{% translate "next" %} </a>
<a href="?p={{ maps.paginator.num_pages }}{% if q %}&q={{ q }}{% endif %}">{% translate "last" %} &raquo;</a> <a href="?p={{ maps.paginator.num_pages }}{% if q %}&q={{ q }}{% endif %}">{% translate "last" %} »</a>
{% else %} {% else %}
{# djlint:off #}
<span></span> <span></span>
<span></span> <span></span>
{# djlint:on #}
{% endif %} {% endif %}
</div> </div>