From: Frank Lichtenheld
Date: Thu, 12 Apr 2007 21:03:01 +0000 (+0200)
Subject: search.tmpl: Fix two bugs
X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=e32efe3b7d7d18a20869ddce071eefdaaa9895ee;p=deb%2Fpackages.git
search.tmpl: Fix two bugs
The subsection key was renamed from .subsect to .subsection at one point.
However the template was not updated.
Unset archive and architecture for links to binary packages.
---
diff --git a/templates/html/search.tmpl b/templates/html/search.tmpl
index 74171b2..16ca843 100644
--- a/templates/html/search.tmpl
+++ b/templates/html/search.tmpl
@@ -81,7 +81,7 @@ Please consider using a longer keyword or more keywords.
Package [% pkg %]
[% FOREACH s IN suites %]
- - [% s.suite %][% ' (' _ s.subsect _ ')' IF s.subsect %]: [% s.desc %] [%- IF s.section != main_section %] [[% s.section %]][% END %]
+
- [% s.suite %][% ' (' _ s.subsection _ ')' IF s.subsection %]: [% s.desc %] [%- IF s.section != main_section %] [[% s.section %]][% END %]
[% FOREACH s.versions %]
[% version %] [%- IF archive != main_archive %] [[% archive %]][% END %]: [% architectures.join(' ') %]
[% END %]
@@ -102,7 +102,7 @@ Please consider using a longer keyword or more keywords.
- [% origin %] ([% subsection %]): [% version %]
[%- IF section %] [[% section %]][% END %]
[%- IF real_archive %] [[% real_archive %]][% END %]
-
Binary packages: [% FOREACH binary IN binaries %][% binary %][% ', ' UNLESS loop.last %][% END %]
+
Binary packages: [% FOREACH binary IN binaries %][% binary %][% ', ' UNLESS loop.last %][% END %]
[% IF binaries.size > 10 %]
[% END %]