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 --- src/tags/document.en.rest.tt | 2 ++ src/tags/document.it.rest.tt | 2 ++ templates/document-listing.tt | 15 ++++++++++++--- templates/reST.xsl | 32 ++++++++++++++++---------------- 4 files changed, 32 insertions(+), 19 deletions(-) diff --git a/src/tags/document.en.rest.tt b/src/tags/document.en.rest.tt index 5cdd1d3..7fd63b6 100644 --- a/src/tags/document.en.rest.tt +++ b/src/tags/document.en.rest.tt @@ -4,6 +4,8 @@ :CreationDate: 2009-08-19 12:55:42 :Id: tags +.. class:: tag-list + [% FOREACH tag IN tagged.keys.sort %] * `<[% dstUriFor("/tags/" _ tag _ "/") %]>`_ [% END %] diff --git a/src/tags/document.it.rest.tt b/src/tags/document.it.rest.tt index 7d8f144..1409e42 100644 --- a/src/tags/document.it.rest.tt +++ b/src/tags/document.it.rest.tt @@ -5,6 +5,8 @@ :CreationDate: 2009-08-19 12:55:42 :Id: tags +.. class:: tag-list + [% FOREACH tag IN tagged.keys.sort %] * `<[% dstUriFor("/tags/" _ tag _ "/") %]>`_ [% END %] 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