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