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