--- 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>