2021-08-04 21:12:59 +01:00
|
|
|
<div class="h-entry hentry note">
|
2021-04-30 02:51:03 +01:00
|
|
|
<div class="note-info">
|
|
|
|
{% set nickname = note.getActorNickname() %}
|
2021-07-21 19:21:48 +01:00
|
|
|
|
2021-07-23 13:04:04 +01:00
|
|
|
<a class="u-url" href="{{ path('settings_avatar') }}">
|
|
|
|
{# Microformat's h-card properties indicates a face icon is a "u-logo" #}
|
|
|
|
<img class="u-logo avatar" src="{{ note.getAvatarUrl() }}" alt="{{ nickname }}'s avatar">
|
|
|
|
<b class="p-nickname">{{ nickname }}</b>
|
2021-04-30 02:51:03 +01:00
|
|
|
</a>
|
2021-07-21 19:21:48 +01:00
|
|
|
|
2021-04-30 02:51:03 +01:00
|
|
|
{% 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 %}
|
2021-08-11 02:49:23 +01:00
|
|
|
|
|
|
|
<div class="note-actions">
|
|
|
|
{% if have_user %}
|
2021-08-11 18:42:15 +01:00
|
|
|
{% for current_action in get_note_actions(note) %}
|
|
|
|
{{ form_start(current_action) }}
|
|
|
|
{% if current_action.submit_fav is defined %}
|
|
|
|
<span title="Favourite this note." class="favourite-button-container">
|
|
|
|
{{ form_widget(current_action.submit_fav) }}
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
{{ form_end(current_action) }}
|
2021-08-11 02:49:23 +01:00
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
2021-04-30 02:51:03 +01:00
|
|
|
</div>
|
2021-07-23 13:04:04 +01:00
|
|
|
<div class="e-content entry-content note-content">
|
2021-04-30 02:51:03 +01:00
|
|
|
{% block markdown %}
|
|
|
|
{% apply markdown_to_html %}
|
|
|
|
{{ note.getContent() }}
|
|
|
|
{% endapply %}
|
|
|
|
{% endblock %}
|
2021-05-05 14:35:02 +01: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 %} #}
|
|
|
|
{# {% endfor %} #}
|
|
|
|
{# </div> #}
|
2021-04-30 02:51:03 +01:00
|
|
|
{% if hide_attachments is not defined %}
|
|
|
|
<div class="note-attachments">
|
|
|
|
{% for attachment in note.getAttachments() %}
|
2021-08-12 03:43:11 +01:00
|
|
|
{% include '/attachments/view.html.twig' with {'attachment': attachment, 'note': note} only%}
|
2021-04-30 02:51:03 +01:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2021-08-14 15:04:51 +01:00
|
|
|
<div class="note-links">
|
|
|
|
{% for link in note.getLinks() %}
|
|
|
|
{% for block in handle_event('ViewLink', {'link': link, 'note': note}) %}
|
|
|
|
{{ block | raw }}
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2021-04-30 02:51:03 +01:00
|
|
|
</div>
|
2021-08-11 02:49:23 +01:00
|
|
|
|
2021-04-30 02:51:03 +01:00
|
|
|
{% if replies is defined %}
|
2021-07-23 13:04:04 +01:00
|
|
|
<div class="u-in-reply-to replies">
|
2021-04-30 02:51:03 +01:00
|
|
|
{% 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>
|
2021-07-21 19:21:48 +01:00
|
|
|
|
|
|
|
<hr>
|