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-21 11:39:28 +09:00
|
|
|
{% for block in handle_event('BeforeFeed') %}
|
|
|
|
{{ block | raw }}
|
|
|
|
{% endfor %}
|
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 %}
|