r20286 - /scripts/qa/templates/pkginfo
dmn at users.alioth.debian.org
dmn at users.alioth.debian.org
Thu May 22 12:28:14 UTC 2008
Author: dmn
Date: Thu May 22 12:28:14 2008
New Revision: 20286
URL: http://svn.debian.org/wsvn/?sc=1&rev=20286
Log:
omit rows with no data
Modified:
scripts/qa/templates/pkginfo
Modified: scripts/qa/templates/pkginfo
URL: http://svn.debian.org/wsvn/scripts/qa/templates/pkginfo?rev=20286&op=diff
==============================================================================
--- scripts/qa/templates/pkginfo (original)
+++ scripts/qa/templates/pkginfo Thu May 22 12:28:14 2008
@@ -5,11 +5,13 @@
[% IF v.keys %]
<table>
[% FOREACH k IN v.keys %]
+ [% IF v.$k %]
<tr>
<td>${k|html}</td>
<td>[% INCLUDE show v=v.$k %]</td>
</tr>
[% END %]
+ [% END # FOREACJ v.keys %]
</table>
[% ELSIF (v.size > 1) %]
<table>
@@ -28,12 +30,14 @@
[% FOREACH s IN sections %]
<tr><th colspan="2">${s.title|html}</th></tr>
[% FOREACH data IN s.data %]
+ [% IF data.value %]
<tr>
<td>${data.key|html}</td>
<td>
[% INCLUDE show v=data.value %]
</td>
</tr>
+ [% END # IF data.value %]
[% END # FREACH data %]
[% END # FOREACH sections %]
</table>
More information about the Pkg-perl-cvs-commits
mailing list