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