Mercurial > hg > nginx-site
comparison xsls/menu.xsls @ 648:6c0532e6982f
Visual improvements of the main menu.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Mon, 20 Aug 2012 13:06:47 +0000 |
parents | be54c443235a |
children | 095d1972dad9 |
comparison
equal
deleted
inserted
replaced
647:00972444baa7 | 648:6c0532e6982f |
---|---|
49 X:template = "menu/item[@year]" { | 49 X:template = "menu/item[@year]" { |
50 X:if "$YEAR or $LINK='/'" { | 50 X:if "$YEAR or $LINK='/'" { |
51 X:if "$YEAR=@year" { | 51 X:if "$YEAR=@year" { |
52 !{@year} <br/> | 52 !{@year} <br/> |
53 } else { | 53 } else { |
54 <a href="{@href}"> !{@year} </a> | 54 X:if "@href" { <a href="{@href}"> !{@year} </a> } |
55 <br/> | 55 <br/> |
56 } | 56 } |
57 } | 57 } |
58 } | 58 } |
59 | 59 |
63 X:if "@lang" { X:text { [} !{@lang} X:text {]}} | 63 X:if "@lang" { X:text { [} !{@lang} X:text {]}} |
64 <br/> | 64 <br/> |
65 } | 65 } |
66 | 66 |
67 | 67 |
68 X:template = "menu/item[not(@href)]" { | 68 X:template = "menu/item[not(@href) and not(@year)]" { |
69 !{ normalize-space(text()) } <br/> | 69 !{ normalize-space(text()) } <br/> |
70 } | 70 } |
71 | 71 |
72 } | 72 } |