]> git.deb.at Git - deb/packages.git/blobdiff - templates/html/search_contents.tmpl
html/newpkg.tmpl: Expose mode=byage in UI
[deb/packages.git] / templates / html / search_contents.tmpl
index 7b794ac18d80c850b25b2c9d14b8db6464609b3c..7cfc54fa77846bc1e6d7934a33cddf279a874dd3 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 %]
@@ -53,7 +57,7 @@
 [% END %]
 
 [% IF search_architectures.size == 1 %]
-<p>Search in <a href="[% make_search_url('',"keywords=$keyword_esc",arch,'') %]">all architectures</a>
+<p>Search in <a href="[% make_search_url('',"keywords=$keyword_esc",'arch','any') %]">all architectures</a>
 [% END %]
 
 </div>
@@ -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);
@@ -121,3 +125,5 @@ Please consider using a longer keyword or more keywords.</p>
 <p id="psearchnoresult">Sorry, your search gave no results</p>
 
 [% END %]
+
+[%- PROCESS 'html/foot.tmpl' -%]