From 90b1c051e0cb46a38951f8ca2ebe3e37059c2a39 Mon Sep 17 00:00:00 2001
From: Bryan Brancotte <bryan.brancotte@pasteur.fr>
Date: Fri, 10 May 2019 15:49:23 +0200
Subject: [PATCH] Ability to have a second part of the title floating on the
 right while not using float right

---
 basetheme_bootstrap/static/css/basetheme_bootstrap.css      | 6 ++++++
 .../templates/basetheme_bootstrap/base4.html                | 3 ++-
 setup.py                                                    | 2 +-
 3 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/basetheme_bootstrap/static/css/basetheme_bootstrap.css b/basetheme_bootstrap/static/css/basetheme_bootstrap.css
index 6c3603f..babdb3c 100644
--- a/basetheme_bootstrap/static/css/basetheme_bootstrap.css
+++ b/basetheme_bootstrap/static/css/basetheme_bootstrap.css
@@ -52,4 +52,10 @@
 
 .pull-right + .pull-right{
 margin-right:4px;
+}
+.content-page-title>*:first-child{
+    flex-grow: 1;
+}
+.content-page-title{
+    display:flex;
 }
\ No newline at end of file
diff --git a/basetheme_bootstrap/templates/basetheme_bootstrap/base4.html b/basetheme_bootstrap/templates/basetheme_bootstrap/base4.html
index 5c8efae..24934bf 100644
--- a/basetheme_bootstrap/templates/basetheme_bootstrap/base4.html
+++ b/basetheme_bootstrap/templates/basetheme_bootstrap/base4.html
@@ -77,8 +77,9 @@
             {% block whole_content_page_title %}
             <div class="pb-2 mt-4 mb-2 col-12">
                 {% block content_page_title %}
-                <div class="border-bottom">
+                <div class="border-bottom content-page-title">
                     <h1>{% block page_title %}{% endblock %}</h1>
+                    {% block page_title_right %}{% endblock %}
                 </div>
                 {% endblock %}
             </div>
diff --git a/setup.py b/setup.py
index 0702fd5..1198354 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ readme = open('README.rst').read()
 
 setup(
     name='django-basetheme-bootstrap',
-    version='0.0.6',
+    version='0.0.7',
     description='Django Basetheme Bootstrap',
     long_description=readme,
     author='Bryan Brancotte',
-- 
GitLab