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 %}
|
2021-12-24 06:29:46 +09:00
|
|
|
<header class="feed-header">
|
2021-12-24 23:43:18 +09:00
|
|
|
{% if page_title is defined %}
|
|
|
|
<h1>{{ page_title | trans }} {{ 'feed' | trans }}</h1>
|
|
|
|
{% endif %}
|
2021-12-24 06:29:46 +09:00
|
|
|
<nav class="feed-actions" role=navigation>
|
|
|
|
{% for block in handle_event('AddFeedActions', app.request) %}
|
|
|
|
{{ block | raw }}
|
|
|
|
{% endfor %}
|
|
|
|
</nav>
|
|
|
|
</header>
|
|
|
|
|
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 %}
|
|
|
|
<div id="empty-notes"><h1>{% trans %}No notes here.{% endtrans %}</h1></div>
|
|
|
|
{% endif %}
|
2021-08-20 04:37:16 +09:00
|
|
|
</div>
|
|
|
|
</main>
|
2021-11-26 22:05:23 +09:00
|
|
|
{% endblock body %}
|