Overview
| Comment: | Fixed story list to omit stories below the intelligence threshold |
|---|---|
| Timelines: | family | ancestors | descendants | both | develop |
| Files: | files | file ages | folders |
| SHA1: |
fe10ff441dad1a4806579e9497e323d6 |
| User & Date: | spiffy on 2011-11-29 05:23:15.389 |
| Other Links: | branch diff | manifest | tags |
Context
|
2011-11-29
| ||
| 17:03 | Replaced the lame knockoff of NCSU's colors with the Albany theme from Adobe Kuler check-in: 80b3160c8d user: spiffy tags: develop | |
| 05:23 | Fixed story list to omit stories below the intelligence threshold check-in: fe10ff441d user: spiffy tags: develop | |
|
2011-11-22
| ||
| 23:56 | Somehow routes.py never got added to the repo check-in: b28babbbb4 user: spiffy tags: develop | |
Changes
Modified applications/mobileblur/views/feeds/view.html
from [a3c96a9b2b]
to [55ca9ae222].
1 2 3 4 5 6 7 8 9 10 11 12 |
{{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()
}}
| | > > > > > | | 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 |
{{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" }}">
{{= story["story_title"] }}
</a>
<p>{{= story["story_date"] }}</p>
</div>
{{ pass }}
{{ print time.time() - s }}
</section>
|