{% if attachment.getFilename() is not null %}
{{ attachment.getBestTitle(note) }}
{% else %} {# Not stored locally. #} {% endif %}