aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-30 10:58:54 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-30 10:58:54 +0200
commitf03a9825fc047e2371356d7b1784c65835756c55 (patch)
treedefe05beca3b794e1988787586a584e131689b4c /pyaggr3g470r/templates
parentAdded comments. (diff)
downloadnewspipe-f03a9825fc047e2371356d7b1784c65835756c55.tar.gz
newspipe-f03a9825fc047e2371356d7b1784c65835756c55.tar.bz2
newspipe-f03a9825fc047e2371356d7b1784c65835756c55.zip
Link between next and previous articles.
Diffstat (limited to 'pyaggr3g470r/templates')
-rw-r--r--pyaggr3g470r/templates/article.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/pyaggr3g470r/templates/article.html b/pyaggr3g470r/templates/article.html
index 7cbee48a..1ca1ce49 100644
--- a/pyaggr3g470r/templates/article.html
+++ b/pyaggr3g470r/templates/article.html
@@ -20,6 +20,16 @@
{{ article.content|safe }}
</div>
<div class="jumbotron">
+ <div class="row">
+ <div class="col-md-6">
+ Next post: <a href="/article/{{ next_article.id }}">{{ next_article.title }}</a>
+ </div>
+ <div class="col-md-6 text-right">
+ Previous post: <a href="/article/{{ previous_article.id }}">{{ previous_article.title }}</a>
+ </div>
+ </div>
+ </div>
+ <div class="jumbotron">
<a href="https://api.pinboard.in/v1/posts/add?url={{ article.link }}&description={{ article.title }}" rel="noreferrer" target="_blank">
<img src="/static/img/pinboard.png" title="Share on Pinboard" />
</a>
bgstack15