]> git.deb.at Git - deb/packages.git/blob - templates/html/homepage.tmpl
some more armhf related changes
[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 = [ 'lenny', 'lenny-volatile', 'lenny-backports', 'lenny-backports-sloppy', 'squeeze', 'squeeze-updates', 'squeeze-backports', 'wheezy', 'sid' ]
8     version_numbers = { sarge => '3.1',
9                         etch  => '4.0',
10                         lenny => '5.0',
11                         squeeze => '6.0' }
12     current_release = 'squeeze'
13     all_sections = [ 'main', 'contrib', 'non-free' ]
14     all_architectures = [   'alpha', 'arm', 'armel', 'armhf', 'amd64', 'avr32', 'hppa', 'i386',
15                             'ia64', 'kfreebsd-amd64', 'kfreebsd-i386', 'mips',
16                             'mipsel', 'm68k', 'powerpc', 'powerpcspe', 's390', 'sh4',
17                             'sparc', 'sparc64' ]
18 -%]
19
20 <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>
21
22 <p><em>[% g('Please contact <a href="mailto:%s">%s</a> if you encounter any problems!', admin.mail, admin.name) %]</em></p>
23
24 <h2>[% g('Browse through the lists of packages:') %]</h2>
25
26 <ul style="font-size:large">
27 [% FOREACH s IN all_suites %]
28 <li><a href="[% s %]/">[% s %]</a>
29 [% IF version_numbers.$s %]([% version_numbers.$s %])[% END %]</li>
30 [% END %]
31 </ul>
32
33 <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>
34
35 [% IF old_releases %]
36 <p>[% g('Old releases can be found at <a href="%s">%s</a>.', old_releases, old_releases) %]</p>
37 [% END %]
38
39 <h2>[% g('Search') %]</h2>
40
41 <h3>[% g('Search package directories') %]</h3>
42
43 <form method="GET" action="/search">
44 <p>
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 </p>
75 </form>
76 <p>[% g('There are shortcuts for some searches available:') %]</p>
77 <ul>
78       <li>[% g('<code>%s<var>name</var></code> for the search on package names.', packages_homepage_abs) %]</li>
79
80       <li>[% g('<code>%ssrc:<var>name</var></code> for the search on source package names.', packages_homepage_abs) %]</li>
81 </ul>
82 <hr>
83
84 <h3><a name="search_contents">[% g('Search the contents of packages') %]</a></h3>
85
86 <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>
87 <form method="GET" action="/search">
88 <p>
89 <input type="hidden" name="searchon" value="contents">
90
91 <label for="keyword">[% g('Keyword:') %]</label>
92 <input type="text" size="30" name="keywords" id="keyword"> &nbsp;
93
94 <input type="submit" value="[% g('Search') %]">
95 &nbsp;<input type="reset" value="[% g('Reset') %]">
96 <br>
97 [% g('Display:') %]
98 <br>
99 <input type="radio" name="mode" value="exactfilename" id="exactfilename" checked="checked">
100   <label for="exactfilename">[% g('packages that contain files named like this') %]</label>
101 <br>
102 <input type="radio" name="mode" value="" id="suffixpathname">
103   <label for="suffixpathname">[% g('packages that contain files whose names end with the keyword') %]</label>
104 <br>
105 <input type="radio" name="mode" value="filename" id="filename">
106   <label for="filename">[% g('packages that contain files whose names contain the keyword') %]</label>
107 <br>
108 <label for="distro">[% g('Distribution:') %]</label>
109
110 <select name="suite" id="distro">
111 [% FOREACH s IN all_suites %]
112   <option value="[% s %]" [% 'selected="selected"' IF s == current_release %]>[% s %]</option>
113 [% END %]
114 </select>
115 <label for="architecture">[% g('Architecture:') %]</label>
116 <select name="arch" id="architecture">
117 [% FOREACH a IN all_architectures %]
118   <option value="[% a %]">[% a %]</option>
119 [% END %]
120   <option value="any" selected="selected">[% g('any') %]</option>
121 </select>
122 </p>
123 </form>
124
125 [% PROCESS 'html/foot.tmpl' page_name=packages_homepage copyright.years = '1997 - 2010' %]