diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-14 21:22:53 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-14 21:22:53 +0100 |
commit | 7569e79dcc647c54398753a66238ec32ff0a820d (patch) | |
tree | 0e81b4aac3b6e98ed091fee79a0f5290bfc9ea76 | |
parent | fixed layou of home page when a user has no feed (diff) | |
download | newspipe-7569e79dcc647c54398753a66238ec32ff0a820d.tar.gz newspipe-7569e79dcc647c54398753a66238ec32ff0a820d.tar.bz2 newspipe-7569e79dcc647c54398753a66238ec32ff0a820d.zip |
hide the feed column when a specific feed is selected
-rw-r--r-- | newspipe/templates/home.html | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/newspipe/templates/home.html b/newspipe/templates/home.html index 34149b5c..8264807c 100644 --- a/newspipe/templates/home.html +++ b/newspipe/templates/home.html @@ -101,7 +101,9 @@ <a href="{{ url_for('article.mark_as', new_value='read', feed_id=feed_id) }}"><i class="fa fa-check-square-o" aria-hidden="true" title="{{ _('Mark this feed as read') }}"></i></a> {% endif%} </th> - <th>{{ _('Feed') }}</th> + {% if not feed_id %} + <th>{{ _('Feed') }}</th> + {% endif %} <th>{{ _('Article') }}</th> <th>{{ _('Date') }}</th> </tr> @@ -123,11 +125,13 @@ {% if filter_ == 'all' %}</b>{% endif %} {% endif %} </td> - <td><a href="/article/redirect/{{ article.id}}" target="_blank">{{ article.source.title | safe }}</a></td> + {% if not feed_id %} + <td><a href="/article/redirect/{{ article.id}}" target="_blank">{{ article.source.title | safe }}</a></td> + {% endif %} <td {%if filter_ == 'all' and article.readed == False %}style='font-weight:bold'{% endif %}> <a href="/article/{{ article.id }}">{{ article.title | safe }}</a> </td> - <td class="date">{{ article.date | datetime }}</a></td> + <td class="date">{{ article.date | datetime(format='short') }}</a></td> </tr> {% endfor %} </tbody> |