mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-26 03:24:01 +03:00
Name shown twice in user_details.html if username set to email (#4436)
* Update user_detail.html * Wrap long conditions over multiple lines --------- Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
This commit is contained in:
parent
cb4d41dc96
commit
a82622b592
|
@ -22,11 +22,17 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
{% raw %}{{ object.username }}{% endraw %}
|
{% raw %}{{ object.username }}{% endraw %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% raw %}
|
|
||||||
</h2>
|
</h2>
|
||||||
{% if object.name %}<p>{{ object.name }}</p>{% 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 %}
|
{% if object == request.user %}
|
||||||
<!-- Action buttons -->
|
<!-- Action buttons -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user