Mercurial > hg > nginx-site
comparison xsls/body.xsls @ 91:36f1994d7fa1
Made index alignment more natural.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 14 Oct 2011 10:47:18 +0000 |
parents | 5a2dcd623666 |
children | 40eec261c2a6 |
comparison
equal
deleted
inserted
replaced
90:e4e9f7bc885f | 91:36f1994d7fa1 |
---|---|
1 X:stylesheet { | 1 X:stylesheet { |
2 | 2 |
3 X:template body (lang) { | 3 X:template body (lang) { |
4 | 4 |
5 X:variable ALIGN = { | 5 X:variable MENU_ALIGN = { |
6 X:if "$lang = 'he'" { X:text {left} } else { X:text {right} } | 6 X:if "$lang = 'he'" { X:text {left} } else { X:text {right} } |
7 } | |
8 | |
9 X:variable INDEX_ALIGN = { | |
10 X:if "$lang = 'he'" { X:text {right} } else { X:text {left} } | |
7 } | 11 } |
8 | 12 |
9 <body> | 13 <body> |
10 <table width="100%"> | 14 <table width="100%"> |
11 | 15 |
12 <tr> | 16 <tr> |
13 <td width="70%"><center><h3> | 17 <td width="70%"><center><h3> |
14 !{@name | @title} X:if "$YEAR" { X:text{: } !{$YEAR} } | 18 !{@name | @title} X:if "$YEAR" { X:text{: } !{$YEAR} } |
15 </h3></center></td> | 19 </h3></center></td> |
16 | 20 |
17 <td rowspan="2" align="{$ALIGN}" valign="top"> | 21 <td rowspan="2" align="{$MENU_ALIGN}" valign="top"> |
18 <a href="http://nginx.org"> | 22 <a href="http://nginx.org"> |
19 <img src="/nginx.gif" alt="nginx" border="0"/> | 23 <img src="/nginx.gif" alt="nginx" border="0"/> |
20 </a><br/> | 24 </a><br/> |
21 | 25 |
22 <br/> | 26 <br/> |
28 | 32 |
29 </tr> | 33 </tr> |
30 | 34 |
31 <tr><td valign="top"> | 35 <tr><td valign="top"> |
32 | 36 |
33 <table width="100%"><tr><td align="{$ALIGN}"> | 37 <table width="100%"><tr><td align="{$INDEX_ALIGN}"> |
34 X:if "section[@id]" { | 38 X:if "section[@id]" { |
35 X:for-each "section[@id]" { | 39 X:for-each "section[@id]" { |
36 <a href="#{@id}"> !{@name} </a><br/> | 40 <a href="#{@id}"> !{@name} </a><br/> |
37 X:if "@id = 'directives'" { | 41 X:if "@id = 'directives'" { |
38 X:for-each "directive[@name]" { | 42 X:for-each "directive[@name]" { |
39 <a href="#{@name}"> !{@name} </a> | 43 X:text{     } |
40 X:text{     }<br/> | 44 <a href="#{@name}"> !{@name} </a><br/> |
41 } | 45 } |
42 } | 46 } |
43 } | 47 } |
44 } else { | 48 } else { |
45 X:for-each "section[@name]" { | 49 X:for-each "section[@name]" { |