aboutsummaryrefslogtreecommitdiff
path: root/src/web/templates/article_pub.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/templates/article_pub.html')
-rw-r--r--src/web/templates/article_pub.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/web/templates/article_pub.html b/src/web/templates/article_pub.html
new file mode 100644
index 00000000..f9275217
--- /dev/null
+++ b/src/web/templates/article_pub.html
@@ -0,0 +1,24 @@
+{% extends "layout.html" %}
+{% block content %}
+<div class="container" data-article="{{ article.id }}">
+ <div class="well">
+ <h2><a href="{{ article.link }}" target="_blank">{{ article.title|safe }}</a></h2>
+ <h3>{{ _('from') }} <a href="/feed/{{ article.source.id }}">{{ article.source.title }}</a></h3>
+ <h6>{{ article.date | datetime }}</h6>
+ </div>
+ <div class="well">
+ {{ article.content | safe }}
+ </div>
+ <div class="well">
+ <a href="https://api.pinboard.in/v1/posts/add?url={{ article.link }}&description={{ article.title }}" rel="noreferrer" target="_blank">
+ <img src="{{ url_for('static', filename='img/pinboard.png') }}" title="{{ _('Share on') }} Pinboard" />
+ </a>
+ <a href="https://reddit.com/submit?url={{ article.link }}&title={{ article.title }}" rel="noreferrer" target="_blank">
+ <img src="{{ url_for('static', filename='img/reddit.png') }}" title="{{ _('Share on') }} reddit" />
+ </a>
+ <a href="https://twitter.com/intent/tweet?url={{ article.link }}&text={{ article.title }}" rel="noreferrer" target="_blank">
+ <img src="{{ url_for('static', filename='img/twitter.png') }}" title="{{ _('Share on') }} twitter" >
+ </a>
+ </div>
+</div><!-- /.container -->
+{% endblock %}
bgstack15