39 lines
1.1 KiB
Twig
39 lines
1.1 KiB
Twig
<div class="note">
|
|
<div class="note-info">
|
|
<a href="{{ path('settings_avatar') }}">
|
|
<img src="{{ note.getAvatarUrl() }}" alt="{{ note.getActorNickname() }}'s avatar">
|
|
</a>
|
|
<b>{{ note.getActorNickname() }}</b>
|
|
</div>
|
|
<div class="note-content">
|
|
{{ note.getContent() }}
|
|
{% for attachment in note.getAttachments() %}
|
|
<div>
|
|
<i> {{ attachment.getTitle() }} </i>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
<div class="note-actions">
|
|
<a href="{{ path('note_reply', {'reply_to': note.getId()}) }}">
|
|
<svg class="icon icon-reply">
|
|
<use xlink:href="#icon-reply"></use>
|
|
</svg>
|
|
</a>
|
|
<a href="{{ path('note_recycle', {'repeat_of': note.getId()}) }}">
|
|
<svg class="icon icon-recycle">
|
|
<use xlink:href="#icon-recycle"></use>
|
|
</svg>
|
|
</a>
|
|
<a href="{{ path('note_reply', {'reply_to': note.getId()}) }}">
|
|
<svg class="icon icon-heart">
|
|
<use xlink:href="#icon-heart"></use>
|
|
</svg>
|
|
</a>
|
|
</div>
|
|
<div class="replies">
|
|
{% for reply in note.getReplies() %}
|
|
{% include '/note/view.html.twig' with {'note': reply} only %}
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|