[AttachmentToNote][Attachment] Add title getter to Attachment

This commit is contained in:
2021-08-12 03:43:11 +01:00
committed by Hugo Sales
parent 5fd91bf3a2
commit d076781c74
8 changed files with 50 additions and 8 deletions

View File

@@ -2,6 +2,6 @@
<img class="u-photo" src="{{ path('attachment_thumbnail', thumbnail_parameters) }}"
alt="{{ attachment.getFilename() }}">
<figcaption><a
href="{{ path('attachment_show', {'id': attachment.getId()}) }}">{{ attachment.getFilename() }}</a>
href="{{ path('attachment_show', {'id': attachment.getId()}) }}">{{ attachment.getBestTitle(note) }}</a>
</figcaption>
</figure>