Browse Source

update base

Mr Duhaz 10 months ago
parent
commit
d1a04bc9d4
2 changed files with 8 additions and 1 deletions
  1. 1 1
      templates/base.html
  2. 7 0
      views.py

+ 1 - 1
templates/base.html

@@ -75,7 +75,7 @@
 		{% endif %}
 		</div>
 		<div class="pos-f-t d-lg-none justify-content-end">
-			<a class="navbar-brand" href="{% url 'core_index' %}"><i class="{{page.c_sitelogo}}"></i> {{page.c_sitename}} </a>
+			<a class="navbar-brand" href="{% url 'core_index' %}"><i class="{{page.c_sitelogo}}"></i> {{page.c_sitename}} </a>d
 		<div class="collapse" id="navbarToggleExternalContent">
 			<div class="p-3" style="background-color: {{page.c_bgcolor}};">
 				{% if page.p_menu_haut %}

+ 7 - 0
views.py

@@ -69,6 +69,11 @@ def get_data_value(name):
 			data.d_type = "txt"
 			data.d_variable = "True"
 			data.save()
+		elif name == "includ-right-panel":
+			data.d_titre = name
+			data.d_type = "txt"
+			data.d_variable = "None"
+			data.save()
 		else :
 			data.d_variable = "Blop"
 	return data.d_variable
@@ -96,6 +101,7 @@ def gen_page_base():
 	page.c_bgimage = get_data_value('background')
 	page.c_bgimagelogo = get_data_value('background-logo')
 	page.c_menulogin = get_data_value('login-menu')
+	page.c_includ_rp = get_data_value('includ-right-panel')
 
 	return page
 
@@ -119,6 +125,7 @@ def gen_page_sys(p_titre_slugify):
 	page.c_bgimage = get_data_value('background')
 	page.c_bgimagelogo = get_data_value('background-logo')
 	page.c_menulogin = get_data_value('login-menu')
+	page.c_includ_rp = get_data_value('includ-right-panel')
 	
 	return page