Removed static configuration and use ZMI configuration
authorThierry Florac <tflorac@ulthar.net>
Sun, 11 Mar 2018 11:14:30 +0100
changeset 46 7775ad2a6a21
parent 45 3e263b419a46
child 47 13132c55e03b
Removed static configuration and use ZMI configuration
src/pyams_zmi/interfaces/templates/admin-layout.pt
--- a/src/pyams_zmi/interfaces/templates/admin-layout.pt	Thu Mar 08 09:13:31 2018 +0100
+++ b/src/pyams_zmi/interfaces/templates/admin-layout.pt	Sun Mar 11 11:14:30 2018 +0100
@@ -1,7 +1,7 @@
 <!DOCTYPE html>
 <html lang="en" i18n:domain="pyams_skin"
 	  tal:define="config extension:back_configuration;
-				  static extension:static_configuration;
+				  zmi extension:zmi_configuration;
 				  anonymous request.principal.id == '__none__';"
 	  tal:attributes="lang request.locale_name">
 <head>
@@ -23,10 +23,10 @@
 	<!-- end javascript extensions -->
 
 </head>
-<body tal:attributes="class static.body_css_class">
+<body tal:attributes="class zmi.body_css_class">
 
 	<!-- Page header -->
-	<header id="header" tal:condition="static.include_header">
+	<header id="header" tal:condition="zmi.include_header">
 
 		<!-- Logo -->
 		<div id="logo-group">
@@ -41,7 +41,7 @@
 		<!-- end logo -->
 
 		<!-- projects drop-downs -->
-		<div id="top-links" tal:condition="static.include_top_links">
+		<div id="top-links" tal:condition="zmi.include_top_links">
 			<tal:div replace="structure provider:pyams.toplinks" />
 		</div>
 		<!-- end projects drop-downs -->
@@ -50,13 +50,13 @@
 		<div class="pull-right">
 
 			<!-- multiple langs dropdown -->
-			<ul class="header-dropdown-list hidden-xs" tal:condition="static.include_flags">
+			<ul class="header-dropdown-list hidden-xs" tal:condition="zmi.include_flags">
 				<li tal:content="structure provider:pyams.flags"></li>
 			</ul>
 			<!-- end multiple langs -->
 
 			<!-- collapse menu button -->
-			<div id="hide-menu" class="btn-header pull-right" tal:condition="static.include_menus">
+			<div id="hide-menu" class="btn-header pull-right" tal:condition="zmi.include_menus">
 				<span>
 					<a href="#" title="Hide menu" class="hint" i18n:attributes="title"
 					   data-ams-hint-gravity="ne"><i class="fa fa-bars"></i></a>
@@ -85,10 +85,10 @@
 			<!-- end user avatar -->
 
 			<tal:var define="shortcuts provider:pyams.shortcuts;
-							 display_shortcuts shortcuts and static.include_user_shortcuts"
+							 display_shortcuts shortcuts and zmi.include_user_shortcuts"
 					 condition="display_shortcuts">
 				<!-- user shortcuts -->
-				<div class="btn-header pull-right" tal:condition="static.include_menus">
+				<div class="btn-header pull-right" tal:condition="zmi.include_menus">
 					<span>
 						<a href="#" title="My shortcuts" id="show-shortcuts" class="hint" i18n:attributes="title"
 						   data-ams-hint-gravity="ne"><i class="fa fa-bookmark-o"></i></a>
@@ -96,18 +96,18 @@
 				</div>
 				<div id="shortcuts">
 					<tal:var content="structure shortcuts" />
-					<div tal:condition="static.version_location == 'shortcuts'" class="version">
-						<tal:var content="static.application_name" /> - version <tal:var content="static.version" />
+					<div tal:condition="zmi.version_location == 'shortcuts'" class="version">
+						<tal:var content="zmi.application_name" /> - version <tal:var content="zmi.version" />
 					</div>
 				</div>
 				<!-- end user shortcuts -->
 			</tal:var>
 
-			<tal:if condition="static.include_user_activity">
+			<tal:if condition="zmi.include_user_activity">
 				<tal:var define="activity provider:pyams.activity"
 						 condition="activity">
 					<!-- user notifications button -->
-					<div id="user-activity" class="btn-header pull-right" tal:condition="static.include_menus">
+					<div id="user-activity" class="btn-header pull-right" tal:condition="zmi.include_menus">
 						<span>
 							<a href="#" title="Notifications" class="activity-button hint" i18n:attributes="title"
 							   data-ams-hint-gravity="ne"><i class="fa fa-bell"></i></a>
@@ -123,13 +123,13 @@
 				</tal:var>
 			</tal:if>
 
-			<tal:if condition="static.include_mobile_search">
+			<tal:if condition="zmi.include_mobile_search">
 				<!-- search mobile button (this is hidden till mobile view port) -->
 				<tal:var content="structure provider:pyams.mobile_search" />
 				<!-- end search mobile button -->
 			</tal:if>
 
-			<tal:if condition="static.include_site_search">
+			<tal:if condition="zmi.include_site_search">
 				<!-- site search field -->
 				<tal:var content="structure provider:pyams.site_search" />
 				<!-- end site search field -->
@@ -144,18 +144,18 @@
 	<!-- Menus panel -->
 	<aside id="left-panel">
 
-		<tal:if condition="static.include_menus">
+		<tal:if condition="zmi.include_menus">
 			<!-- AJAX progress gear -->
 			<div id="ajax-gear"><i class="fa fa-2x fa-spin fa-gear"></i></div>
 			<!-- Navigation menus -->
-			<nav tal:attributes="data-ams-menu-accordion 'true' if static.accordion_menus else 'false'"
+			<nav tal:attributes="data-ams-menu-accordion 'true' if zmi.accordion_menus else 'false'"
 				 tal:content="structure provider:pyams.menus"></nav>
 			<span class="minifyme" style=""> <i class="fa fa-arrow-circle-left hit"></i> </span>
 		</tal:if>
 
-		<div tal:condition="static.version_location == 'menus'" class="version">
+		<div tal:condition="zmi.version_location == 'menus'" class="version">
 			<!-- Application version -->
-			<tal:var content="static.application_name" /> - version <tal:var content="static.version" />
+			<tal:var content="zmi.application_name" /> - version <tal:var content="zmi.version" />
 		</div>
 	</aside>
 	<!-- end menus panel -->
@@ -164,12 +164,12 @@
 	<div id="main" role="main">
 
 		<!-- Ribbon -->
-		<div id="ribbon" tal:condition="static.include_ribbon">
+		<div id="ribbon" tal:condition="zmi.include_ribbon">
 			<!-- Refresh button -->
 			<span class="ribbon-button-alignment">
 				<span id="refresh" class="btn btn-ribbon hint" data-ams-hint-gravity="w" data-ams-hint-html="true"
 					  title="&lt;span&gt;&lt;i class=&#39;text-warning fa fa-warning&#39;&gt;&lt;/i&gt; WARNING: this will reset all your widgets status!&lt;/span&gt;"
-					  tal:condition="static.include_reload_button" i18n:attributes="title">
+					  tal:condition="zmi.include_reload_button" i18n:attributes="title">
 					<i class="fa fa-refresh"></i>
 				</span>
 			</span>