mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 11:27:09 +00:00
fix: hide relationship buttons on own profile page
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
<h1>{{ person.name }}</h1>
|
<h1>{{ person.name }}</h1>
|
||||||
|
|
||||||
|
{% if person.user != request.user %}
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<div class="row justify-content-md-center">
|
<div class="row justify-content-md-center">
|
||||||
@@ -46,6 +47,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
<h1>{{ person.name }}</h1>
|
<h1>{{ person.name }}</h1>
|
||||||
|
|
||||||
|
{% if person.user != request.user %}
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<div class="row justify-content-md-center">
|
<div class="row justify-content-md-center">
|
||||||
@@ -46,6 +47,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
|
|||||||
@@ -37,6 +37,7 @@
|
|||||||
<a class="btn btn-sm btn-info"
|
<a class="btn btn-sm btn-info"
|
||||||
href="{% url 'people:person.detail' pk=person.pk %}">Profile</a>
|
href="{% url 'people:person.detail' pk=person.pk %}">Profile</a>
|
||||||
|
|
||||||
|
{% if person.user != request.user %}
|
||||||
{% if person.pk in existing_relationships %}
|
{% if person.pk in existing_relationships %}
|
||||||
<a class="btn btn-sm btn-warning"
|
<a class="btn btn-sm btn-warning"
|
||||||
style="width: 10rem"
|
style="width: 10rem"
|
||||||
@@ -49,6 +50,7 @@
|
|||||||
href="{% url 'people:person.relationship.create' person_pk=person.pk %}">New Relationship
|
href="{% url 'people:person.relationship.create' person_pk=person.pk %}">New Relationship
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user