2021-12-02 06:04:51 +09:00
|
|
|
{% extends 'stdgrid.html.twig' %}
|
2022-02-25 04:04:14 +09:00
|
|
|
{% import '/cards/macros/note/factory.html.twig' as NoteFactory %}
|
2021-12-02 06:04:51 +09:00
|
|
|
|
2022-03-05 22:53:24 +09:00
|
|
|
{% set nickname = note.getActorNickname() %}
|
|
|
|
{% block title %}{% trans %}%nickname%'s note{% endtrans %}{% endblock %}
|
2021-12-02 06:04:51 +09:00
|
|
|
|
|
|
|
{% block stylesheets %}
|
|
|
|
{{ parent() }}
|
2022-02-25 04:04:14 +09:00
|
|
|
<link rel="stylesheet" href="{{ asset('assets/default_theme/feeds.css') }}" type="text/css">
|
2021-12-02 06:04:51 +09:00
|
|
|
{% endblock stylesheets %}
|
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
{# Backwards compatibility with hAtom 0.1 #}
|
|
|
|
<main class="feed" tabindex="0" role="feed">
|
|
|
|
<div class="h-feed hfeed notes">
|
|
|
|
{% if note is defined and note is not empty %}
|
2022-02-25 04:04:14 +09:00
|
|
|
{% set args = { 'type': 'vanilla_full', 'note': note, 'extra': { 'depth': 0 } } %}
|
|
|
|
{{ NoteFactory.constructor(args) }}
|
2021-12-02 06:04:51 +09:00
|
|
|
{% else %}
|
|
|
|
<div id="empty-notes"><h1>{% trans %}No notes here.{% endtrans %}</h1></div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
{% endblock body %}
|