% if (attachments.length === 0) { %> <% } else { %> <% for (const att of attachments) { %> <% if (attr.readonly) { %> <%= att.fileName %> <% } else { %> <% } %> <% } %> <% } %>