[TWIG] Add Links representation to notes

This commit is contained in:
Diogo Peralta Cordeiro 2021-08-14 15:04:51 +01:00
parent 31c5fd6da7
commit a43f1a641a
Signed by: diogo
GPG Key ID: 18D2D35001FBFAB0
2 changed files with 7 additions and 1 deletions

View File

@ -9,4 +9,3 @@
<i> <a href="{{ path('attachment_show', {'id': attachment.getId()}) }}">{{ attachment.getBestTitle(note) }}</a> </i>
</div>
{% endif %}

View File

@ -46,6 +46,13 @@
{% endfor %}
</div>
{% endif %}
<div class="note-links">
{% for link in note.getLinks() %}
{% for block in handle_event('ViewLink', {'link': link, 'note': note}) %}
{{ block | raw }}
{% endfor %}
{% endfor %}
</div>
</div>
{% if replies is defined %}