From 9b69e3f83cc018de41216cdbca29c1249910dd02 Mon Sep 17 00:00:00 2001
From: Bryan Brancotte <bryan.brancotte@pasteur.fr>
Date: Mon, 4 Nov 2019 12:02:50 +0100
Subject: [PATCH] introducing pre_title_header to help with multi branch
 environment

---
 .../templates/basetheme_bootstrap/basePasteur.html            | 1 +
 .../basetheme_bootstrap/pre_content_page_title.example.html   | 4 ++++
 setup.py                                                      | 2 +-
 3 files changed, 6 insertions(+), 1 deletion(-)
 create mode 100644 basetheme_bootstrap/templates/basetheme_bootstrap/pre_content_page_title.example.html

diff --git a/basetheme_bootstrap/templates/basetheme_bootstrap/basePasteur.html b/basetheme_bootstrap/templates/basetheme_bootstrap/basePasteur.html
index d81230e..e737299 100644
--- a/basetheme_bootstrap/templates/basetheme_bootstrap/basePasteur.html
+++ b/basetheme_bootstrap/templates/basetheme_bootstrap/basePasteur.html
@@ -84,6 +84,7 @@
 <main role="main" class="flex-shrink-0">
     <div class="{% block container-class %}container mb-4{% endblock %}">
         <div class="row">
+            {% include_if_exists "pre_title_header.html"|localize_template "basetheme_bootstrap/pre_content_page_title.example.html" %}
             {% block whole_content_page_title %}
             <div class="pb-2 mt-4 mb-2 col-12">
                 {% block content_page_title %}
diff --git a/basetheme_bootstrap/templates/basetheme_bootstrap/pre_content_page_title.example.html b/basetheme_bootstrap/templates/basetheme_bootstrap/pre_content_page_title.example.html
new file mode 100644
index 0000000..55ca448
--- /dev/null
+++ b/basetheme_bootstrap/templates/basetheme_bootstrap/pre_content_page_title.example.html
@@ -0,0 +1,4 @@
+<p class="col-12 mt-2 mb-0 alert alert-warning text-center">
+You can put a message in pre_content_page_title.html say for example: <span class="border">
+    You are running branch <code>toto</code>, any data changes made here are not to be kept.</span>. You also can create an empty file.
+</p>
\ No newline at end of file
diff --git a/setup.py b/setup.py
index 619dd46..d928b6a 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ readme = open('README.rst').read()
 
 setup(
     name='django-basetheme-bootstrap',
-    version='0.2.27',
+    version='0.2.28',
     description='Django Basetheme Bootstrap',
     long_description=readme,
     author='Bryan Brancotte',
-- 
GitLab