mirror of https://gitlab.crans.org/bde/nk20
Don't display "change password" button on other profile pages
This commit is contained in:
parent
d6fd925fdd
commit
430036bfc2
|
@ -17,7 +17,7 @@
|
||||||
<dt class="col-xl-6">{% trans 'username'|capfirst %}</dt>
|
<dt class="col-xl-6">{% trans 'username'|capfirst %}</dt>
|
||||||
<dd class="col-xl-6">{{ user_object.username }}</dd>
|
<dd class="col-xl-6">{{ user_object.username }}</dd>
|
||||||
|
|
||||||
{% if user_object.pk == user_object.pk %}
|
{% if user_object.pk == user.pk %}
|
||||||
<dt class="col-xl-6">{% trans 'password'|capfirst %}</dt>
|
<dt class="col-xl-6">{% trans 'password'|capfirst %}</dt>
|
||||||
<dd class="col-xl-6">
|
<dd class="col-xl-6">
|
||||||
<a class="small" href="{% url 'password_change' %}">
|
<a class="small" href="{% url 'password_change' %}">
|
||||||
|
|
Loading…
Reference in New Issue