summaryrefslogtreecommitdiff
path: root/views/report.ejs
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2012-09-24 16:22:07 -0400
committerJules Laplace <jules@okfoc.us>2012-09-24 16:22:07 -0400
commit686106d544ecc3b6ffd4db2b665d3bc879a58d8c (patch)
treea5b5e50237cef70e12f0745371896e96f5f6d578 /views/report.ejs
ok
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>