Updated tags template
authorThierry Florac <thierry.florac@onf.fr>
Mon, 26 Nov 2018 11:03:24 +0100
changeset 250 cea48573d9b6
parent 249 b75d74082044
child 251 cd3ac4329f32
Updated tags template
src/pyams_default_theme/viewlet/tag/templates/tags.pt
--- a/src/pyams_default_theme/viewlet/tag/templates/tags.pt	Fri Nov 23 15:27:10 2018 +0100
+++ b/src/pyams_default_theme/viewlet/tag/templates/tags.pt	Mon Nov 26 11:03:24 2018 +0100
@@ -1,12 +1,12 @@
 <div i18n:domain="pyams_default_theme"
 	 tal:define="target view.search_target">
 	<tal:loop repeat="tag view.tags">
-		<span class="label label-primary">
-			<a tal:omit-tag="target is None"
-			   tal:define="href tales:absolute_url(target)"
-			   href="${href}/++tag++${tag.label}">
-				${tag.alt or tag.label}
-			</a>
-		</span>
+		<a tal:omit-tag="target is None"
+		   tal:define="href tales:absolute_url(target)"
+		   href="${href}?tag=${tag.label}">
+			<span class="label label-primary">
+				#${tag.alt or tag.label}
+			</span>
+		</a>
 	</tal:loop>
 </div>
\ No newline at end of file