mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-13 16:34: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 %}
|
||||
{% 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">
|
||||
|
|
Loading…
Reference in New Issue
Block a user