<% if (!file && !files) { %> <% } else if (file && file.isDir){ %> <% } else if (files.length > 1) { %> <% } else if (file.isImage) { %> <% } else { %> <% } %>
<% if (!file && !files) { %>
No selection
<% } else if (file && file.isDir){ %>
Directory Selected
<% } else if (files.length > 1) { %>
Multiple files selected
<% if (fileCount) { %> <% } %> <% } else { %> <%= file.display %>
View <%= file.isImage ? "image" : "document" %>
Download <%= file.isImage ? "image" : "document" %>

<% if (canEdit) { %>
<% } %> <% if (Util.permits(access,"SET_VISIBLE")) { %>
<% } %> <% if (canEdit) { %> Copy | Paste
<% } %> Add to image set
Browser link and thumbnail: <% if (file.isImage) { %> <% } else { %> <% } %> <% } %>