-
Notifications
You must be signed in to change notification settings - Fork 0
/
Scores.html
38 lines (33 loc) · 906 Bytes
/
Scores.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<template name = "scores">
<div class = "container" >
<h1>Here are the scores</h1>
{{#if currentUser}}
{{>reactiveTable collection = mycollfunc settings = settings}}
<table class="table table-striped">
<thead >
<tr>
<th class = "fa fa-bell"> Username</th>
<th class = "fa fa-picture-o"> Color Game Levels</th>
<th class = "fa fa-clock-o"> Time</th>
</tr>
</thead>
<tbody>
{{#each mycollfunc}}
{{>user}}
{{/each}}
</tbody>
</table>
{{else}}
<h3>Sorry please sign in</h3>
{{/if}}
<a href = "{{pathFor route='home'}}"><button id = "next">Go Home</button></a>
<!--<button class = "deleteme">Clear</button>-->
</div>
</template>
<template name = "user">
<tr>
<td>{{getname}}</td>
<td>{{colorResult}}</td>
<td>{{createdAt}}</td>
</tr>
</template>