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