From 2d7fcc610bb9f46b43cabe1fb3ff4a96cfd742f2 Mon Sep 17 00:00:00 2001 From: Richard Hitier Date: Thu, 4 Feb 2021 18:42:33 +0100 Subject: [PATCH] New base page embedds VERSION number --- app/templates/base_page.html | 34 ++++++++++++++++++++++++++++++++++ app/templates/index.html | 5 ++++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 app/templates/base_page.html diff --git a/app/templates/base_page.html b/app/templates/base_page.html new file mode 100644 index 0000000..ea95c13 --- /dev/null +++ b/app/templates/base_page.html @@ -0,0 +1,34 @@ + + + + + + +
+
+
+ + {% with messages = get_flashed_messages(with_categories=true) %} + {% if messages %} +
+ {% for level, message in messages %} + + {% endfor %} +
+ {% endif %} + {% endwith %} + +
+ + {% block content %}{% endblock %} + +
+
+ + + + + diff --git a/app/templates/index.html b/app/templates/index.html index 3b18e51..9f5fd79 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -1 +1,4 @@ -hello world +{% extends "base_page.html" %} +{% block content %} +

Plan de Charge

+{% endblock %} -- libgit2 0.21.2