<% let height = 0; let width = 0; let left = 0; let top = 0; let cueKeys = allCues[cue.uniqueID]; let parent = allCues[cue.parent]; if(cueKeys.parent){ width = 100/cueKeys.parent.cartColumns; height = 600/cueKeys.parent.cartRows; top = (cueKeys.cartPosition[0]-1)*height; left = (cueKeys.cartPosition[1]-1)*width; } let style = `style="left:${left}%; top:${top}px; width:${width }%; height:${height}px;"`; %>
>
<% if(cueKeys.isBroken){ %> <% }else if(cueKeys.isRunning){ %> <% }else{ %> <% } %>

<%= cueKeys.number %> <% if(cueKeys.number){ %> • <% } %> <%= cueKeys.displayName %>