Updated template
authorThierry Florac <tflorac@ulthar.net>
Sat, 21 Jul 2018 15:51:10 +0200
changeset 115 bcd8b2769552
parent 114 1bb409f4bd9f
child 116 b0d31081dc8f
Updated template
src/pyams_default_theme/features/header/skin/templates/simple-header.pt
--- a/src/pyams_default_theme/features/header/skin/templates/simple-header.pt	Fri Jul 20 13:00:03 2018 +0200
+++ b/src/pyams_default_theme/features/header/skin/templates/simple-header.pt	Sat Jul 21 15:51:10 2018 +0200
@@ -1,5 +1,6 @@
 <div class="header header-simple"
-	 tal:define="settings view.settings" i18n:domain="pyams_default_theme">
+	 tal:define="settings view.settings"
+	 tal:condition="settings is not None" i18n:domain="pyams_default_theme">
 	<tal:var replace="structure provider:pyams.banner" />
 	<ul class="nav nav-pills margin-bottom-20" role="tablist">
 		<tal:loop repeat="link settings.tabs.get_visible_items(request)">
@@ -8,8 +9,7 @@
 				<a tal:define="info view.get_link_info(link);
 							   href link.get_url(request);"
 				   tal:condition="href"
-				   tal:content="info.user_title"
-				   tal:attributes="href href">Link</a>
+				   href="${href}">${info.user_title}</a>
 			</li>
 		</tal:loop>
 	</ul>