]> git.deb.at Git - deb/packages.git/blob - templates/html/homepage.tmpl
Further changes for etch archive
[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 = 'sarge'
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 <label for="kw">[% g('Keyword:') %]</label>
46 <input type="text" size="30" name="keywords" id="kw">
47 <input type="submit" value="[% g('Search') %]"> <input type="reset" value="[% g('Reset') %]">
48 <br>
49 [% g('Search on:') %]
50 <input type="radio" name="searchon" value="names" id="onlynames" checked="checked">
51 <label for="onlynames">[% g('Package names only') %]</label>&nbsp;&nbsp;
52 <input type="radio" name="searchon" value="all" id="descs">
53 <label for="descs">[% g('Descriptions') %]</label>
54 <input type="radio" name="searchon" value="sourcenames" id="src">
55 <label for="src">[% g('Source package names') %]</label>
56 <br>
57 [% g('Only show exact matches:') %]
58 <input type="checkbox" name="exact" value="1">
59 <br>
60 Distribution:
61 <select name="suite">
62 [% FOREACH s IN all_suites %]
63   <option value="[% s %]" [% 'selected="selected"' IF s == current_release %]>[% s %]</option>
64 [% END %]
65   <option value="all">[% g('any') %]</option>
66 </select>
67 [% g('Section:') %]
68 <select name="section">
69 [% FOREACH s IN all_sections %]
70   <option value="[% s %]">[% s %]</option>
71 [% END %]
72   <option value="all" selected="selected">[% g('any') %]</option>
73 </select>
74 </form>
75 <p>[% g('There are shortcuts for some searches available:') %]</p>
76 <ul>
77       <li>[% g('<code>%s<var>name</var></code> for the search on package names.', packages_homepage_abs) %]</li>
78
79       <li>[% g('<code>%ssrc:<var>name</var></code> for the search on source package names.', packages_homepage_abs) %]</li>
80 </ul>
81 <hr>
82
83 <h3><a name="search_contents">[% g('Search the contents of packages') %]</a></h3>
84
85 <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>
86 <form method="GET" action="/search">
87 <input type="hidden" name="searchon" value="contents">
88
89 <label for="keyword">[% g('Keyword:') %]</label>
90 <input type="text" size="30" name="keywords" id="keyword"> &nbsp;
91
92 <input type="submit" value="[% g('Search') %]">
93 &nbsp;<input type="reset" value="[% g('Reset') %]">
94 <br>
95 [% g('Display:') %]
96 <br>
97 <input type="radio" name="mode" value="exactfilename" id="exactfilename" checked="checked">
98   <label for="exactfilename">[% g('packages that contain files named like this') %]</label>
99 <br>
100 <input type="radio" name="mode" value="" id="suffixpathname">
101   <label for="suffixpathname">[% g('packages that contain files whose names end with the keyword') %]</label>
102 <br>
103 <input type="radio" name="mode" value="filename" id="filename">
104   <label for="filename">[% g('packages that contain files whose names contain the keyword') %]</label>
105 <br>
106 <label for="distro">[% g('Distribution:') %]</label>
107
108 <select name="suite" id="distro">
109 [% FOREACH s IN all_suites %]
110   <option value="[% s %]" [% 'selected="selected"' IF s == current_release %]>[% s %]</option>
111 [% END %]
112 </select>
113 <label for="architecture">[% g('Architecture:') %]</label>
114 <select name="arch" id="architecture">
115 [% FOREACH a IN all_architectures %]
116   <option value="[% a %]">[% a %]</option>
117 [% END %]
118   <option value="any" selected="selected">[% g('any') %]</option>
119 </select>
120 </form>
121
122 [% PROCESS 'html/foot.tmpl' page_name=packages_homepage copyright.years = '1997 - 2009' %]