-
Notifications
You must be signed in to change notification settings - Fork 1
/
siteace.html
112 lines (101 loc) · 2.88 KB
/
siteace.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<head>
<title>siteace</title>
</head>
<body>
</body>
<template name="ApplicationLayout">
{{> yield "navbar"}}
{{> yield "main"}}
</template>
<template name="navbar">
<!-- navbar - you will be putting the login functions here -->
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="/">
Site Ace
</a>
</div>
{{> loginButtons}}
<div class="navbar-right searchbox-container">
<div class="searchbox">
<span class="glyphicon glyphicon-search" aria-hidden="true"></span>
{{> EasySearch.Input index=websitesIndex}}
</div>
</div>
</div>
</nav>
</template>
<template name="sitesList">
<div class="container">
{{> website_form}}
{{> website_list}}
</div>
</template>
<template name="website_form">
<a class="btn btn-default js-toggle-website-form" href="#">
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
</a>
<div id="website_form" class="hidden_div">
<form class="js-save-website-form">
<div class="form-group">
<label for="url">Site address</label>
<input type="text" class="form-control .js-make-request" id="url" placeholder="http://www.mysite.com">
</div>
<div class="form-group">
<label for="title">Title</label>
<input type="text" class="form-control" id="title" placeholder="Mysite">
</div>
<div class="form-group">
<label for="description">Description</label>
<input type="text" class="form-control" id="description" placeholder="I found this site really useful for ...">
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
</div>
</template>
<!-- template that displays several website items -->
<template name="website_list">
<ol>
{{#EasySearch.Each index=websitesIndex}}
{{> website_item}}
{{/EasySearch.Each}}
</ol>
</template>
<!-- template that displays individual website entries -->
<template name="website_item">
<li>
<a href="{{url}}">{{title}}</a>
<p>
{{description}}
</p>
<p>
Created: <small>{{createdOn}}</small>
</p>
<p>
<a href="/website/{{_id}}">More...</a>
</p>
<a href="#" class="btn btn-default js-upvote">
<span class="glyphicon glyphicon-arrow-up" aria-hidden="true">{{upVotes}}</span>
</a>
<a href="#" class="btn btn-default js-downvote">
<span class="glyphicon glyphicon-arrow-down" aria-hidden="true">{{downVotes}}</span>
</a>
<!-- you will be putting your up and down vote buttons in here! -->
</li>
</template>
<template name="websiteDetails">
<div class="container">
<a href="{{url}}"><h2>{{title}}</h2></a>
<p>
{{description}}
</p>
<p>
Created: <small>{{createdOn}}</small>
</p>
<!-- {{> websiteComments}} -->
<div class="comment-section">
{{> commentsBox id=this._id}}
</div>
</div>
</template>