diff options
author | dakkar <dakkar@thenautilus.net> | 2009-08-19 15:33:59 +0200 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2009-08-19 15:33:59 +0200 |
commit | 57c65d6feb96239cc78626ed206de27e5c1f949c (patch) | |
tree | bcbe321e2b9b196d26fa7dfef12762627cfee119 /templates/document-listing.tt | |
parent | general tags page (diff) | |
download | thenautilus-57c65d6feb96239cc78626ed206de27e5c1f949c.tar.gz thenautilus-57c65d6feb96239cc78626ed206de27e5c1f949c.tar.bz2 thenautilus-57c65d6feb96239cc78626ed206de27e5c1f949c.zip |
classes in tags lists
also added code to reST.xsl to actually propagate the classes
Diffstat (limited to 'templates/document-listing.tt')
-rw-r--r-- | templates/document-listing.tt | 15 |
1 files changed, 12 insertions, 3 deletions
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 %] |