<% if ( typeof type !== "undefined" && type !== null && type == "Metadata" ) { %> <% var indentFolder = nodeLevel * 40; %> <% } else { %> <% var indentFile = (nodeLevel + 1) * 40; %> <% } %> <% var fileClasses = "name" %> <% var filenameEditable = "false" %> <% var filenameTitle = "You are not authorized to rename this file" %> <% if (canRename) { %> <% fileClasses = fileClasses + " canRename" %> <% var filenameEditable = "true" %> <% var filenameTitle = "Click to rename" %> <% } %> <% if(uploadStatus != "l" && uploadStatus != "p"){ %>
<% } else { %>
<% } %> <% if (typeof title != "undefined" && title && title.length) { %> <%= title %> <% } else if ( typeof fileName != "undefined" && fileName) { %> <%= fileName %> <% } else if(type == "Metadata"){ %> Untitled dataset <% } else { %> <%= id %> <% } %>
<% if ( typeof sizeStr != "undefined" && sizeStr ) { %> <%= sizeStr %> <% } else {%> <%= size %> <% } %> <% if (type && type != "Metadata") { %> <%= type %> <% } else { %> <% } %> <% if( MetacatUI.appModel.get("allowAccessPolicyChanges")){ %> <% } %> <% if( uploadStatus == "p" ){ %>
<% } else if( (!uploadStatus || uploadStatus == "c" || uploadStatus == "q") && type != "Metadata" && numAttributes == 0 ) { %> <% } else if( uploadStatus == "w" && type != "Metadata" ) { %> <% } else if( type != "Metadata" && numAttributes > 0 && hasInvalidAttribute ) { %> <% } else if( type != "Metadata" && numAttributes > 0 && !hasInvalidAttribute && entityIsValid ) { %> <% } else if( type != "Metadata" && !entityIsValid ) { %> <% } else if( uploadStatus == "c" ) { %> <% } else if( uploadStatus == "e" ) { %> <% } else if( uploadStatus == "l" && type != "Metadata"){ %> <% } %> <% if ( typeof formatType !== "undefined" && formatType !== null && formatType.toLowerCase() === "metadata" ) { %> <% } else { %>
<% if( hasInvalidAttribute || !entityIsValid ){ %> <% } else if( (!uploadStatus || uploadStatus == "c" || uploadStatus == "q" || uploadStatus == "w") && type != "Metadata" && numAttributes == 0 ){ %> <% } else { %> <% } %>
<% } %>