aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates/article.html
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2014-06-11 23:55:06 +0200
committerFrançois Schmidts <francois.schmidts@gmail.com>2014-06-12 01:09:59 +0200
commit9731e3604fe360f662a042f3249bb39ddec6adf5 (patch)
tree14e166892e3e1995b8d4972abebd8bcf7fb07d55 /pyaggr3g470r/templates/article.html
parentadding the capacity to mark articles as unread (diff)
downloadnewspipe-9731e3604fe360f662a042f3249bb39ddec6adf5.tar.gz
newspipe-9731e3604fe360f662a042f3249bb39ddec6adf5.tar.bz2
newspipe-9731e3604fe360f662a042f3249bb39ddec6adf5.zip
redoing home page
Diffstat (limited to 'pyaggr3g470r/templates/article.html')
-rw-r--r--pyaggr3g470r/templates/article.html16
1 files changed, 11 insertions, 5 deletions
diff --git a/pyaggr3g470r/templates/article.html b/pyaggr3g470r/templates/article.html
index 1ee86948..2dbdb8de 100644
--- a/pyaggr3g470r/templates/article.html
+++ b/pyaggr3g470r/templates/article.html
@@ -9,12 +9,18 @@
<h2><a href="{{ article.link }}">{{ article.title|safe }}</a></h2>
<h3>{{ _('from') }} <a href="/feed/{{ article.source.id }}">{{ article.source.title }}</a></h3>
<a href="/delete/{{ article.id }}"><i class="glyphicon glyphicon-remove" title="{{ _('Delete this article') }}"></i></a>
- {% if article.like %}
- <a href="/like/{{ article.id }}"><i class="glyphicon glyphicon-star" title="{{ _('One of your favorites') }}"></i></a>
- {% else %}
- <a href="/like/{{ article.id }}"><i class="glyphicon glyphicon-star-empty" title="{{ _('Click if you like this article') }}"></i></a>
+ <a href="/like/{{ article.id }}">
+ {% if article.like %}
+ <i class="glyphicon glyphicon-star" title="{{ _('One of your favorites') }}"></i>
+ {% else %}
+ <i class="glyphicon glyphicon-star-empty" title="{{ _('Click if you like this article') }}"></i>
+ {% endif %}
+ </a>
+ {% if article.readed %}
+ <a href="/mark_as/unread/article/{{ article.id }}"><i class="glyphicon glyphicon-unchecked" title="{{ _('Mark this article as unread') }}"></i></a>
+ {% else %}
+ <a href="/mark_as/read/article/{{ article.id }}"><i class="glyphicon glyphicon-check" title="{{ _('Mark this article as read') }}"></i></a>
{% endif %}
- <a href="/mark_as/unread/article/{{ article.id }}"><i class="glyphicon glyphicon-unchecked" title="{{ _('Mark this article as unread') }}"></i></a>
<h6>{{ article.date | datetime }}</h6>
</div>
<div class="jumbotron">
bgstack15