diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2018-03-31 15:51:39 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2018-03-31 15:51:39 +0200 |
commit | 9479b9abf4bc3525f48dfc61b1daffc90b3379a1 (patch) | |
tree | d0d97d06b6ad2e74bcb4a89b77065f6474079865 /src/web/templates | |
parent | Typo. (diff) | |
download | newspipe-9479b9abf4bc3525f48dfc61b1daffc90b3379a1.tar.gz newspipe-9479b9abf4bc3525f48dfc61b1daffc90b3379a1.tar.bz2 newspipe-9479b9abf4bc3525f48dfc61b1daffc90b3379a1.zip |
Redirect the user to the feeds page when logged in.
Diffstat (limited to 'src/web/templates')
-rw-r--r-- | src/web/templates/layout.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/web/templates/layout.html b/src/web/templates/layout.html index 73f727c8..a9732230 100644 --- a/src/web/templates/layout.html +++ b/src/web/templates/layout.html @@ -31,7 +31,11 @@ <span class="icon-bar"></span> <span class="icon-bar"></span> </button> - <a class="navbar-brand" href="{{ url_for("home") }}">🗞 Newspipe</a> + {% if current_user.is_authenticated %} + <a class="navbar-brand" href="{{ url_for("feeds.feeds") }}">🗞 Newspipe</a> + {% else %} + <a class="navbar-brand" href="{{ url_for("home") }}">🗞 Newspipe</a> + {% endif %} {% if head_titles %} <p class="navbar-text" style="max-height: 20px; overflow: hidden"> {{ " - ".join(head_titles) }} |