-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplusplus.html
More file actions
64 lines (57 loc) · 1.23 KB
/
Copy pathplusplus.html
File metadata and controls
64 lines (57 loc) · 1.23 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<head>
<title>plusplus</title>
</head>
<body>
{{> loginButtons}}
{{> navbar}}
</body>
<template name="router">
{{#if loggedIn}}
{{> home}}
{{else}}
{{> loginpage}}
{{/if}}
</template>
<template name="navbar">
<div>
<a href="/"> home </a>
<a href="log"> log </a>
</div>
</template>
<template name="home">
<h1> home </h1>
<input type="text" id="temp-handle"/>
<button id="temp-create-handle"> create! </button>
{{#each plusems}}
<div style="border-width:1px; border-style:solid">
<p> handle: {{handle}} </p>
<p> points : {{points}} </p>
<button id="profile"> profile </button>
</div>
{{/each}}
</template>
<template name="profile">
<h1> profile page </h1>
<div>
<p>handle: {{profile.handle}} </p>
<p>points: {{profile.points}} </p>
<button id="plus"> plusplus! </button>
<button id="minus"> minusminus. </button>
</div>
</template>
<template name="loginpage">
<h1>loginpage</h1>
<h2> log in to continue! </h2>
</template>
<template name="log">
<h1> log </h1>
{{#each transactions}}
<div style="border-width:1px; border-style:solid">
<p> from: {{from}} </p>
<p> to: {{to}} </p>
<p> time: {{time}} </p>
<p> plus: {{plus}} </p>
<p> reason: {{reason}} </p>
</div>
{{/each}}
</template>