]> git.deb.at Git - deb/packages.git/blob - templates/html/homepage.tmpl
Merge branch 'archive-master' of git+ssh://git.debian.org/git/webwml/packages into...
[deb/packages.git] / templates / html / homepage.tmpl
1 [%- PROCESS 'html/head.tmpl' 
2         title_tag = g('%s Packages Search', organisation)
3         page_title = g('%s Packages Search', organisation)
4         keywords = g('Packages')
5 -%]
6 [%-
7     all_suites = [ 'bo', 'hamm', 'slink', 'potato', 'woody', 'sarge', 'etch' ]
8     version_numbers = { etch   => '4.0',
9                         sarge  => '3.1',
10                         woody  => '3.0',
11                         potato => '2.2',
12                         slink  => '2.1',
13                         hamm   => '2.0',
14                         bo     => '1.3.1'}
15     current_release = 'etch'
16     all_sections = [ 'main', 'contrib', 'non-free' ]
17     all_architectures = [ 'alpha', 'amd64', 'arm', 'hppa', 'i386', 'ia64',
18                           'mips', 'mipsel', 'powerpc', 's390', 'sparc' ]
19 -%]
20
21 <p>[% g('This site provides you with information about all the packages available in the <a href="%s">%s</a> Package archive.', project_homepage, organisation) %]</p>
22
23 <p><em>[% g('Please contact <a href="mailto:%s">%s</a> if you encounter any problems!', admin.mail, admin.name) %]</em></p>
24
25 <h2>[% g('Browse through the lists of packages:') %]</h2>
26
27 <ul style="font-size:large">
28 [% FOREACH s IN all_suites %]
29 <li><a href="[% s %]/">[% s %]</a>
30 [% IF version_numbers.$s %]([% version_numbers.$s %])[% END %]</li>
31 [% END %]
32 </ul>
33
34 <p>[% g('There is also a list of <a href="%s/main/newpkg">packages recently added to %s</a>.', all_suites.-1, all_suites.-1) %]</p>
35
36 [% IF old_releases %]
37 <p>[% g('Old releases can be found at <a href="%s">%s</a>.', old_releases, old_releases) %]</p>
38 [% END %]
39
40 <h2>[% g('Search') %]</h2>
41
42 <h3>[% g('Search package directories') %]</h3>
43
44 <form method="GET" action="/search">
45 <p>
46 <label for="kw">[% g('Keyword:') %]</label>
47 <input type="text" size="30" name="keywords" id="kw">
48 <input type="submit" value="[% g('Search') %]"> <input type="reset" value="[% g('Reset') %]">
49 <br>
50 [% g('Search on:') %]
51 <input type="radio" name="searchon" value="names" id="onlynames" checked="checked">
52 <label for="onlynames">[% g('Package names only') %]</label>&nbsp;&nbsp;
53 <input type="radio" name="searchon" value="all" id="descs">
54 <label for="descs">[% g('Descriptions') %]</label>
55 <input type="radio" name="searchon" value="sourcenames" id="src">
56 <label for="src">[% g('Source package names') %]</label>
57 <br>
58 [% g('Only show exact matches:') %]
59 <input type="checkbox" name="exact" value="1">
60 <br>
61 Distribution:
62 <select name="suite">
63 [% FOREACH s IN all_suites %]
64   <option value="[% s %]" [% 'selected="selected"' IF s == current_release %]>[% s %]</option>
65 [% END %]
66   <option value="all">[% g('any') %]</option>
67 </select>
68 [% g('Section:') %]
69 <select name="section">
70 [% FOREACH s IN all_sections %]
71   <option value="[% s %]">[% s %]</option>
72 [% END %]
73   <option value="all" selected="selected">[% g('any') %]</option>
74 </select>
75 </p>
76 </form>
77 <p>[% g('There are shortcuts for some searches available:') %]</p>
78 <ul>
79       <li>[% g('<code>%s<var>name</var></code> for the search on package names.', packages_homepage_abs) %]</li>
80
81       <li>[% g('<code>%ssrc:<var>name</var></code> for the search on source package names.', packages_homepage_abs) %]</li>
82 </ul>
83 <hr>
84
85 <h3><a name="search_contents">[% g('Search the contents of packages') %]</a></h3>
86
87 <p>[% g('This search engine allows you to search the contents of %s distributions for any files (or just parts of file names) that are part of packages. You can also get a full list of files in a given package.', organisation) %]<br>
88 <form method="GET" action="/search">
89 <p>
90 <input type="hidden" name="searchon" value="contents">
91
92 <label for="keyword">[% g('Keyword:') %]</label>
93 <input type="text" size="30" name="keywords" id="keyword"> &nbsp;
94
95 <input type="submit" value="[% g('Search') %]">
96 &nbsp;<input type="reset" value="[% g('Reset') %]">
97 <br>
98 [% g('Display:') %]
99 <br>
100 <input type="radio" name="mode" value="exactfilename" id="exactfilename" checked="checked">
101   <label for="exactfilename">[% g('packages that contain files named like this') %]</label>
102 <br>
103 <input type="radio" name="mode" value="" id="suffixpathname">
104   <label for="suffixpathname">[% g('packages that contain files whose names end with the keyword') %]</label>
105 <br>
106 <input type="radio" name="mode" value="filename" id="filename">
107   <label for="filename">[% g('packages that contain files whose names contain the keyword') %]</label>
108 <br>
109 <label for="distro">[% g('Distribution:') %]</label>
110
111 <select name="suite" id="distro">
112 [% FOREACH s IN all_suites %]
113   <option value="[% s %]" [% 'selected="selected"' IF s == current_release %]>[% s %]</option>
114 [% END %]
115 </select>
116 <label for="architecture">[% g('Architecture:') %]</label>
117 <select name="arch" id="architecture">
118 [% FOREACH a IN all_architectures %]
119   <option value="[% a %]">[% a %]</option>
120 [% END %]
121   <option value="any" selected="selected">[% g('any') %]</option>
122 </select>
123 </p>
124 </form>
125
126 [% PROCESS 'html/foot.tmpl' page_name=packages_homepage copyright.years = '1997 - 2010' %]