diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-10-13 14:14:27 +0200 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-10-13 14:14:27 +0200 |
commit | 45c22d114ad375bdb36fc697343145ddba469ebf (patch) | |
tree | 03d7aeeb4195a2229539a417e6a373db0bf35c65 /pyaggr3g470r/templates | |
parent | MongoEngine list slicing. (diff) | |
download | newspipe-45c22d114ad375bdb36fc697343145ddba469ebf.tar.gz newspipe-45c22d114ad375bdb36fc697343145ddba469ebf.tar.bz2 newspipe-45c22d114ad375bdb36fc697343145ddba469ebf.zip |
First implementation of /favorites page.
Diffstat (limited to 'pyaggr3g470r/templates')
-rw-r--r-- | pyaggr3g470r/templates/favorites.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pyaggr3g470r/templates/favorites.html b/pyaggr3g470r/templates/favorites.html new file mode 100644 index 00000000..0b912286 --- /dev/null +++ b/pyaggr3g470r/templates/favorites.html @@ -0,0 +1,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 %}
\ No newline at end of file |