MobileBlur

view.html at [f6c84eb8e3]
Login

view.html at [f6c84eb8e3]

File applications/mobileblur/views/feeds/view.html artifact a70d7ea9da part of check-in f6c84eb8e3


{{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">
    {{ 
        for story in stories: 
        if sum([v for k,v in story["intelligence"].iteritems()]) < threshold:
            continue
    }}

        <a href="{{= URL(c="stories", f="view", vars=dict(story=story["id"], feed_id=feed["id"])) }}" }}">
            <div class="story">
                <p class="story-title {{= "unread" if story["read_status"] == 0 else "read" }}">{{= story["story_title"] }}</p>
                <p class="story-date">{{= story["story_date"] }}</p>
            </div>
        </a>
    {{ pass }}
</section>