mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-22 09:36:52 +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 %}
|
||||
{% raw %}{{ object.username }}{% endraw %}
|
||||
{% endif %}
|
||||
{% raw %}
|
||||
</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>
|
||||
{%- raw %}
|
||||
{% if object == request.user %}
|
||||
<!-- Action buttons -->
|
||||
<div class="row">
|
||||
|
|
Loading…
Reference in New Issue
Block a user