2018-06-29 15:16:26 -05:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% import 'utils.html' as utils %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="h-feed" id="container">
|
|
|
|
<data class="p-name" value="{{config.USERNAME}} liked"></data>
|
|
|
|
|
|
|
|
{% include "header.html" %}
|
|
|
|
|
|
|
|
<div id="notes">
|
|
|
|
{% for item in liked %}
|
2018-07-07 05:10:25 -05:00
|
|
|
{% if session.logged_in %}
|
|
|
|
<div style="margin-left:65px;padding-bottom:5px;margin-bottom:15px;">
|
|
|
|
<form action="/api/undo" class="action-form" method="POST">
|
|
|
|
<input type="hidden" name="redirect" value="/liked"/>
|
|
|
|
<input type="hidden" name="id" value="{{ item.remote_id }}"/>
|
|
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
|
|
|
|
<button type="submit" class="bar-item">unlike</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endif %}
|
2018-06-29 15:16:26 -05:00
|
|
|
{% if item.meta.object %}
|
|
|
|
{{ utils.display_note(item.meta.object) }}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2018-07-06 16:53:33 -05:00
|
|
|
|
|
|
|
{{ utils.display_pagination(older_than, newer_than) }}
|
2018-06-29 15:16:26 -05:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
2018-07-10 16:19:00 -05:00
|
|
|
{% block links %}
|
|
|
|
<link rel="alternate" href="{{ config.BASE_URL }}/liked" type="application/activity+json">
|
|
|
|
{{ utils.display_pagination_links(older_than, newer_than) }}{% endblock %}
|