aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2018-03-31 15:51:39 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2018-03-31 15:51:39 +0200
commit9479b9abf4bc3525f48dfc61b1daffc90b3379a1 (patch)
treed0d97d06b6ad2e74bcb4a89b77065f6474079865
parentTypo. (diff)
downloadnewspipe-9479b9abf4bc3525f48dfc61b1daffc90b3379a1.tar.gz
newspipe-9479b9abf4bc3525f48dfc61b1daffc90b3379a1.tar.bz2
newspipe-9479b9abf4bc3525f48dfc61b1daffc90b3379a1.zip
Redirect the user to the feeds page when logged in.
-rw-r--r--src/web/templates/layout.html6
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") }}">🗞&nbsp;Newspipe</a>
+ {% if current_user.is_authenticated %}
+ <a class="navbar-brand" href="{{ url_for("feeds.feeds") }}">🗞&nbsp;Newspipe</a>
+ {% else %}
+ <a class="navbar-brand" href="{{ url_for("home") }}">🗞&nbsp;Newspipe</a>
+ {% endif %}
{% if head_titles %}
<p class="navbar-text" style="max-height: 20px; overflow: hidden">
{{ " - ".join(head_titles) }}
bgstack15