mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-11-01 10:33:53 +00:00
1 parent
aafb6c0a21
commit
0e4234cb35
1 file changed
+9
@@ -14,6 +14,14 @@
|
|||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
|
{% if person.user == request.user or request.user.is_superuser %}
|
||||||
|
{% if person.user != request.user and request.user.is_superuser %}
|
||||||
|
<div class="alert alert-warning">
|
||||||
|
<strong>NB:</strong> You are able to see the details of this person because you are an admin.
|
||||||
|
Regular users are not able to see this information for people other than themselves.
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<dl>
|
<dl>
|
||||||
{% if person.gender %}
|
{% if person.gender %}
|
||||||
<dt>Gender</dt>
|
<dt>Gender</dt>
|
||||||
@@ -69,6 +77,7 @@
|
|||||||
</dd>
|
</dd>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</dl>
|
</dl>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<a class="btn btn-success"
|
<a class="btn btn-success"
|
||||||
href="{% url 'people:person.update' pk=person.pk %}">Update</a>
|
href="{% url 'people:person.update' pk=person.pk %}">Update</a>
|
||||||
|
|||||||
Reference in new issue
Block a user