<% if(cue.broken){ %> <% }else if(cue.running){ %> <% }else if(cue.loaded){ %> <% }else if(cue.flagged){ %> <% }else{ %> <% } %>
<%= cue.number || " " %>
<% for(let i=cue.nestedGroupModes.length; i>0; i--){ %> <% let test = "" %> <% if(cue.type=="Group" && i==1 && cue.cues.length==0){ %> <%= test %> <% }else if(cue.type=="Group" && i==1){ %> <%= test %> <% }else if(cue.nestedGroupPosition[i-1]==0 && cue.nestedGroupPosition[i-2]==0){ %> <%= test %> <% }else if(i==1 && cue.nestedGroupPosition[i]==0){ %> <%= test %> <% }else{ %> <%= test %> <% } %> <% } %> <% if(cue.type=="Group"){ %> <% if(cue.cues.length==0){ %> <%= cue.listName %> <% }else{ %> <%= cue.listName %> <% } %> <% }else if(cue.nestedGroupPosition[1]==0){ %> <%= cue.listName %> <% }else{ %> <%= cue.listName %> <% } %> <%= cue.target %> <% if(cue.preWait){ %> <%= prettyFormatTime(cue.preWait) %> <% }else{ %> 00:00.00 <% } %> <% if(cue.duration || (cue.type=="Group" && cue.mode==3)){ %> <%= prettyFormatTime(cue.duration) %> <% }else{ %> <% } %> <% if(cue.postWait){ %> <%= prettyFormatTime(cue.postWait) %> <% }else{ %> 00:00.00 <% } %> <% if(cue.continueMode==2){ %>
<% }else if(cue.continueMode==1){ %>
<% }else{ %> <% } %> <% function prettyFormatTime(seconds){ var startIndex = 14; if(seconds>=3600){ startIndex = 11; } var string = new Date(seconds * 1000).toISOString() return string.substring(startIndex, string.length-2) } %>