forked from shekhargulati/day15-epoll-meteor-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathepoll.html
69 lines (59 loc) · 1.7 KB
/
epoll.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<head>
<title>Epoll : Share your opinion online, anywhere, anytime</title>
<link rel="stylesheet" type="text/css" href="public/epoll.css">
</head>
<body>
<div class="navbar navbar-static-top navbar-inverse">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="/">Epoll</a>
<ul class="nav pull-right">
<li>
{{loginButtons}}
</li>
</ul>
</div>
</div>
</div>
<div class="container" id="main">
{{#if currentUser}}
{{> addquestion}}
{{/if}}
{{#unless currentUser}}
{{> banner}}
{{/unless}}
{{> questions}}
</div>
</body>
<template name="banner">
<div class="container">
<div class="row">
<div class="span6">
<div class="well">
<h4>Sign in using Twitter to submit new questions or to vote on existing questions.</h4>
{{loginButtons}}
</div>
</div>
</div>
</div>
</template>
<template name="addquestion">
<textarea rows="3" class="input-xxlarge" name="questionText" id="questionText" placeholder="Add Your Question"></textarea>
<br/>
<input type="button" class="btn-info add-question" value="Add Question"/>
</template>
<template name="questions">
<h2>All Questions</h2>
{{#each items}}
{{> question}}
{{/each}}
</template>
<template name="question">
<div>
<p class="lead">
{{questionText}}
<a class="btn btn-small btn-success yes {{#unless currentUser}}disabled{{/unless}}" href="#"><i class="icon-thumbs-up"></i> Yes {{yes}}</a>
<a class="btn btn-small btn-danger no {{#unless currentUser}}disabled{{/unless}}" href="#"><i class="icon-thumbs-down"></i> No {{no}}</a>
</p>
</div>
</template>