2021-12-21 21:12:03 +09:00
|
|
|
{% extends 'stdgrid.html.twig' %}
|
|
|
|
{% import '/cards/note/view.html.twig' as noteView %}
|
|
|
|
|
2021-12-22 01:55:48 +09:00
|
|
|
{% set nickname = nickname|escape %}
|
2021-12-21 21:12:03 +09:00
|
|
|
{% block title %}{{ nickname }}{% 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-28 03:21:19 +09:00
|
|
|
{% if subscribe_form is defined and subscribe_form is not null %}
|
|
|
|
{{ form(subscribe_form) }}
|
|
|
|
{% endif %}
|
2021-12-21 21:12:03 +09:00
|
|
|
|
|
|
|
{% if actor is defined and actor is not null %}
|
|
|
|
{% block profile_view %}
|
2021-12-22 02:20:22 +09:00
|
|
|
{% include 'cards/profile/view.html.twig' with { 'actor': actor } only %}
|
2021-12-21 21:12:03 +09:00
|
|
|
{% endblock profile_view %}
|
|
|
|
|
|
|
|
<main class="feed" tabindex="0" role="feed">
|
|
|
|
<div class="h-feed hfeed notes">
|
|
|
|
{% if notes is defined and notes is not empty %}
|
2021-12-21 21:47:16 +09:00
|
|
|
{% for conversation in notes %}
|
2021-12-21 21:12:03 +09:00
|
|
|
{% block current_note %}
|
2021-12-21 21:47:16 +09:00
|
|
|
{% if conversation is instanceof('array') %}
|
|
|
|
{{ noteView.macro_note(conversation['note'], conversation['replies']) }}
|
|
|
|
{% else %}
|
|
|
|
{{ noteView.macro_note(conversation) }}
|
|
|
|
{% endif %}
|
2021-12-21 21:12:03 +09:00
|
|
|
<hr tabindex="0" title="{{ 'End of note and replies.' | trans }}">
|
|
|
|
{% endblock current_note %}
|
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
<div id="empty-notes"><h1>{% trans %}No notes here.{% endtrans %}</h1></div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
|
|
|
|
{% else %}
|
2021-12-24 06:29:46 +09:00
|
|
|
<div class="section-padding section-widget">
|
2021-12-22 01:55:48 +09:00
|
|
|
<p>{% trans with { '%group%': nickname } %}The group <em>%group%</em> doesn't exist.{% endtrans %}</p>
|
|
|
|
{% if create_form is defined and create_form is not null %}
|
|
|
|
<p>{% trans %}Would you like to create it?{% endtrans %}</p>
|
|
|
|
{{ form(create_form) }}
|
|
|
|
{% endif %}
|
2021-12-21 21:12:03 +09:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock body %}
|