2021-04-29 20:51:13 +01:00
|
|
|
{% extends 'stdgrid.html.twig' %}
|
2021-11-07 01:32:06 +00:00
|
|
|
{% import '/cards/note/view.html.twig' as noteView %}
|
2020-03-12 17:59:13 +00:00
|
|
|
|
2021-09-22 16:46:58 +01:00
|
|
|
{% block title %}{% if page_title is defined %}{{ page_title | trans }}{% endif %}{% endblock %}
|
2020-07-26 16:05:07 +01:00
|
|
|
|
2021-10-05 22:44:22 +01:00
|
|
|
{% block stylesheets %}
|
|
|
|
{{ parent() }}
|
2021-10-06 00:45:37 +01:00
|
|
|
<link rel="stylesheet" href="{{ asset('assets/default_theme/css/pages/feeds.css') }}" type="text/css">
|
2021-10-05 22:44:22 +01:00
|
|
|
{% endblock stylesheets %}
|
|
|
|
|
2020-07-26 16:05:07 +01:00
|
|
|
{% block body %}
|
2022-01-07 21:10:55 +00:00
|
|
|
<header class="feed-header">
|
|
|
|
{% if page_title is defined %}
|
|
|
|
<h1 class="heading-no-margin">{{ page_title | trans }}</h1>
|
|
|
|
{% endif %}
|
|
|
|
<nav class="feed-actions">
|
|
|
|
<details class="feed-actions-details">
|
|
|
|
<summary>
|
|
|
|
{{ icon('filter', 'icon icon-feed-actions') | raw }} {# button-container #}
|
|
|
|
</summary>
|
|
|
|
<div class="feed-actions-details-dropdown">
|
|
|
|
<ul>
|
|
|
|
{% for block in handle_event('AddFeedActions', app.request, notes is defined and notes is not empty) %}
|
|
|
|
{{ block | raw }}
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</details>
|
|
|
|
</nav>
|
|
|
|
</header>
|
2021-12-23 21:29:46 +00:00
|
|
|
|
2021-08-09 13:25:08 +01:00
|
|
|
{# Backwards compatibility with hAtom 0.1 #}
|
2021-11-26 13:05:23 +00:00
|
|
|
<main class="feed" tabindex="0" role="feed">
|
2021-09-07 15:23:41 +01:00
|
|
|
<div class="h-feed hfeed notes">
|
2021-08-09 13:25:08 +01:00
|
|
|
{% if notes is defined and notes is not empty %}
|
|
|
|
{% for conversation in notes %}
|
2021-10-29 00:33:24 +01:00
|
|
|
{% block current_note %}
|
2021-12-07 21:06:39 +00:00
|
|
|
{% if conversation is instanceof('array') %}
|
|
|
|
{{ noteView.macro_note(conversation['note'], conversation['replies']) }}
|
|
|
|
{% else %}
|
|
|
|
{{ noteView.macro_note(conversation) }}
|
|
|
|
{% endif %}
|
2021-10-29 00:33:24 +01:00
|
|
|
<hr tabindex="0" title="{{ 'End of note and replies.' | trans }}">
|
|
|
|
{% endblock current_note %}
|
2021-08-09 13:25:08 +01:00
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
2021-12-29 19:31:28 +00:00
|
|
|
<div class="feed-empty">
|
|
|
|
{{ icon('logo', 'icon feed-background') | raw }}
|
|
|
|
</div>
|
2021-08-09 13:25:08 +01:00
|
|
|
{% endif %}
|
2021-08-19 20:37:16 +01:00
|
|
|
</div>
|
|
|
|
</main>
|
2021-11-26 13:05:23 +00:00
|
|
|
{% endblock body %}
|