2021-09-17 20:33:02 +01:00
|
|
|
{% extends 'stdgrid.html.twig' %}
|
2021-12-01 21:41:41 +00:00
|
|
|
{% import '/cards/note/view.html.twig' as noteView %}
|
2021-09-17 20:33:02 +01:00
|
|
|
|
2021-12-21 12:12:03 +00:00
|
|
|
{% set nickname = nickname|escape %}
|
|
|
|
|
2021-12-21 16:40:46 +00:00
|
|
|
{% block title %}{% trans %}%nickname%'s profile{% endtrans %}{% endblock %}
|
2021-12-01 21:41:41 +00:00
|
|
|
|
|
|
|
{% block stylesheets %}
|
|
|
|
{{ parent() }}
|
|
|
|
<link rel="stylesheet" href="{{ asset('assets/default_theme/css/pages/feeds.css') }}" type="text/css">
|
|
|
|
{% endblock stylesheets %}
|
2021-09-17 20:33:02 +01:00
|
|
|
|
|
|
|
{% block body %}
|
2021-12-01 21:41:41 +00:00
|
|
|
{% block profile_view %}
|
|
|
|
{% include 'cards/profile/view.html.twig' %}
|
|
|
|
{% endblock profile_view %}
|
2021-09-20 14:38:39 +01:00
|
|
|
|
2021-12-01 21:41:41 +00:00
|
|
|
<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 12:47:16 +00:00
|
|
|
{% for conversation in notes %}
|
2021-12-01 21:41:41 +00:00
|
|
|
{% block current_note %}
|
2021-12-21 12:47:16 +00:00
|
|
|
{% if conversation is instanceof('array') %}
|
|
|
|
{{ noteView.macro_note(conversation['note'], conversation['replies']) }}
|
|
|
|
{% else %}
|
|
|
|
{{ noteView.macro_note(conversation) }}
|
|
|
|
{% endif %}
|
2021-12-01 21:41:41 +00: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>
|
2021-11-26 13:05:23 +00:00
|
|
|
{% endblock body %}
|