Renamed TALES extension
authorThierry Florac <thierry.florac@onf.fr>
Mon, 09 Jul 2018 13:43:15 +0200
changeset 370 165520cca3eb
parent 369 baf764fa893a
child 371 8961b40ba585
Renamed TALES extension
src/pyams_skin/interfaces/templates/fullpage-layout.pt
src/pyams_skin/interfaces/templates/fullpage-modal-layout.pt
src/pyams_skin/interfaces/templates/widget-layout.pt
src/pyams_skin/templates/header.pt
src/pyams_skin/templates/help.pt
src/pyams_skin/templates/table-empty.pt
src/pyams_skin/templates/table.pt
src/pyams_skin/viewlet/menu/menu-item.pt
src/pyams_skin/viewlet/search/site-search.pt
src/pyams_skin/viewlet/toolbar/action.pt
src/pyams_skin/viewlet/toolbar/menu-item.pt
src/pyams_skin/viewlet/toolbar/toolbar-item.pt
--- a/src/pyams_skin/interfaces/templates/fullpage-layout.pt	Fri Jul 06 08:00:15 2018 +0200
+++ b/src/pyams_skin/interfaces/templates/fullpage-layout.pt	Mon Jul 09 13:43:15 2018 +0200
@@ -1,21 +1,21 @@
 <!DOCTYPE html>
 <html lang="en" i18n:domain="pyams_skin"
-	  tal:define="config extension:back_configuration;
-				  zmi extension:zmi_configuration;"
+	  tal:define="config tales:back_configuration;
+				  zmi tales:zmi_configuration;"
 	  tal:attributes="lang request.locale_name">
 <head>
-	<tal:var replace="structure extension:metas" />
+	<tal:var replace="structure tales:metas" />
 
 	<title tal:attributes="data-ams-title-prefix config.get_title_prefix(request)"
 		   tal:content="view.title | context.title | config.title | nothing"></title>
 
-	<tal:if define="icon config.icon | nothing; url extension:absolute_url(icon);" condition="icon">
+	<tal:if define="icon config.icon | nothing; url tales:absolute_url(icon);" condition="icon">
 		<!-- Favorite icon -->
 		<link rel="shortcut icon" tal:attributes="href url" type="image/x-icon">
 		<link rel="icon" tal:attributes="href url" type="image/x-icon">
 	</tal:if>
 
-	<tal:var replace="extension:resources" />
+	<tal:var replace="tales:resources" />
 
 </head>
 <body tal:attributes="class zmi.body_css_class">
--- a/src/pyams_skin/interfaces/templates/fullpage-modal-layout.pt	Fri Jul 06 08:00:15 2018 +0200
+++ b/src/pyams_skin/interfaces/templates/fullpage-modal-layout.pt	Mon Jul 09 13:43:15 2018 +0200
@@ -1,21 +1,21 @@
 <!DOCTYPE html>
 <html lang="en" i18n:domain="pyams_skin"
-	  tal:define="config extension:back_configuration;
-				  zmi extension:zmi_configuration;"
+	  tal:define="config tales:back_configuration;
+				  zmi tales:zmi_configuration;"
 	  tal:attributes="lang request.locale_name">
 <head>
-	<tal:var replace="structure extension:metas" />
+	<tal:var replace="structure tales:metas" />
 
 	<title tal:attributes="data-ams-title-prefix config.get_title_prefix(request)"
 		   tal:content="view.title | context.title | config.title | nothing"></title>
 
-	<tal:if define="icon config.icon | nothing; url extension:absolute_url(icon);" condition="icon">
+	<tal:if define="icon config.icon | nothing; url tales:absolute_url(icon);" condition="icon">
 		<!-- Favorite icon -->
 		<link rel="shortcut icon" tal:attributes="href url" type="image/x-icon">
 		<link rel="icon" tal:attributes="href url" type="image/x-icon">
 	</tal:if>
 
-	<tal:var replace="extension:resources" />
+	<tal:var replace="tales:resources" />
 
 </head>
 <body tal:attributes="class zmi.body_css_class">
--- a/src/pyams_skin/interfaces/templates/widget-layout.pt	Fri Jul 06 08:00:15 2018 +0200
+++ b/src/pyams_skin/interfaces/templates/widget-layout.pt	Mon Jul 09 13:43:15 2018 +0200
@@ -1,7 +1,7 @@
 <tal:var content="structure provider:content_header" />
 <tal:var content="structure provider:content_help" />
 <div class="ams-widget" i18n:domain="onf_website"
-	 tal:attributes="data-ams-data extension:object_data(view)">
+	 tal:attributes="data-ams-data tales:object_data(view)">
 	<header>
 		<span tal:condition="view.widget_icon_class | nothing"
 			  class="widget-icon"><i tal:attributes="class view.widget_icon_class"></i>
--- a/src/pyams_skin/templates/header.pt	Fri Jul 06 08:00:15 2018 +0200
+++ b/src/pyams_skin/templates/header.pt	Mon Jul 09 13:43:15 2018 +0200
@@ -8,7 +8,7 @@
 						   data-ams-target header.back_target | default;">
 			<i class="fa fa-chevron-left padding-right-10"></i>
 		</a>
-		<tal:var define="config extension:back_configuration"
+		<tal:var define="config tales:back_configuration"
 				 condition="config.display_content_icon">
 			<i tal:attributes="class header.icon_class"></i>
 		</tal:var>
