summaryrefslogtreecommitdiff
path: root/views/report.ejs
blob: bd556eb924d3fbecd73e2f4d6f83803a6f768664 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<table>
  <tr>
    <th>channel</th>
    <th>players</th>
    <th>width</th>
    <th>height</th>
    <th>player 1</th>
    <th></th>
    <th>player 2</th>
    <th></th>
  </tr>
<% for (var i = 0, len = reports.length; i < len; i++) { %>
  <tr>
    <th><%= reports[i].channel %></th>
    <td align="right"><%= reports[i].players %></td>
    <td align="right"><%= reports[i].width %></td>
    <td align="right"><%= reports[i].height %></td>
    <% for (j in reports[i].scores) { %>
      <td><%= reports[i].names[j] %></td>
      <td align="right"><%= reports[i].scores[j] %></td>
    <% } %>
  </tr>
<% } %>
</table>