Tweak the admin UI

This commit is contained in:
Thomas Sileo
2018-07-14 12:14:08 +02:00
parent feb611f4ce
commit d8f7967e6a
6 changed files with 46 additions and 21 deletions

View File

@@ -8,7 +8,18 @@
{% include "header.html" %}
<div id="following">
{% for followed in following_data %}
{% for (follow_id, followed) in following_data %}
{% if session.logged_in %}
<div style="margin-left:90px;padding-bottom:5px;margin-bottom:15px;">
<form action="/api/undo" class="action-form" method="POST">
<input type="hidden" name="redirect" value="{{ request.path }}"/>
<input type="hidden" name="id" value="{{ follow_id }}"/>
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
<button type="submit" class="bar-item">unfollow</button>
</form>
</div>
{% endif %}
<div style="height: 100px;">
{{ utils.display_actor_inline(followed, size=80) }}
</div>