1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{{extend 'layout.html'}}
{{ block header_bonus }}
<h2>{{= feed["feed_title"] }}</h2>
<a href="{{= URL("mark_read", args=[feed["id"]]) }}" class="button">Mark feed as read</a>
{{ end }}
<section id="story-list">
{{
import time
s = time.time()
}}
{{ for story in stories:
if sum([v for k,v in story["intelligence"].iteritems()]) < threshold:
continue
}}
{{ print story["read_status"] }}
<div class="story">
<a href="{{= URL(c="stories", f="view", vars=dict(story=story["id"], feed_id=feed["id"])) }}" class="{{= "unread" if story["read_status"] == 0 else "read" }}">
|
>
|
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
{{extend 'layout.html'}}
{{ block header_bonus }}
<h2>{{= feed["feed_title"] }}</h2>
<a href="{{= URL("mark_read", args=[feed["id"]]) }}" class="button">Mark feed as read</a>
{{ end }}
<section id="story-list">
{{
import time
s = time.time()
}}
{{
for story in stories:
if sum([v for k,v in story["intelligence"].iteritems()]) < threshold:
continue
}}
{{ print story["read_status"] }}
<div class="story">
<a href="{{= URL(c="stories", f="view", vars=dict(story=story["id"], feed_id=feed["id"])) }}" class="{{= "unread" if story["read_status"] == 0 else "read" }}">
|