mirror of
https://github.com/jointakahe/takahe.git
synced 2024-12-29 00:20:29 +00:00
44 lines
1.7 KiB
HTML
44 lines
1.7 KiB
HTML
|
|
||
|
<div class="inline follow-profile {% if reverse_follow %}has-reverse{% endif %}">
|
||
|
|
||
|
<div class="actions" role="menubar">
|
||
|
{% if request.identity == identity %}
|
||
|
<a href="{% url "settings_profile" %}" class="button" title="Edit Profile">
|
||
|
<i class="fa-solid fa-user-edit"></i>
|
||
|
</a>
|
||
|
{% else %}
|
||
|
{% if reverse_follow %}
|
||
|
<span class="reverse-follow">Follows You</span>
|
||
|
{% endif %}
|
||
|
<form action="{{ identity.urls.action }}" method="POST" class="inline-menu">
|
||
|
{% csrf_token %}
|
||
|
{% if follow %}
|
||
|
<input type="hidden" name="action" value="unfollow">
|
||
|
<button class="destructive" title="Unfollow"><i class="fa-solid fa-user-minus"></i>
|
||
|
{% if follow.pending %}Follow Pending{% else %}Unfollow{% endif %}
|
||
|
</button>
|
||
|
{% else %}
|
||
|
<input type="hidden" name="action" value="follow">
|
||
|
<button><i class="fa-solid fa-user-plus"></i> Follow</button>
|
||
|
{% endif %}
|
||
|
</form>
|
||
|
{% endif %}
|
||
|
|
||
|
{% if request.user.admin %}
|
||
|
<a title="Menu" class="menu button" _="on click toggle .enabled on the next <menu/> then halt" aria-haspopup="menu">
|
||
|
<i class="fa-solid fa-bars"></i>
|
||
|
</a>
|
||
|
<menu>
|
||
|
{% if request.user.admin %}
|
||
|
<a href="{{ identity.urls.admin_edit }}" role="menuitem">
|
||
|
<i class="fa-solid fa-user-gear"></i> View in Admin
|
||
|
</a>
|
||
|
<a href="{{ identity.urls.djadmin_edit }}" role="menuitem">
|
||
|
<i class="fa-solid fa-gear"></i> View in djadmin
|
||
|
</a>
|
||
|
{% endif %}
|
||
|
</menu>
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
</div>
|