mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-14 08:54:52 +03:00
Wrap long conditions over multiple lines
This commit is contained in:
parent
e7e6ae6730
commit
ff4b4d1d41
|
@ -23,10 +23,17 @@
|
||||||
{% raw %}{{ object.username }}{% endraw %}
|
{% raw %}{{ object.username }}{% endraw %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</h2>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
{% raw %}{% if object == request.user %}
|
{%- raw %}
|
||||||
|
{% if object == request.user %}
|
||||||
<!-- Action buttons -->
|
<!-- Action buttons -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-12">
|
<div class="col-sm-12">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user