mirror of
https://github.com/stagehacks/Cue-View.git
synced 2026-08-06 06:13:40 +00:00
134 lines
3.5 KiB
Plaintext
134 lines
3.5 KiB
Plaintext
<tr class="q-<%= cue.colorName %> q-armed-<%= cue.armed %>" id="<%= cue.uniqueID %>">
|
|
|
|
<td></td> <!-- playhead/color indicator -->
|
|
|
|
<td><center>
|
|
<% if(cue.broken){ %>
|
|
<img src="plugins/qlab/img/status_broken.png" height="18px">
|
|
|
|
<% }else if(cue.running){ %>
|
|
<img src="plugins/qlab/img/status_running.png" height="18px">
|
|
|
|
<% }else if(cue.loaded){ %>
|
|
<img src="plugins/qlab/img/status_loaded.png" height="18px">
|
|
|
|
<% }else if(cue.flagged){ %>
|
|
<img src="plugins/qlab/img/status_flagged.png" height="20px">
|
|
|
|
<% }else{ %>
|
|
|
|
<% } %>
|
|
</center></td>
|
|
|
|
|
|
<td><img src="plugins/qlab/img/<%= cue.type.toLowerCase().replace(' ','-') %>.png" height="20px"></td>
|
|
<td><center><%= cue.number || " " %></center></td>
|
|
|
|
|
|
|
|
|
|
<% for(let i=cue.nestedGroupModes.length; i>0; i--){ %>
|
|
|
|
<% let test = "" %>
|
|
|
|
<% if(cue.type=="Group" && i==1 && cue.cues.length==0){ %>
|
|
<td class="gMode-<%= cue.nestedGroupModes[i-1] %> gLeft gTop gBot group-arrow"><%= test %></td>
|
|
|
|
<% }else if(cue.type=="Group" && i==1){ %>
|
|
<td class="gMode-<%= cue.nestedGroupModes[i-1] %> gLeft gTop group-arrow"><%= test %></td>
|
|
|
|
<% }else if(cue.nestedGroupPosition[i-1]==0 && cue.nestedGroupPosition[i-2]==0){ %>
|
|
<td class="gMode-<%= cue.nestedGroupModes[i-1] %> gLeft gBot"><%= test %></td>
|
|
|
|
<% }else if(i==1 && cue.nestedGroupPosition[i]==0){ %>
|
|
<td class="gMode-<%= cue.nestedGroupModes[i] %> gBot"><%= test %></td>
|
|
|
|
<% }else{ %>
|
|
<td class="gMode-<%= cue.nestedGroupModes[i-1] %> gLeft"><%= test %></td>
|
|
|
|
<% } %>
|
|
|
|
<% } %>
|
|
|
|
|
|
|
|
<!-- end spacer cells -->
|
|
|
|
|
|
<% if(cue.type=="Group"){ %>
|
|
<% if(cue.cues.length==0){ %>
|
|
<td id="cue-name" colspan="<%= 11-cue.nestedGroupModes.length %>" class="gMode-<%= cue.groupMode %> gTop gBot gRight"><%= cue.listName %></td>
|
|
|
|
<% }else{ %>
|
|
<td id="cue-name" colspan="<%= 11-cue.nestedGroupModes.length %>" class="gMode-<%= cue.groupMode %> gTop gRight"><%= cue.listName %></td>
|
|
|
|
<% } %>
|
|
|
|
<% }else if(cue.nestedGroupPosition[1]==0){ %>
|
|
<td colspan="<%= 11-cue.nestedGroupModes.length %>" class="cue-name gMode-<%= cue.nestedGroupModes[1] %> gBot gRight"><%= cue.listName %></td>
|
|
|
|
<% }else{ %>
|
|
<td colspan="<%= 11-cue.nestedGroupModes.length %>" class="cue-name gMode-<%= cue.nestedGroupModes[1] %> gRight"><%= cue.listName %></td>
|
|
|
|
<% } %>
|
|
|
|
|
|
<td class="q-time hide-medium"><%= cue.target %></td>
|
|
|
|
|
|
|
|
|
|
<% if(cue.preWait){ %>
|
|
<td class="q-time hide-small"><%= prettyFormatTime(cue.preWait) %></td>
|
|
|
|
<% }else{ %>
|
|
<td class="q-time q-gray-text hide-small">00:00.00</td>
|
|
|
|
<% } %>
|
|
|
|
|
|
|
|
<% if(cue.duration || (cue.type=="Group" && cue.mode==3)){ %>
|
|
<td class="q-time hide-medium"><%= prettyFormatTime(cue.duration) %></td>
|
|
|
|
<% }else{ %>
|
|
<td class="hide-medium"></td>
|
|
|
|
<% } %>
|
|
|
|
|
|
|
|
<% if(cue.postWait){ %>
|
|
<td class="q-time q-gray-text hide-medium"><%= prettyFormatTime(cue.postWait) %></td>
|
|
|
|
<% }else{ %>
|
|
<td class="q-time q-gray-text hide-medium">00:00.00</td>
|
|
|
|
<% } %>
|
|
|
|
|
|
|
|
<% if(cue.continueMode==2){ %>
|
|
<td class="hide-small"><center><img src="plugins/qlab/img/auto_follow.png" height="20px"></center></td>
|
|
|
|
<% }else if(cue.continueMode==1){ %>
|
|
<td class="hide-small"><center><img src="plugins/qlab/img/auto_continue.png" height="20px"></center></td>
|
|
|
|
<% }else{ %>
|
|
<td class="hide-small"></td>
|
|
|
|
<% } %>
|
|
|
|
|
|
</tr>
|
|
|
|
<%
|
|
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)
|
|
}
|
|
%> |