aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-11-09 13:38:33 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-11-09 13:38:33 +0100
commitade0eef9eb2e458f14b9a270d39b80239efbf9bc (patch)
treece2fbc2878d7ddfc3596a628a69fb83db4cedce0
parentFixed a minor bug in templates (when displaying list of articles). (diff)
downloadnewspipe-ade0eef9eb2e458f14b9a270d39b80239efbf9bc.tar.gz
newspipe-ade0eef9eb2e458f14b9a270d39b80239efbf9bc.tar.bz2
newspipe-ade0eef9eb2e458f14b9a270d39b80239efbf9bc.zip
Added share buttons.
-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 9174aea3..51f7c485 100644
--- a/pyaggr3g470r/templates/article.html
+++ b/pyaggr3g470r/templates/article.html
@@ -1,4 +1,8 @@
{% extends "layout.html" %}
+{% block head %}
+{{ super() }}
+<script src="https://apis.google.com/js/plusone.js"></script>
+{% endblock %}
{% block content %}
<div class="container">
<div class="jumbotron">
@@ -14,5 +18,11 @@
<div class="jumbotron">
{{ article.content|safe }}
</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>
+ <g:plusone size="standard" count="true" href="{{ article.link }}"></g:plusone>
+ </div>
</div><!-- /.container -->
{% endblock %}
bgstack15