2018-05-18 18:41:41 +00:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% import 'utils.html' as utils %}
|
2018-05-21 19:03:21 +00:00
|
|
|
{% block title %}Following - {{ config.NAME }}{% endblock %}
|
2018-05-18 18:41:41 +00:00
|
|
|
{% block header %}
|
|
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<div id="container">
|
|
|
|
{% include "header.html" %}
|
|
|
|
|
|
|
|
<div id="following">
|
2018-07-14 10:14:08 +00:00
|
|
|
{% 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 %}
|
2018-06-27 21:27:48 +00:00
|
|
|
<div style="height: 100px;">
|
|
|
|
{{ utils.display_actor_inline(followed, size=80) }}
|
|
|
|
</div>
|
2018-05-18 18:41:41 +00:00
|
|
|
{% endfor %}
|
2018-07-07 11:56:00 +00:00
|
|
|
{{ utils.display_pagination(older_than, newer_than) }}
|
2018-05-18 18:41:41 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
2018-07-10 21:19:00 +00:00
|
|
|
{% block links %}
|
|
|
|
<link rel="alternate" href="{{ config.BASE_URL }}/following" type="application/activity+json">
|
|
|
|
{{ utils.display_pagination_links(older_than, newer_than) }}{% endblock %}
|