]> git.deb.at Git - deb/packages.git/blob - templates/html/homepage.tmpl
0f77b5cac8b74f7e833f013fbae2b10affe24433
[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 = [ 'etch', 'etch-m68k', 'etch-volatile', 'etch-backports',
8                    'lenny', 'lenny-volatile', 'lenny-backports', 'squeeze', 'sid' ]
9     version_numbers = { sarge => '3.1',
10                         etch  => '4.0',
11                         lenny => '5.0' }
12     current_release = 'lenny'
13     all_sections = [ 'main', 'contrib', 'non-free' ]
14     all_architectures = [ 'alpha', 'arm', 'armel', 'amd64', 'avr32', 'hppa', 'i386',
15                           'ia64', 'kfreebsd-amd64', 'kfreebsd-i386', 'mips',
16                           'mipsel', 'm68k', 'powerpc', 's390', 'sparc' ]
17 -%]
18
19 <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>
20
21 <p><em>[% g('Please contact <a href="mailto:%s">%s</a> if you encounter any problems!', admin.mail, admin.name) %]</em></p>
22
23 <h2>[% g('Browse through the lists of packages:') %]</h2>
24
25 <ul style="font-size:large">
26 [% FOREACH s IN all_suites %]
27 <li><a href="[% s %]/">[% s %]</a>
28 [% IF version_numbers.$s %]([% version_numbers.$s %])[% END %]</li>
29 [% END %]
30 </ul>
31
32 <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>
33
34 [% IF old_releases %]
35 <p>[% g('Old releases can be found at <a href="%s">%s</a>.', old_releases, old_releases) %]</p>
36 [% END %]
37
38 <h2>[% g('Search') %]</h2>
39
40 <h3>[% g('Search package directories') %]</h3>
41
42 <form method="GET" action="/search">
43 <label for="kw">[% g('Keyword:') %]</label>
44 <input type="text" size="30" name="keywords" id="kw">
45 <input type="submit" value="[% g('Search') %]"> <input type="reset" value="[% g('Reset') %]">
46 <br>
47 [% g('Search on:') %]
48 <input type="radio" name="searchon" value="names" id="onlynames" checked="checked">
49 <label for="onlynames">[% g('Package names only') %]</label>&nbsp;&nbsp;
50 <input type="radio" name="searchon" value="all" id="descs">
51 <label for="descs">[% g('Descriptions') %]</label>
52 <input type="radio" name="searchon" value="sourcenames" id="src">
53 <label for="src">[% g('Source package names') %]</label>
54 <br>
55 [% g('Only show exact matches:') %]
56 <input type="checkbox" name="exact" value="1">
57 <br>
58 Distribution:
59 <select name="suite">
60 [% FOREACH s IN all_suites %]
61   <option value="[% s %]" [% 'selected="selected"' IF s == current_release %]>[% s %]</option>
62 [% END %]
63   <option value="all">[% g('any') %]</option>
64 </select>
65 [% g('Section:') %]
66 <select name="section">
67 [% FOREACH s IN all_sections %]
68   <option value="[% s %]">[% s %]</option>
69 [% END %]
70   <option value="all" selected="selected">[% g('any') %]</option>
71 </select>
72 </form>
73 <p>[% g('There are shortcuts for some searches available:') %]</p>
74 <ul>
75       <li>[% g('<code>%s<var>name</var></code> for the search on package names.', packages_homepage_abs) %]</li>
76
77       <li>[% g('<code>%ssrc:<var>name</var></code> for the search on source package names.', packages_homepage_abs) %]</li>
78 </ul>
79 <hr>
80
81 <h3><a name="search_contents">[% g('Search the contents of packages') %]</a></h3>
82
83 <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>
84 <form method="GET" action="/search">
85 <input type="hidden" name="searchon" value="contents">
86
87 <label for="keyword">[% g('Keyword:') %]</label>
88 <input type="text" size="30" name="keywords" id="keyword"> &nbsp;
89
90 <input type="submit" value="[% g('Search') %]">
91 &nbsp;<input type="reset" value="[% g('Reset') %]">
92 <br>
93 [% g('Display:') %]
94 <br>
95 <input type="radio" name="mode" value="exactfilename" id="exactfilename" checked="checked">
96   <label for="exactfilename">[% g('packages that contain files named like this') %]</label>
97 <br>
98 <input type="radio" name="mode" value="" id="suffixpathname">
99   <label for="suffixpathname">[% g('packages that contain files whose names end with the keyword') %]</label>
100 <br>
101 <input type="radio" name="mode" value="filename" id="filename">
102   <label for="filename">[% g('packages that contain files whose names contain the keyword') %]</label>
103 <br>
104 <label for="distro">[% g('Distribution:') %]</label>
105
106 <select name="suite" id="distro">
107 [% FOREACH s IN all_suites %]
108   <option value="[% s %]" [% 'selected="selected"' IF s == current_release %]>[% s %]</option>
109 [% END %]
110 </select>
111 <label for="architecture">[% g('Architecture:') %]</label>
112 <select name="arch" id="architecture">
113 [% FOREACH a IN all_architectures %]
114   <option value="[% a %]">[% a %]</option>
115 [% END %]
116   <option value="any" selected="selected">[% g('any') %]</option>
117 </select>
118 </form>
119
120 [% PROCESS 'html/foot.tmpl' page_name=packages_homepage copyright.years = '1997 - 2009' %]