From 57c65d6feb96239cc78626ed206de27e5c1f949c Mon Sep 17 00:00:00 2001 From: dakkar Date: Wed, 19 Aug 2009 15:33:59 +0200 Subject: classes in tags lists also added code to reST.xsl to actually propagate the classes --- templates/document-listing.tt | 15 ++++++++++++--- templates/reST.xsl | 32 ++++++++++++++++---------------- 2 files changed, 28 insertions(+), 19 deletions(-) (limited to 'templates') diff --git a/templates/document-listing.tt b/templates/document-listing.tt index 729e08c..9cf4775 100644 --- a/templates/document-listing.tt +++ b/templates/document-listing.tt @@ -1,3 +1,12 @@ -[% FOR doc IN tagged.$path %] -[% IF isLang(language,doc) %]* `<[% dstUriFor(doc) %]>`_[% END %] -[% END %] +[% docs = []; + FOR doc IN tagged.$path; + IF isLang(language,doc); + docs.push(doc); + END; + END -%] +[% IF docs.size > 0 %] +.. class:: doc-tag-list + +[% FOR doc IN docs %] +* `<[% dstUriFor(doc) %]>`_ +[% END; END %] diff --git a/templates/reST.xsl b/templates/reST.xsl index bd548af..141ec04 100644 --- a/templates/reST.xsl +++ b/templates/reST.xsl @@ -117,13 +117,13 @@ -
+
-
+
@@ -134,7 +134,7 @@ -
+
@@ -143,7 +143,7 @@ -

+

@@ -155,14 +155,14 @@ reStructuredText attribution (the information after the double-hyphens). --> -
+
-
- Source: - +
+ Source: +
@@ -198,7 +198,7 @@ the footnote appeared. --> - footnote + footnote footnote- @@ -227,16 +227,16 @@ -
+
-
+
-
  • +
  • -
    +
    -
    +
    -
    +
    - +
    -- cgit v1.2.3
    Option Description