<% if (isImageType && previewMetadata.preview) { %> <%= previewMetadata.title %> <% } else { %> <% } %> <%= previewMetadata.filename %>