]> git.deb.at Git - deb/packages.git/blob - templates/html/search.tmpl
The Big, the Fat and the Ugly commit ;)
[deb/packages.git] / templates / html / search.tmpl
1 [%- PROCESS 'config/archive_layout.tmpl' -%]
2 [%- PROCESS 'html/head.tmpl'
3    title_tag = 'Debian Package Search Results'
4    print_search_field = 'packages'
5    navigation = [ { name => 'Package Search Results' } ]
6 -%]
7
8 [%- PROCESS 'html/messages.tmpl' -%]
9
10 <div id="psearchres">
11 <p>Found <em>[% results %]</em> matching packages.</p>
12 [% FOREACH categories %]
13   [% "<h2>$name</h2>" IF name %]
14
15 [% FOREACH packages %]
16   <h3>Package [% pkg %]</h3>
17   <ul>
18   [% FOREACH s IN suites %]
19     <li><a class="resultlink" href="[% make_url(pkg,'','suite',s.suite) %]">[% s.suite %]</a>[% ' (' _ s.subsect _ ')' IF s.subsect %]: [% s.desc %]  [%- IF s.section %] [<strong class="pmarker">[% s.section %]</strong>][% END %]
20     [% FOREACH s.versions %]
21       <br>[% version %] [%- IF archive != main_archive %] [<strong class="pmarker">[% archive %]</strong>][% END %]: [% architectures.join(' ') %]
22     [% END %]
23     [% IF s.providers %]
24         <br>[% 'also ' IF s.versions.size > 0 %]provided by: [% FOREACH provider IN s.providers %]<a href="[% make_url(provider,'','suite',suite) %]">[% provider %]</a>[% ', ' UNLESS loop.last %][% END %]
25     [% END %]
26     </li>
27   [% END %]
28   </ul>
29 [% END %]
30
31 [% FOREACH src_packages %]
32   <h3>Source Package [% pkg %]</h3>
33   <ul>
34   [% FOREACH origins %]
35      [% origin = (archive == 'us') ? suite : "$suite/$archive" %]
36     <li><a class="resultlink" href="[% make_url(pkg,'','source',source,'suite',origin) %]">[% origin %]</a> ([% subsection %]): [% version %]
37       [%- IF section %] [<strong class="pmarker">[% section %]</strong>][% END %]
38       [%- IF real_archive %] [<strong class="pmarker">[% real_archive %]</strong>][% END %]
39     <br>Binary packages: <span class="binaries">[% FOREACH binary IN binaries %]<a href="[% make_url(binary,'','source',source,'suite',suite,'archive',archive) %]">[% binary %]</a>[% ', ' UNLESS loop.last %][% END %]</span>
40     </li>
41   [% END %]
42   </ul>
43 [% END %]
44
45 [% END %]
46
47 [% IF skipped %]
48   <p><a href="[% make_search_url('',"keywords=$keywords",'exact', 0) %]">[% skipped %]</a> results have not been displayed because you requested only exact matches.
49 [% END %]
50
51 </div>