-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtemplate.html
43 lines (40 loc) · 1.05 KB
/
template.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
39
40
41
42
43
<head>
<title>Meteor Demo</title>
</head>
<body>
{{> people}}
</body>
<template name="people">
<h1>People ({{numberPeople}})</h1>
<div class="login">{{> loginButtons}}</div>
<table class="sortby-{{sort}}">
<thead>
<tr>
<th data-sortby="plusones">+1 {{{sortby 'plusones'}}}</th>
<th data-sortby="name">Name {{{sortby 'name'}}}</th>
<th data-sortby="lastvote">Last vote {{{sortby 'lastvote'}}}</th>
</tr>
</thead>
<tbody>
{{#each people}}
<tr style="{{bgc plusones}}" class="{{selected}}">
<td class="plusones">
{{#if currentUser}}
{{#unless isMe}}
<button class="button{{disabled}}">+{{plusones}}</button>
{{else}}
+{{plusones}}
{{/unless}}
{{else}}
+{{plusones}}
{{/if}}
</td>
<th data-col="name">{{name}}</th>
<td>{{lastvote}}</td>
</tr>
{{else}}
<tr><td colspan="4">No people found :(</td></tr>
{{/each}}
</tbody>
</table>
</template>