Include title prefix attribute
authorThierry Florac <thierry.florac@onf.fr>
Thu, 12 May 2016 10:39:15 +0200
changeset 135 419c021334c0
parent 134 d227e7037aa4
child 136 cdad4eadfd43
Include title prefix attribute
src/pyams_skin/templates/layout.pt
--- a/src/pyams_skin/templates/layout.pt	Thu May 12 10:38:47 2016 +0200
+++ b/src/pyams_skin/templates/layout.pt	Thu May 12 10:39:15 2016 +0200
@@ -8,7 +8,8 @@
 	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
 	<meta charset="utf-8">
 
-	<title tal:content="config.title"></title>
+	<title tal:attributes="data-ams-title-prefix config.get_title_prefix(request)"
+		   tal:content="config.title"></title>
 
 	<meta name="HandheldFriendly" content="True">
 	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">