diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-10-13 10:07:51 +0200 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-10-13 10:07:51 +0200 |
commit | abec11e7ca0ce49081343bb2b2eb8520058d67a8 (patch) | |
tree | 9aeb6f19650c4d62a4b539ad0c1a9d1f83c6c843 /pyaggr3g470r/templates/home.html | |
parent | Removed all .py files. (diff) | |
download | newspipe-abec11e7ca0ce49081343bb2b2eb8520058d67a8.tar.gz newspipe-abec11e7ca0ce49081343bb2b2eb8520058d67a8.tar.bz2 newspipe-abec11e7ca0ce49081343bb2b2eb8520058d67a8.zip |
Added new files. First prototype with the Flask micro-framework.
Diffstat (limited to 'pyaggr3g470r/templates/home.html')
-rw-r--r-- | pyaggr3g470r/templates/home.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pyaggr3g470r/templates/home.html b/pyaggr3g470r/templates/home.html new file mode 100644 index 00000000..da71c881 --- /dev/null +++ b/pyaggr3g470r/templates/home.html @@ -0,0 +1,26 @@ + {% extends "layout.html" %} +{% block content %} +<div class="container"> + {% for feed in feeds %} + <div class="row"> + <div class="col-md-6 col-md-offset-3"><h1>{{ feed.title }}</h1></div> + </div> + {% for number in range(0, feed.articles[:10]|length-2, 3) %} + <div class="row"> + <div class="col-xs-6 col-sm-4 col-md-4"> + <h2>{{ feed.articles[number].title }}<h2> + <h6>{{ feed.articles[number].date }}</h6> + </div> + <div class="col-xs-6 col-sm-4 col-md-4"> + <h2>{{ feed.articles[number+1].title }}<h2> + <h6>{{ feed.articles[number+1].date }}</h6> + </div> + <div class="col-xs-6 col-sm-4 col-md-4"> + <h2>{{ feed.articles[number+2].title }}<h2> + <h6>{{ feed.articles[number+2].date }}</h6> + </div> + </div> + {% endfor %} + {% endfor %} +</div><!-- /.container --> +{% endblock %} |