{% set thumbnail = attachment.getThumbnail() %} {{ attachment.getBestTitle(note) }}
{% if attachment.getFilename() is not null %} {{ attachment.getBestTitle(note) }} {% else %} {{ attachment.getBestTitle(note) }} {% endif %}