2021-12-24 00:38:06 +00:00
|
|
|
{% extends 'stdgrid.html.twig' %}
|
|
|
|
{% import '/cards/note/view.html.twig' as noteView %}
|
|
|
|
|
|
|
|
{% block title %}{{ page_title | trans }}{% endblock %}
|
|
|
|
|
|
|
|
{% block stylesheets %}
|
|
|
|
{{ parent() }}
|
|
|
|
<link rel="stylesheet" href="{{ asset('assets/default_theme/css/pages/feeds.css') }}" type="text/css">
|
|
|
|
{% endblock stylesheets %}
|
|
|
|
|
|
|
|
{% block body %}
|
2021-12-30 00:51:12 +00:00
|
|
|
<h1>{{ page_title | trans }}</h1>
|
2021-12-24 00:38:06 +00:00
|
|
|
{# Backwards compatibility with hAtom 0.1 #}
|
|
|
|
<main class="feed" tabindex="0" role="feed">
|
|
|
|
<div class="h-feed hfeed notes">
|
|
|
|
{% if add_collection %}
|
2021-12-30 00:51:12 +00:00
|
|
|
<div class="h-entry hentry note collection-add">
|
2021-12-24 00:38:06 +00:00
|
|
|
{{ form(add_collection) }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2021-12-30 00:51:12 +00:00
|
|
|
<div class="h-entry hentry note collections-list">
|
2021-12-30 15:16:29 +00:00
|
|
|
<h3>{{ list_title | trans }}</h3>
|
2021-12-28 04:39:09 +00:00
|
|
|
{% for col in collections %}
|
2021-12-30 00:51:12 +00:00
|
|
|
<div class="collection-item">
|
2021-12-28 04:39:09 +00:00
|
|
|
<a class="name" href="{{ fn.getUrl(col.id) }}">{{ col.name }}</a>
|
|
|
|
<details title="Expand if you want to edit the collection's name">
|
|
|
|
<summary>
|
|
|
|
<div class="collection-action">{{ icon('edit') | raw }}</div>
|
|
|
|
</summary>
|
|
|
|
{{ form(fn.editForm(col)) }}
|
|
|
|
</details>
|
|
|
|
<details title="Expand if you want to delete the collection">
|
|
|
|
<summary>
|
|
|
|
<div class="collection-action">{{ icon('delete') | raw }}</div>
|
|
|
|
</summary>
|
|
|
|
{{ form(fn.rmForm(col)) }}
|
|
|
|
</details>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2021-12-24 00:38:06 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
{% endblock body %}
|