Mercurial > hg > nginx-site
diff xsls/news.xsls @ 129:523a80fc32b4
Fixed a fallout from switching to standard HTML.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 21 Oct 2011 14:00:34 +0000 |
parents | c7d2ce96298b |
children | 364a3ee4526f |
line wrap: on
line diff
--- a/xsls/news.xsls +++ b/xsls/news.xsls @@ -45,21 +45,25 @@ X:template = "event" { X:var year = { !{substring(../event[position()=1]/@date, 1, 4)} } X:var y = { !{substring(@date, 1, 4)} } - X:if "(not($YEAR) and ($year = $y or position() < 11)) or $YEAR=$y" { - <table width="100%"> + X:if "position() = 1" { + X:text disable-output-escaping="yes" { + <table class="news"> + } + } + X:if "(not($YEAR) and ($year = $y or position() < 11)) or $YEAR=$y" { <tr> - <td valign="top" align="right" width="15%"> + <td align="right"> <a name="{@date}" /> !{@date} X:text {  } </td> <td> !! "para"; </td> </tr> + } - <tr><td colspan="2"> - X:text disable-output-escaping="yes" {&nbsp;} - </td></tr> - - </table> + X:if "position() = last()" { + X:text disable-output-escaping="yes" { + </table> + } } }