diff options
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r-- | pyaggr3g470r/templates/layout.html | 2 | ||||
-rw-r--r-- | pyaggr3g470r/views.py | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/pyaggr3g470r/templates/layout.html b/pyaggr3g470r/templates/layout.html index 7ea4c65c..f649f2ca 100644 --- a/pyaggr3g470r/templates/layout.html +++ b/pyaggr3g470r/templates/layout.html @@ -50,7 +50,7 @@ <ul class="dropdown-menu"> <li><a href="/unread/">Unread</a></li> <li><a href="/favorites/">Favorites</a></li> - <li><a href="#services">History</a></li> + <li><a href="/history/">History</a></li> </ul> </li> <li><a href="/management/">Management</a></li> diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index 53172b16..a7c99c99 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -229,6 +229,12 @@ def management(): return render_template('management.html', form=form, \ nb_feeds=nb_feeds, nb_articles=nb_articles, nb_unread_articles=nb_unread_articles) +@app.route('/history/', methods=['GET']) +@login_required +def history(): + user = models.User.objects(email=g.user.email).first() + return render_template('history.html') + @app.route('/edit_feed/', methods=['GET', 'POST']) @app.route('/edit_feed/<feed_id>', methods=['GET', 'POST']) @login_required |