From 6dede725fce32d3fcc8f1dcdb730e2ef94f2ba3a Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Sat, 28 Mar 2015 16:59:52 -0400 Subject: add an empty articles section --- famille.py | 5 +++++ templates/articles/list.html | 6 ++++++ templates/layout.html | 8 ++++---- 3 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 templates/articles/list.html diff --git a/famille.py b/famille.py index d03b5ad..55fff38 100644 --- a/famille.py +++ b/famille.py @@ -205,6 +205,11 @@ def view_user(user_id): user = query_db('SELECT * FROM users WHERE id= ?', (user_id,), True) return render_template("user/show.html", user=user) +@app.route('/articles/') +@login_required +def articles(): + return render_template("articles/list.html") + @app.route('/user/edit/', methods=['GET', 'POST']) @login_required def edit_user(): diff --git a/templates/articles/list.html b/templates/articles/list.html new file mode 100644 index 0000000..e666cda --- /dev/null +++ b/templates/articles/list.html @@ -0,0 +1,6 @@ +{% extends 'layout.html' %} + +{% block content %} +

Vous trouverez bientôt ici des articles de qualité! +

+{% endblock %} diff --git a/templates/layout.html b/templates/layout.html index 0049fe1..6ac0a20 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -11,14 +11,14 @@ {% block body %} -