aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-10-13 16:01:11 +0200
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-10-13 16:01:11 +0200
commit4b59d40ba6754c3a50474dc43fd93a74b3577dc2 (patch)
tree8849ab4ad68393b6feb45b1c008ea9afefe26faf /pyaggr3g470r/templates
parentFirst implementation of /management page. (diff)
downloadnewspipe-4b59d40ba6754c3a50474dc43fd93a74b3577dc2.tar.gz
newspipe-4b59d40ba6754c3a50474dc43fd93a74b3577dc2.tar.bz2
newspipe-4b59d40ba6754c3a50474dc43fd93a74b3577dc2.zip
fixed bug in /articles page.
Diffstat (limited to 'pyaggr3g470r/templates')
-rw-r--r--pyaggr3g470r/templates/article.html1
-rw-r--r--pyaggr3g470r/templates/articles.html10
2 files changed, 11 insertions, 0 deletions
diff --git a/pyaggr3g470r/templates/article.html b/pyaggr3g470r/templates/article.html
index 9c4fe287..28c53714 100644
--- a/pyaggr3g470r/templates/article.html
+++ b/pyaggr3g470r/templates/article.html
@@ -3,6 +3,7 @@
<div class="container">
<div class="jumbotron">
<h1>{{ article.title }}</h1>
+ <h4>{{ article.link }}</h4>
<h6>{{ article.date }}</h6>
</div>
<div class="jumbotron">
diff --git a/pyaggr3g470r/templates/articles.html b/pyaggr3g470r/templates/articles.html
index d98d1f80..146769ac 100644
--- a/pyaggr3g470r/templates/articles.html
+++ b/pyaggr3g470r/templates/articles.html
@@ -13,5 +13,15 @@
{% endfor %}
</div>
{% endfor %}
+ {% if feed.articles|length % 3 !=0 %}
+ <div class="row">
+ <div class="col-xs-6 col-sm-4 col-md-4">
+ {% if feed.articles[feed.articles|length-1].readed %}<h3>{% else %}<h1>{% endif %}
+ <a href="/article/{{ feed.articles[feed.articles|length-1].id }}">{{ feed.articles[feed.articles|length-1].title }}</a><h2>
+ {% if feed.articles[feed.articles|length-1].readed %}</h3>{% else %}</h1>{% endif %}
+ <h6>{{ feed.articles[feed.articles|length-1].date }}</h6>
+ </div>
+ </div>
+ {% endif %}
</div><!-- /.container -->
{% endblock %} \ No newline at end of file
bgstack15