Renamed TALES extension
authorThierry Florac <thierry.florac@onf.fr>
Mon, 09 Jul 2018 13:43:31 +0200
changeset 72 fcb43af4eccd
parent 71 bfe52e72aa76
child 73 6eaae503e35d
Renamed TALES extension
src/pyams_thesaurus/zmi/templates/extract-tree.pt
src/pyams_thesaurus/zmi/templates/terms-tree.pt
--- a/src/pyams_thesaurus/zmi/templates/extract-tree.pt	Mon Jul 02 17:14:28 2018 +0200
+++ b/src/pyams_thesaurus/zmi/templates/extract-tree.pt	Mon Jul 09 13:43:31 2018 +0200
@@ -1,10 +1,10 @@
 <div class="tree"
-	 tal:attributes="data-ams-tree-context extension:absolute_url(context)">
+	 tal:attributes="data-ams-tree-context tales:absolute_url(context)">
 	<ul role="tree">
 		<li tal:repeat="node view.tree" role="treeitem" class="parent_li">
 			<span class="label label-success"
 				  tal:define="term node.context;
-							  url extension:absolute_url(term);"
+							  url tales:absolute_url(term);"
 				  tal:attributes="data-ams-url string:${url}/properties.html;
 								  class string:label label-success ${node.css_class};"
 				  data-toggle="modal">
--- a/src/pyams_thesaurus/zmi/templates/terms-tree.pt	Mon Jul 02 17:14:28 2018 +0200
+++ b/src/pyams_thesaurus/zmi/templates/terms-tree.pt	Mon Jul 09 13:43:31 2018 +0200
@@ -3,8 +3,8 @@
 </div>
 <div class="ams-widget" i18n:domain="pyams_thesaurus"
 	 data-ams-plugins="pyams_thesaurus"
-	 tal:attributes="data-ams-plugin-pyams_thesaurus-src extension:resource_path('pyams_thesaurus.zmi:pyams_thesaurus');
-					 data-ams-plugin-pyams_thesaurus-css extension:resource_path('pyams_thesaurus.zmi:pyams_thesaurus_css');">
+	 tal:attributes="data-ams-plugin-pyams_thesaurus-src tales:resource_path('pyams_thesaurus.zmi:pyams_thesaurus');
+					 data-ams-plugin-pyams_thesaurus-css tales:resource_path('pyams_thesaurus.zmi:pyams_thesaurus_css');">
 	<header>
 		<span class="widget-icon"><i class="fa fa-fw fa-tags"></i></span>
 		<h2>
@@ -39,7 +39,7 @@
 		<div class="clearfix"></div>
 		<div class="tree"
 			 tal:define="extracts view.extracts"
-			 tal:attributes="data-ams-tree-context extension:absolute_url(context)">
+			 tal:attributes="data-ams-tree-context tales:absolute_url(context)">
 			<ul role="tree">
 				<li tal:repeat="node view.tree" role="treeitem" class="parent_li">
 					<tal:loop repeat="extract reversed(extracts.values())">
@@ -53,7 +53,7 @@
 					</tal:loop>
 					<span class="label label-success"
 						  tal:define="term node.context;
-									  url extension:absolute_url(term);"
+									  url tales:absolute_url(term);"
 						  tal:attributes="data-ams-url string:${url}/properties.html;
 										  class string:label label-success ${node.css_class};"
 						  data-toggle="modal">