]> git.deb.at Git - deb/packages.git/blobdiff - templates/html/search_contents.tmpl
search_contents.tmpl: Don't offer a link to the search with the same suite
[deb/packages.git] / templates / html / search_contents.tmpl
index e916f0593fd71204edcdf18017760995cf95c785..77836fec87bea076604d16068923c42564b4d5b9 100644 (file)
 
 <p>Search in other suite:
 [% FOREACH s IN all_suites %]
-[<a href="[% make_search_url('',"keywords=$keyword_esc",'suite',s) %]">[% s  %]</a>]
+       [% IF s != suite %]
+       [<a href="[% make_search_url('',"keywords=$keyword_esc",'suite',s) %]">[% s  %]</a>]
+       [% ELSE %]
+       [[% s %]]
+       [% END %]
 [% END %]
 
 [% UNLESS search_architectures.size == 1 || all_architectures.size == 1 %]
@@ -72,7 +76,7 @@
    END %]
 <p>You have searched for [% wording %] <em>[% keyword_enc %]</em> in [% suite_wording %], [% section_wording %], and [% arch_wording %].
 
-[% IF results %]
+[% IF results.size %]
 Found <strong>[% results.size %] results</strong>.
 
 [% IF too_many_hits %]
@@ -87,7 +91,7 @@ Please consider using a longer keyword or more keywords.</p>
        </colgroup>
 <tr>
        <th><a title="Sort results by filename" href="[% make_search_url('',"keywords=$keyword_esc&amp;sort_by=file") %]">File</a></th>
-       <th><a title="Sort results by package name" href="[% make_search_url('',"keywords=$keyword_esc&amp;sort_by=pkg") %]">Packages</th>
+       <th><a title="Sort results by package name" href="[% make_search_url('',"keywords=$keyword_esc&amp;sort_by=pkg") %]">Packages</a></th>
 </tr>
 [% FOREACH results %]
 [% file = html_encode(file);