mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-23 05:34:28 +00:00
34 lines
1.1 KiB
HTML
34 lines
1.1 KiB
HTML
{% extends "layout.html" %}
|
|
{% import 'utils.html' as utils %}
|
|
{% block title %}Following - {{ config.NAME }}{% endblock %}
|
|
{% block header %}
|
|
{% endblock %}
|
|
{% block content %}
|
|
<div id="container">
|
|
{% include "header.html" %}
|
|
|
|
<div id="following">
|
|
{% for follow 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(follow, size=80) }}
|
|
</div>
|
|
{% endfor %}
|
|
{{ utils.display_pagination(older_than, newer_than) }}
|
|
</div>
|
|
|
|
</div>
|
|
{% endblock %}
|
|
{% block links %}
|
|
<link rel="alternate" href="{{ config.BASE_URL }}/following" type="application/activity+json">
|
|
{{ utils.display_pagination_links(older_than, newer_than) }}{% endblock %}
|