[COMPONENT][Attachment] Do not show download links for non-local attachments
This commit is contained in:
@@ -2,8 +2,12 @@
|
||||
<figure>
|
||||
<video class="u-video" src="{{ attachment.getUrl() }}" controls poster="{{ attachment.getThumbnailUrl('medium')}}">
|
||||
</video>
|
||||
<figcaption><a
|
||||
href="{{ path('attachment_show', {'id': attachment.getId()}) }}">{{ attachment.getBestTitle(note) }}</a>
|
||||
<figcaption>
|
||||
{% if attachment.getFilename() is not null %}
|
||||
<a href="{{ path('attachment_show', {'id': attachment.getId()}) }}">{{ attachment.getBestTitle(note) }}</a>
|
||||
{% else %}
|
||||
{{ attachment.getBestTitle(note) }}
|
||||
{% endif %}
|
||||
</figcaption>
|
||||
</figure>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user