aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates/layout.html
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-10-30 23:44:56 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-10-30 23:44:56 +0100
commit594aec6929519399307c057a7bedfd448e7d26be (patch)
tree103d93d3210cbb250060cd61f8c95c7bd38d59bd /pyaggr3g470r/templates/layout.html
parentthis sort is enough fast (diff)
downloadnewspipe-594aec6929519399307c057a7bedfd448e7d26be.tar.gz
newspipe-594aec6929519399307c057a7bedfd448e7d26be.tar.bz2
newspipe-594aec6929519399307c057a7bedfd448e7d26be.zip
Added authentication with Flask-Login.
Diffstat (limited to 'pyaggr3g470r/templates/layout.html')
-rw-r--r--pyaggr3g470r/templates/layout.html15
1 files changed, 9 insertions, 6 deletions
diff --git a/pyaggr3g470r/templates/layout.html b/pyaggr3g470r/templates/layout.html
index c6d26e50..659c573c 100644
--- a/pyaggr3g470r/templates/layout.html
+++ b/pyaggr3g470r/templates/layout.html
@@ -38,12 +38,15 @@
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav">
- <li><a href="/fetch">Fetch</a></li>
- <li><a href="/management/">Management</a></li>
- <li><a href="#services">History</a></li>
- <li><a href="/favorites/">Favorites</a></li>
- <li><a href="/unread/">Unread</a></li>
- <li><a href="/about/">About</a></li>
+ {% if g.user.is_authenticated() %}
+ <li><a href="/fetch">Fetch</a></li>
+ <li><a href="/management/">Management</a></li>
+ <li><a href="#services">History</a></li>
+ <li><a href="/favorites/">Favorites</a></li>
+ <li><a href="/unread/">Unread</a></li>
+ <li><a href="/about/">About</a></li>
+ <li><a href="{{ url_for('logout') }}">Logout</a></li>
+ {% endif %}
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container -->
bgstack15