diff options
author | Cédric Bonhomme <kimble.mandel+bitbucket@gmail.com> | 2014-06-12 07:23:48 +0200 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel+bitbucket@gmail.com> | 2014-06-12 07:23:48 +0200 |
commit | 71b0130c7f231d4f2a922f23ad02c03a074b2f12 (patch) | |
tree | 88226ddc308f24eb102cc9a88c0cbcfb9f1d2dfa /pyaggr3g470r/templates/article.html | |
parent | fixes #7 (diff) | |
parent | reimplementing the unread count in left menu (diff) | |
download | newspipe-71b0130c7f231d4f2a922f23ad02c03a074b2f12.tar.gz newspipe-71b0130c7f231d4f2a922f23ad02c03a074b2f12.tar.bz2 newspipe-71b0130c7f231d4f2a922f23ad02c03a074b2f12.zip |
Merged in jaesivsm/pyaggr3g470r/ui_tweak (pull request #3)
Redoing home page with a table a few less SQL queries
Diffstat (limited to 'pyaggr3g470r/templates/article.html')
-rw-r--r-- | pyaggr3g470r/templates/article.html | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/pyaggr3g470r/templates/article.html b/pyaggr3g470r/templates/article.html index 83e23b34..2dbdb8de 100644 --- a/pyaggr3g470r/templates/article.html +++ b/pyaggr3g470r/templates/article.html @@ -9,10 +9,17 @@ <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 %} <h6>{{ article.date | datetime }}</h6> </div> |