Wrap long conditions over multiple lines

This commit is contained in:
Bruno Alla 2023-07-10 17:32:58 +01:00
parent e7e6ae6730
commit ff4b4d1d41
No known key found for this signature in database

View File

@ -23,10 +23,17 @@
{% raw %}{{ object.username }}{% endraw %}
{% endif %}
</h2>
{% if cookiecutter.username_type == "username" %}{% raw %}{% if object.name %}<p>{{ object.name }}</p>{% endif %}{% endraw %}{% endif %}
{%- if cookiecutter.username_type == "username" %}
{%- raw %}
{% if object.name %}
<p>{{ object.name }}</p>
{% endif %}
{%- endraw %}
{%- endif %}
</div>
</div>
{% raw %}{% if object == request.user %}
{%- raw %}
{% if object == request.user %}
<!-- Action buttons -->
<div class="row">
<div class="col-sm-12">