aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-11-13 23:30:44 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-11-13 23:30:44 +0100
commit12b6d7ab50306ee485e871e51bc39816a6663971 (patch)
treed109a464a5e61e234f653a297182c9e1936f1b05
parentImproved search box. (diff)
downloadnewspipe-12b6d7ab50306ee485e871e51bc39816a6663971.tar.gz
newspipe-12b6d7ab50306ee485e871e51bc39816a6663971.tar.bz2
newspipe-12b6d7ab50306ee485e871e51bc39816a6663971.zip
Test for the /history page.
-rw-r--r--pyaggr3g470r/templates/layout.html2
-rw-r--r--pyaggr3g470r/views.py6
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
bgstack15