--- a/src/pyams_skin/templates/help.pt	Fri Jul 06 08:00:15 2018 +0200
+++ b/src/pyams_skin/templates/help.pt	Mon Jul 09 13:43:15 2018 +0200
@@ -2,6 +2,6 @@
 		condition="help">
 	<div tal:attributes="class string:margin-${help.outer_margin} help alert alert-block alert-${help.status} fade in">
 		<h4 class="alert-heading" tal:content="help.header"></h4>
-		<div tal:replace="structure extension:html(help)"></div>
+		<div tal:replace="structure tales:html(help)"></div>
 	</div>
 </tal:if>
--- a/src/pyams_skin/templates/table-empty.pt	Fri Jul 06 08:00:15 2018 +0200
+++ b/src/pyams_skin/templates/table-empty.pt	Mon Jul 09 13:43:15 2018 +0200
@@ -1,6 +1,6 @@
 <div class="ams-widget"
 	 tal:attributes="class view.widget_class | default;
-					 data-ams-data extension:object_data(view);">
+					 data-ams-data tales:object_data(view);">
 	<header tal:condition="not:getattr(view,'hide_header',False)">
 		<span tal:condition="view.widget_icon_class | nothing"
 			  class="widget-icon"><i tal:attributes="class view.widget_icon_class"></i>
--- a/src/pyams_skin/templates/table.pt	Fri Jul 06 08:00:15 2018 +0200
+++ b/src/pyams_skin/templates/table.pt	Mon Jul 09 13:43:15 2018 +0200
@@ -1,6 +1,6 @@
 <div class="ams-widget"
 	 tal:attributes="class view.widget_class | default;
-					 data-ams-data extension:object_data(view);">
+					 data-ams-data tales:object_data(view);">
 	<header tal:condition="not:getattr(view,'hide_header',False)">
 		<span tal:condition="view.widget_icon_class | nothing"
 			  class="widget-icon"><i tal:attributes="class view.widget_icon_class"></i>
--- a/src/pyams_skin/viewlet/menu/menu-item.pt	Fri Jul 06 08:00:15 2018 +0200
+++ b/src/pyams_skin/viewlet/menu/menu-item.pt	Mon Jul 09 13:43:15 2018 +0200
@@ -4,7 +4,7 @@
 					   target view.target;
 					   data-toggle 'modal' if view.modal_target else None;
 					   title view.label;
-					   data-ams-data extension:object_data(view);">
+					   data-ams-data tales:object_data(view);">
 		<i tal:condition="view.icon_class"
 		   tal:attributes="class string:fa fa-lg fa-fw ${view.icon_class}">
 			<em tal:condition="view.notice"
--- a/src/pyams_skin/viewlet/search/site-search.pt	Fri Jul 06 08:00:15 2018 +0200
+++ b/src/pyams_skin/viewlet/search/site-search.pt	Mon Jul 09 13:43:15 2018 +0200
@@ -1,5 +1,5 @@
 <form method="post" action="#search.html" class="header-search pull-right" data-async
-	  tal:define="zmi extension:zmi_configuration"
+	  tal:define="zmi tales:zmi_configuration"
 	  tal:attributes="action zmi.site_search_handler">
 	<input type="text" placeholder="Find reports and more" id="search-field" name="search-field"
 		   tal:attributes="placeholder i18n:zmi.site_search_placeholder">
--- a/src/pyams_skin/viewlet/toolbar/action.pt	Fri Jul 06 08:00:15 2018 +0200
+++ b/src/pyams_skin/viewlet/toolbar/action.pt	Mon Jul 09 13:43:15 2018 +0200
@@ -4,7 +4,7 @@
 						 data-toggle 'modal' if view.modal_target else None;
 						 data-ams-url view.get_url();
 						 data-ams-stop-propagation 'true' if view.modal_target else None;
-						 data-ams-data extension:object_data(view);">
+						 data-ams-data tales:object_data(view);">
 		<i tal:attributes="class view.label_css_class"></i>&nbsp;
 		<tal:var content="view.label" />
 	</div>
--- a/src/pyams_skin/viewlet/toolbar/menu-item.pt	Fri Jul 06 08:00:15 2018 +0200
+++ b/src/pyams_skin/viewlet/toolbar/menu-item.pt	Mon Jul 09 13:43:15 2018 +0200
@@ -4,7 +4,7 @@
 					   data-ams-target view.target | nothing;
 					   data-ams-stop-propagation 'true' if view.stop_propagation else None;
 					   data-toggle 'modal' if view.modal_target else None;
-					   data-ams-data extension:object_data(view);">
+					   data-ams-data tales:object_data(view);">
 		<i tal:attributes="class view.label_css_class"></i>&nbsp;
 		<tal:var content="view.label" />
 	</a>
--- a/src/pyams_skin/viewlet/toolbar/toolbar-item.pt	Fri Jul 06 08:00:15 2018 +0200
+++ b/src/pyams_skin/viewlet/toolbar/toolbar-item.pt	Mon Jul 09 13:43:15 2018 +0200
@@ -4,7 +4,7 @@
 				   data-ams-target view.target | nothing;
 				   data-ams-stop-propagation 'true' if view.stop_propagation else None;
 				   data-toggle 'modal' if view.modal_target else None;
-				   data-ams-data extension:object_data(view);">
+				   data-ams-data tales:object_data(view);">
 	<i tal:attributes="class string:${view.label_css_class} hint opaque align-base;
 					   data-ams-hint-gravity view.hint_gravity;
 					   data-ams-hint-html 'true' if view.label.startswith('<') else 'false';