summaryrefslogtreecommitdiff
path: root/views/report.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'views/report.ejs')
-rw-r--r--views/report.ejs24
1 files changed, 24 insertions, 0 deletions
diff --git a/views/report.ejs b/views/report.ejs
new file mode 100644
index 0000000..bd556eb
--- /dev/null
+++ b/views/report.ejs
@@ -0,0 +1,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>