changeset 91:36f1994d7fa1

Made index alignment more natural.
author Ruslan Ermilov <ru@nginx.com>
date Fri, 14 Oct 2011 10:47:18 +0000
parents e4e9f7bc885f
children 4b0182b7b1e5
files xsls/body.xsls
diffstat 1 files changed, 9 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/xsls/body.xsls	Fri Oct 14 10:45:49 2011 +0000
+++ b/xsls/body.xsls	Fri Oct 14 10:47:18 2011 +0000
@@ -2,10 +2,14 @@
 
 X:template body (lang) {
 
-    X:variable ALIGN = {
+    X:variable MENU_ALIGN = {
         X:if "$lang = 'he'" { X:text {left} } else { X:text {right} }
     }
 
+    X:variable INDEX_ALIGN = {
+        X:if "$lang = 'he'" { X:text {right} } else { X:text {left} }
+    }
+
     <body>
     <table width="100%">
 
@@ -14,7 +18,7 @@
             !{@name | @title} X:if "$YEAR" { X:text{: } !{$YEAR} }
         </h3></center></td>
 
-        <td rowspan="2" align="{$ALIGN}" valign="top">
+        <td rowspan="2" align="{$MENU_ALIGN}" valign="top">
             <a href="http://nginx.org">
             <img src="/nginx.gif" alt="nginx" border="0"/>
             </a><br/>
@@ -30,14 +34,14 @@
 
     <tr><td valign="top">
 
-        <table width="100%"><tr><td align="{$ALIGN}">
+        <table width="100%"><tr><td align="{$INDEX_ALIGN}">
         X:if "section[@id]" {
             X:for-each "section[@id]" {
                 <a href="#{@id}"> !{@name} </a><br/>
                 X:if "@id = 'directives'" {
                     X:for-each "directive[@name]" {
-                        <a href="#{@name}"> !{@name} </a>
-                        X:text{&#160;&#160;&#160;&#160;&#160;}<br/>
+                        X:text{&#160;&#160;&#160;&#160;&#160;}
+                        <a href="#{@name}"> !{@name} </a><br/>
                     }
                 }
             }