[TWIG] Add Links representation to notes

This commit is contained in:
Diogo Peralta Cordeiro 2021-08-14 15:04:51 +01:00 committed by Hugo Sales
parent ef1a9ce3b1
commit 061c953eac
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
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> <i> <a href="{{ path('attachment_show', {'id': attachment.getId()}) }}">{{ attachment.getBestTitle(note) }}</a> </i>
</div> </div>
{% endif %} {% endif %}

View File

@ -46,6 +46,13 @@
{% endfor %} {% endfor %}
</div> </div>
{% endif %} {% 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> </div>
{% if replies is defined %} {% if replies is defined %}