]> git.deb.at Git - deb/packages.git/blobdiff - templates/html/tag_index.tmpl
Use the debtags vocabulary to be able to show prettier tag names
[deb/packages.git] / templates / html / tag_index.tmpl
diff --git a/templates/html/tag_index.tmpl b/templates/html/tag_index.tmpl
new file mode 100644 (file)
index 0000000..df51e22
--- /dev/null
@@ -0,0 +1,23 @@
+[% PROCESS 'html/head.tmpl' 
+       title_tag = "Overview of available Debian Package Tags"
+       keywords = debtags
+       navigation = [  { name=>'About', url=>"/about/" },
+                       { name=>'Debtags' } ]
+%]
+<h1>Overview of available Debian Package Tags</h1>
+
+[% FOREACH facet IN facets %]
+       <h2 id="[% string2id(facet) %]">Facet: [% facet %]</h2>
+       <p class="pshortdesc">[% vocabulary.$facet.html_description.0 %]</p>
+       <p>[% vocabulary.$facet.html_description.1 %]
+
+       [% FOREACH tag IN tags_by_facet.$facet %]
+               [% '<dl class="ptaglist">' IF loop.first %]
+               <dt id="[% string2id(tag) %]">[% tag %]</dt>
+               <dd><p class="pshortdesc">[% vocabulary.$tag.html_description.0 %]
+                   <p>[% vocabulary.$tag.html_description.1 %]
+               </dd>
+               [% '</dl>' IF loop.last %]
+       [% END %]
+
+[% END %]