[Yanel-commits] rev 43934 - public/yanel/trunk/src/webapp/htdocs
guillaume at wyona.com
guillaume at wyona.com
Fri Jul 31 16:36:43 CEST 2009
Author: guillaume
Date: 2009-07-31 16:36:42 +0200 (Fri, 31 Jul 2009)
New Revision: 43934
Modified:
public/yanel/trunk/src/webapp/htdocs/html.xslt
Log:
On Yanel pages using the new styling the body title (e.g. the contents of the "h1" element)
should now always be displayed inside the top blue Yanel banner
instead of as a big unstyled heading (which eats too much space e.g. on policy screens).
The "h1" element is now automatically added there to keep some semantics,
and we should get rid of the table stuff, see bug 7095.
Issue: 6897
Modified: public/yanel/trunk/src/webapp/htdocs/html.xslt
===================================================================
--- public/yanel/trunk/src/webapp/htdocs/html.xslt 2009-07-31 13:45:52 UTC (rev 43933)
+++ public/yanel/trunk/src/webapp/htdocs/html.xslt 2009-07-31 14:36:42 UTC (rev 43934)
@@ -23,7 +23,9 @@
<body>
<table cellspacing="0" cellpadding="0" id="bodytable">
<tr>
- <td id="title"></td>
+ <td id="title">
+ <xsl:copy-of select="/xhtml:html/xhtml:body//xhtml:h1[1]"/>
+ </td>
<td id="logo">
<img src="{$yanel.back2realm}{$yanel.reservedPrefix}/yanel-img/yanel_header.png"/>
</td>
@@ -44,6 +46,8 @@
</html>
</xsl:template>
+ <xsl:template match="xhtml:h1"/>
+
<xsl:template match="xhtml:title">
<xsl:call-template name="yanel:add-page-title"/>
</xsl:template>
More information about the Yanel-commits
mailing list