-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreader.html
More file actions
55 lines (50 loc) · 989 Bytes
/
reader.html
File metadata and controls
55 lines (50 loc) · 989 Bytes
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
<head>
<title>reader</title>
</head>
<body>
<div class="container">
<div class="row">
<div class="span12">
<div class="well"></div>
{{>index}}
</div>
</div>
</div>
</body>
<template name="index">
<div class="row">
<div class="span3">
{{>feeds}}
</div>
<div class="span9">
{{#if feed}}
{{>feed}}
{{else}}
<h1>Stories go here</h1>
{{/if}}
</div>
</div>
</template>
<template name="feeds">
<div class="well">
<ul class="nav nav-list">
{{#each feeds}}
<li class="feed"><a href="">{{title}} <div class="label storycount">{{stories.length}}</div></a></li>
{{/each}}
</ul>
</div>
<div class="input-append">
<input name="url" id="url" type="text" placeholder="Feed URL">
<button class="btn btn-primary addFeed">Add</button>
</div>
</template>
<template name="feed">
{{#with feed}}
{{#each stories}}
<h3><a href="{{link}}">{{title}}</a></h3>
<hr>
{{{description}}}
<hr>
{{/each}}
{{/with}}
</template>