2018-05-18 13:41:41 -05:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% import 'utils.html' as utils %}
|
2018-05-21 14:03:21 -05:00
|
|
|
{% block title %}Following - {{ config.NAME }}{% endblock %}
|
2018-05-18 13:41:41 -05:00
|
|
|
{% block header %}
|
|
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<div id="container">
|
|
|
|
{% include "header.html" %}
|
|
|
|
|
|
|
|
<div id="following">
|
2019-09-01 04:32:12 -05:00
|
|
|
{% for (follow_id, meta) in following_data %}
|
|
|
|
{% set follow = meta.object %}
|
2018-07-14 05:14:08 -05:00
|
|
|
{% if session.logged_in %}
|
2019-07-05 15:05:28 -05:00
|
|
|
<div style="margin-left:90px;padding-bottom:5px;margin-bottom:15px;display:inline-block;">
|
2019-08-27 16:02:19 -05:00
|
|
|
<a class="bar-item" href="/admin/profile?actor_id={{follow.id}}">profile</a>
|
2019-07-22 13:32:35 -05:00
|
|
|
<form action="/api/undo" class="action-form" method="post">
|
2018-07-14 05:14:08 -05:00
|
|
|
<input type="hidden" name="redirect" value="{{ request.path }}"/>
|
2018-07-26 15:44:31 -05:00
|
|
|
<input type="hidden" name="id" value="{{ follow_id }}"/>
|
2018-07-14 05:14:08 -05:00
|
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
|
|
|
|
<button type="submit" class="bar-item">unfollow</button>
|
|
|
|
</form>
|
2019-09-01 04:32:12 -05:00
|
|
|
{% if meta.notification_follows_back %}
|
|
|
|
<span class="bar-item-no-hover">follows you back</span>
|
|
|
|
{% endif %}
|
2019-07-22 14:33:09 -05:00
|
|
|
|
|
|
|
{% if lists %}
|
2019-07-22 13:32:35 -05:00
|
|
|
<form action="/api/add_to_list" class="action-form" method="post">
|
|
|
|
<input type="hidden" name="redirect" value="{{ request.path }}"/>
|
|
|
|
<input type="hidden" name="actor_id" value="{{ follow.id }}"/>
|
|
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
|
|
|
|
<select name="list_name" style="float:left;">
|
|
|
|
<option></option>
|
|
|
|
{% for l in lists %}
|
|
|
|
{% if follow.id not in l.members %}
|
|
|
|
<option value="{{l.name}}">{{l.name}}</option>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
<button type="submit" class="bar-item">add to list</button>
|
|
|
|
</form>
|
2019-07-22 14:33:09 -05:00
|
|
|
{% endif %}
|
2019-07-22 13:32:35 -05:00
|
|
|
|
|
|
|
{% for l in lists %}
|
|
|
|
{% if follow.id in l.members %}
|
|
|
|
<form action="/api/remove_from_list" class="action-form" method="post">
|
|
|
|
<input type="hidden" name="redirect" value="{{ request.path }}"/>
|
|
|
|
<input type="hidden" name="actor_id" value="{{ follow.id }}"/>
|
|
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
|
|
|
|
<button type="submit" class="bar-item">remove from {{ l.name }}</button>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2019-09-01 04:32:12 -05:00
|
|
|
|
2019-07-22 13:32:35 -05:00
|
|
|
|
2018-07-14 05:14:08 -05:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endif %}
|
2018-06-27 16:27:48 -05:00
|
|
|
<div style="height: 100px;">
|
2018-07-21 16:24:12 -05:00
|
|
|
{{ utils.display_actor_inline(follow, size=80) }}
|
2018-06-27 16:27:48 -05:00
|
|
|
</div>
|
2018-05-18 13:41:41 -05:00
|
|
|
{% endfor %}
|
2018-07-07 06:56:00 -05:00
|
|
|
{{ utils.display_pagination(older_than, newer_than) }}
|
2018-05-18 13:41:41 -05:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
2018-07-10 16:19:00 -05:00
|
|
|
{% block links %}
|
|
|
|
<link rel="alternate" href="{{ config.BASE_URL }}/following" type="application/activity+json">
|
|
|
|
{{ utils.display_pagination_links(older_than, newer_than) }}{% endblock %}
|