aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views.py
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-10-13 14:56:36 +0200
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-10-13 14:56:36 +0200
commita1d62197d3efcc7e2e8c6a77d078b3a0a73e5185 (patch)
tree5a5bdf2cd4afda48c41e7172a149267890df42e2 /pyaggr3g470r/views.py
parentOptimizations in /home and /articles templates. (diff)
downloadnewspipe-a1d62197d3efcc7e2e8c6a77d078b3a0a73e5185.tar.gz
newspipe-a1d62197d3efcc7e2e8c6a77d078b3a0a73e5185.tar.bz2
newspipe-a1d62197d3efcc7e2e8c6a77d078b3a0a73e5185.zip
First implementation of /management page.
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r--pyaggr3g470r/views.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py
index 7d5eeb30..a1a2055f 100644
--- a/pyaggr3g470r/views.py
+++ b/pyaggr3g470r/views.py
@@ -61,4 +61,9 @@ def favorites():
if article.like:
favorites[feed.title].append(article)
- return render_template('favorites.html', favorites=favorites) \ No newline at end of file
+ return render_template('favorites.html', favorites=favorites)
+
+@app.route('/management/', methods=['GET'])
+def management():
+ nb_article = len(models.Article.objects())
+ return render_template('management.html', nb_article=nb_article) \ No newline at end of file
bgstack15