src/pyams_skin/templates/header.pt
changeset 69 a361355b55c7
parent 41 c2adb9c9c4f0
child 88 8621c907c243
--- a/src/pyams_skin/templates/header.pt	Wed May 20 15:01:45 2015 +0200
+++ b/src/pyams_skin/templates/header.pt	Wed Jun 17 10:00:10 2015 +0200
@@ -1,8 +1,8 @@
 <tal:if define="header view.header"
-		condition="header">
+		condition="header" i18n:domain="pyams_skin">
 	<h1 class="page-title" tal:define="back_url header.back_url | nothing">
 		<a class="font-xs hint" data-ams-target="#content"
-		   title="Back to previous page"
+		   title="Back to previous page" i18n:attributes="title"
 		   tal:condition="back_url"
 		   tal:attributes="href back_url;
 						   data-ams-target header.back_target | default;">
@@ -10,9 +10,15 @@
 		</a>
 		<i tal:attributes="class header.icon_class"></i>
 		<tal:var content="header.title" />
+		<div tal:condition="header.title_badge"
+			 tal:attributes="class header.title_badge_class"
+			 tal:content="header.title_badge"></div>
 		<tal:if condition="header.subtitle">
 			<span><i class="fa fa-angle-right"></i>
 				<tal:var content="header.subtitle" />
+				<div tal:condition="header.subtitle_badge"
+					 tal:attributes="class header.subtitle_badge_class"
+					 tal:content="header.subtitle_badge"></div>
 			</span>
 		</tal:if>
 	</h1>