2020-08-28 21:16:26 +01:00
|
|
|
<div class="note">
|
|
|
|
<div class="note-info">
|
2020-09-06 22:34:36 +01:00
|
|
|
{% set nickname = note.getActorNickname() %}
|
2020-08-28 21:16:26 +01:00
|
|
|
<a href="{{ path('settings_avatar') }}">
|
2021-04-19 11:50:33 +01:00
|
|
|
<img class="avatar" src="{{ note.getAvatarUrl() }}" alt="{{ nickname }}'s avatar">
|
2020-08-28 21:16:26 +01:00
|
|
|
</a>
|
2020-09-06 22:34:36 +01:00
|
|
|
<b>{{ nickname }}</b>
|
|
|
|
{% set reply_to = note.getReplyToNickname() %}
|
|
|
|
{% if reply_to is not null and not skip_reply_to is defined %}
|
|
|
|
{% trans with {'%name%': reply_to}%} in reply to %name% {% endtrans %}
|
|
|
|
{% endif %}
|
2020-08-28 21:16:26 +01:00
|
|
|
</div>
|
|
|
|
<div class="note-content">
|
2021-01-03 23:17:06 +00:00
|
|
|
{% block markdown %}
|
|
|
|
{% apply markdown_to_html %}
|
|
|
|
{{ note.getContent() }}
|
|
|
|
{% endapply %}
|
|
|
|
{% endblock %}
|
2020-11-23 15:06:23 +00:00
|
|
|
<div class="note-other-content">
|
|
|
|
{% for other in get_note_other_content(note) %}
|
|
|
|
{% include '/'~ other.name ~ '/view.html.twig' with {'vars': other.vars} only %}
|
2020-11-20 14:59:15 +00:00
|
|
|
{% endfor %}
|
2020-11-22 02:36:01 +00:00
|
|
|
</div>
|
2021-04-28 22:50:55 +01:00
|
|
|
{% if hide_attachments is not defined %}
|
2021-04-28 22:25:35 +01:00
|
|
|
<div class="note-attachments">
|
|
|
|
{% for attachment in note.getAttachments() %}
|
|
|
|
{% include '/attachments/view.html.twig' with {'attachment': attachment} %}
|
2021-04-25 22:21:12 +01:00
|
|
|
{% endfor %}
|
2021-04-28 22:25:35 +01:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2020-08-28 21:16:26 +01:00
|
|
|
</div>
|
|
|
|
<div class="note-actions">
|
2021-04-28 22:25:35 +01:00
|
|
|
{# {% if have_user %} #}
|
|
|
|
{# {\#{% for act in get_note_actions(note) %}#\} #}
|
|
|
|
{# {\#{{ form(act) }}#\} #}
|
|
|
|
{# {\#{% endfor %}#\} #}
|
|
|
|
{# {% endif %} #}
|
2020-08-28 21:16:26 +01:00
|
|
|
</div>
|
2021-04-15 00:30:35 +01:00
|
|
|
{% if replies is defined %}
|
|
|
|
<div class="replies">
|
|
|
|
{% for conversation in replies %}
|
|
|
|
{% include '/note/view.html.twig' with {'note': conversation['note'], 'skip_reply_to': true, 'have_user': have_user, 'replies': conversation['replies']} only %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2020-08-28 21:16:26 +01:00
|
|
|
</div>
|