%
var isLoaded = (model ? true : false);
var isApp = (parentId ? false : true);
// Only emphasise applications at the top level, not as indirect references.
isApp &= !indirect;
if (!isLoaded) {
%>
Loading... (<%- id %>)
<% } else {
var hasChildren = model.hasChildren() || model.hasMembers();
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;
%>