diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-08-09 23:50:30 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-08-09 23:50:30 +0200 |
commit | e37a40b0cbc029e18226c1c35d2e0f3fb1ce8888 (patch) | |
tree | d503c807edb80460dc39afaa4da9ebf58ac2d8c6 /pyaggr3g470r/templates | |
parent | Updated target link to deploy pyAggr3g470r with the Heroku button. (diff) | |
download | newspipe-e37a40b0cbc029e18226c1c35d2e0f3fb1ce8888.tar.gz newspipe-e37a40b0cbc029e18226c1c35d2e0f3fb1ce8888.tar.bz2 newspipe-e37a40b0cbc029e18226c1c35d2e0f3fb1ce8888.zip |
When displaying all articles (unread + read) titles of unread articles are emphasized in bold.
Diffstat (limited to 'pyaggr3g470r/templates')
-rw-r--r-- | pyaggr3g470r/templates/home.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pyaggr3g470r/templates/home.html b/pyaggr3g470r/templates/home.html index 239a57fd..551b2d72 100644 --- a/pyaggr3g470r/templates/home.html +++ b/pyaggr3g470r/templates/home.html @@ -95,7 +95,11 @@ {% for article in articles %} <tr data-article="{{ article.id }}" data-feed="{{ article.feed_id }}"> <td><a href="/article/redirect/{{ article.id}}" target="_blank">{{ article.source.title|safe }}</a></td> - <td><a href="/article/{{ article.id }}">{{ article.title|safe }}</a></td> + <td> + {% if filter_ == 'all' and article.readed == False %}<b>{% endif %} + <a href="/article/{{ article.id }}">{{ article.title|safe }}</a> + {% if filter_ == 'all' and article.readed == False %}</b>{% endif %} + </td> <td class="date">{{ article.date|datetime }}</a></td> <td> <a href="#"><i class="glyphicon glyphicon-remove delete" title="{{ _('Delete this article') }}"></i></a> @@ -108,6 +112,7 @@ <a href="#"><i class="glyphicon glyphicon-unchecked readed" title="{{ _('Mark this article as unread') }}"></i></a> {% else %} <a href="#"><i class="glyphicon glyphicon-check readed" title="{{ _('Mark this article as read') }}"></i></a> + {% if filter_ == 'all' %}</b>{% endif %} {% endif %} </td> </tr> |