aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates/favorites.html
blob: 0b9122869d194dac52a897fc12152c402a934551 (plain)
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
{% extends "layout.html" %}
{% block content %}
<div class="container">
    {% for feed in favorites %}
            <div class="row">
            <div class="col-md-6 col-md-offset-3">
            <h1>{{ feed }}</h1>
            </div>
        </div>
    {% for number in range(0, favorites[feed]|length-2, 3) %}
        <div class="row">
            <div class="col-xs-6 col-sm-4 col-md-4">
                 <h2><a href="/article/{{ favorites[feed][number].id }}">{{ favorites[feed][number].title }}</a><h2>
                <h6>{{ favorites[feed][number].date }}</h6>
            </div>
            <div class="col-xs-6 col-sm-4 col-md-4">
                  <h2><a href="/article/{{ favorites[feed][number+1].id }}">{{ favorites[feed][number+1].title }}</a><h2>
                <h6>{{ favorites[feed][number+1].date }}</h6>
            </div>
            <div class="col-xs-6 col-sm-4 col-md-4">
                  <h2><a href="/article/{{ favorites[feed][number+2].id }}">{{ favorites[feed][number+2].title }}</a><h2>
                <h6>{{ favorites[feed][number+2].date }}</h6>
            </div>
        </div>
    {% endfor %}
    {% endfor %}
</div><!-- /.container -->
{% endblock %}
bgstack15