<% if (!file || file.isDir) { %>
No image selected.
<% } else { %>
Toggle hidden attributes <% if (canEdit) { %> Add New Attribute <% } %>
<% } %>