<% var isLoaded = (model ? true : false); var isApp = (parentId ? false : true); if (!isLoaded) { %> Loading... (<%= id %>) <% } else { var hasChildren = model.hasChildren(); var iconUrl = model.get('iconUrl'); var entityIconSize = isApp ? 40 : 30; var statusIconSize = isApp ? 24 : 16; var chevronLeft = (isApp ? 5.5 : 1.5); var minHeight = hasChildren && statusIconUrl ? entityIconSize : 24; var statusColumnWidth = hasChildren || statusIconUrl || (!isApp && !iconUrl /* for children, insert space so things line up */) ? statusIconSize : 0; %>
<% if (statusIconUrl) { %>
<% } %> <% if (hasChildren) { %>
">
Toggle Children
Expand
Expand All
Collapse
Collapse All
<% } %> <% if (iconUrl) { %> <% } %>
<%= model.get('name') %>
<% } %>