diff xsls/content.xsls @ 778:cd73f6e9aaf3

Donation page refactored: multi-column layout, donated sums ranges.
author Maxim Konovalov <maxim@nginx.com>
date Mon, 10 Dec 2012 10:45:23 +0000
parents 9155b937f8c1
children ac9fa096b685
line wrap: on
line diff
--- a/xsls/content.xsls
+++ b/xsls/content.xsls
@@ -122,7 +122,15 @@ X:stylesheet {
     X:template = "table[not(@note) and @width]" {
         <table width="{@width}"> !!; </table>
     }
-    X:template = "table" { <table width="100%"> !!; </table> }
+    X:template = "table" {
+        <table width="100%">
+        X:if "@class" {
+            X:attribute "class" { !{@class} }
+        }
+        !!;
+        </table>
+    }
+
     X:template = "tr" { <tr> !!; </tr> }
     X:template = "td[@width]" { <td width="{@width}"> !!; </td> }
     X:template = "td" { <td> !!; </td> }