Mercurial > hg > nginx-site
diff xsls/body.xsls @ 598:1902d38f0b05
"editor" and "translator" in articles are now output regardless of
"author" presence. Modules can now have "translator" as well.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 20 Jul 2012 09:05:10 +0000 |
parents | 05761a8e38f6 |
children | 89a4e934d207 |
line wrap: on
line diff
--- a/xsls/body.xsls Thu Jul 19 15:12:34 2012 +0000 +++ b/xsls/body.xsls Fri Jul 20 09:05:10 2012 +0000 @@ -55,12 +55,14 @@ !!; - X:if "@author" { + X:if "@author or @editor or @translator" { <table width="100%"><tr><td align="right"> - !{document(concat($XML, '/i18n.xml')) - /i18n/text[@lang = $lang]/item[@id='author']} - X:text { } !{@author} <br/> + X:if "@author" { + !{document(concat($XML, '/i18n.xml')) + /i18n/text[@lang = $lang]/item[@id='author']} + X:text { } !{@author} <br/> + } X:if "@editor" { !{document(concat($XML, '/i18n.xml'))