]> git.deb.at Git - deb/packages.git/blob - templates/html/download.tmpl
c524423d7bee245729a8ff48bf0174e681f21c03
[deb/packages.git] / templates / html / download.tmpl
1 [%- PROCESS 'html/head.tmpl'
2    title_tag = g('Package Download Selection -- %s', filename.file)
3    description = desc
4    keywords = "$suite, $archive, $section, $subsection, $version"
5    navigation = [ { prefix=>g('Distribution:'), title=>g('Overview over this suite'), url=>make_url('/'), name=>suite },
6                   { prefix=>g('Package:'), url=>make_url(pkg,'','arch',undef), name=>pkg },
7                   { url=>make_url(pkg), name=>architecture },
8                   { name => g('Download') },
9                 ]
10 -%]
11 [%- PROCESS 'config/archive_layout.tmpl' -%]
12 [%- PROCESS 'config/mirrors.tmpl' -%]
13 [%- PROCESS 'config/architectures.tmpl' -%]
14 [%- PROCESS 'html/messages.tmpl' -%]
15
16 [% IF architecture != 'all' %]
17 <h2>[% g('Download Page for <kbd>%s</kbd> on %s machines', filename.file, architectures.$architecture) %]</h2>
18 [% ELSE %]
19 <h2>[% g('Download Page for <kbd>%s</kbd>', filename.file) %]</h2>
20 [% END %]
21
22 <div class="pconstantnag">
23 <p>[% g('If you are running %s, it is strongly suggested to use a package manager like <a href="%s">aptitude</a> or <a href="%s">synaptic</a> to download and install packages, instead of doing so manually via this website.',
24         organisation, make_url('aptitude','','arch',''), make_url('synaptic','','arch','')) %]</p>
25 <p>[% g('You should be able to use any of the listed mirrors by adding a line to your <kbd>/etc/apt/sources.list</kbd> like this:') %]</p>
26 [% IF archive == "volatile" %]
27 <pre>
28 deb http://<em>[% mirrors.$archive.europa.0 %]</em> [% suite.replace('-','/') %] main [% section IF section != main_section %]
29 </pre>
30 <p>[% g('Replacing <em>%s</em> with the mirror in question.', mirrors.$archive.europa.0) %]
31 [% ELSIF archive == "security" %]
32 <pre>
33 deb [% 'http://' _ security_mirror_url %] [% suite _ security_suite_suffix %] main [% section IF section != main_section %]
34 </pre>
35 [% ELSE %]
36 <pre>
37 deb http://<em>[% mirrors.$archive.europa.0 %]</em> [% suite %] main [% section IF section != main_section %]
38 </pre>
39 <p>[% g('Replacing <em>%s</em> with the mirror in question.', mirrors.$archive.europa.0) %]
40 [%- END %]
41 [% IF suite == "experimental" %]
42 <h2>[% g('Experimental package') %]</h2>
43 <p>[% g('Warning: This package is from the <strong>experimental</strong> distribution. That means it is likely unstable or buggy, and it may even cause data loss. Please be sure to consult the changelog and other possible documentation before using it.') %]</p>
44 [% END %]
45 [% IF subsection == "debian-installer" %]
46 <h2>[% g('debian-installer udeb package') %]</h2>
47 <p>[% g('Warning: This package is intended for the use in building <a href="http://www.debian.org/devel/debian-installer">debian-installer</a> images only. Do not install it on a normal %s system.', organisation) %]</p>
48 [% END %]
49 </div>
50
51 [%- SET a = mirrors.$archive -%]
52
53 [% IF archive != 'security' %]
54   <p>[% g('You can download the requested file from the <tt>%s</tt> subdirectory at any of these sites:',
55         filename.directory) %]</p>
56   <div class="cardleft">
57   [% FOREACH continent IN [ 'north_america', 'south_america', 'asia', 'africa' ] %]
58     [% IF a.$continent %]
59         <p><em>[% continents.$continent %]</em></p>
60         <ul>
61         [% FOREACH m IN a.$continent %]
62           <li><a href="http://[% m %]/[% filename.full %]">[% m %]</a></li>
63         [% END %]
64         </ul>
65     [% END %]
66   [% END %]
67   </div><div class="cardright">
68   [% FOREACH continent IN [ 'europa','australia' ] %]
69     [% IF a.$continent %]
70         <p><em>[% continents.$continent %]</em></p>
71         <ul>
72         [% FOREACH m IN a.$continent %]
73           <li><a href="http://[% m %]/[% filename.full %]">[% m %]</a></li>
74         [% END %]
75         </ul>
76     [% END %]
77   [% END %]
78   </div>
79 [% ELSE %]
80 <p>[% g('You can download the requested file from the <tt>%s</tt> subdirectory at:', filename.directory) %]</p>
81 <ul><li><a href="http://[% security_mirror_url %]/[% filename.full %]">[% security_mirror_url %]</a></li></ul>
82 <p>[% g('%s security updates are officially distributed only via <tt>%s</tt>.',
83         organisation, security_mirror) %]</p>
84 [% END %]
85
86 <div id="pdownloadnotes">
87
88 [% IF a.mirror_list %]
89 <p style="clear:both">[% g('If none of the above sites are fast enough for you, please see our <a href="%s">complete mirror list</a>.', a.mirror_list ) %]</p>
90 [% END %]
91
92 [% IF a.unofficial_port %]
93 [% SET port = a.unofficial_port.$architecture %]
94 [% IF port.url_name;
95    SET port.url = ports_url _ port.url_name _ '/';
96    END -%]
97 <p style="clear:both">[% g('Note that %s is not officially included in the %s archive yet, but the %s porter group keeps their archive in sync with the official archive as close as possible. See the <a href="%s">%s ports page</a> for current information.',
98         port.name, organisation, port.name, port.url, port.name) %]</p>
99 [% END %]
100
101 <p>[% g('Note that in some browsers you will need to tell your browser you want the file saved to a file. For example, in Firefox or Mozilla, you should hold the Shift key when you click on the URL.') %]</p>
102
103 </div>
104
105 <h3>[% g('More information on <kbd>%s</kbd>:', filename.file) %]</h3>
106 <table id="pdownloadmeta">
107 <tr><th>[% g('Exact Size') %]</th>      <td class="size">[% g('%s Byte (%s %s)', size, num.format_number(pkgsize,1), pkgsize_unit) %]</td>
108 <tr><th>[% g('MD5 checksum') %]</th>    <td><tt>[% md5sum %]</tt></td>
109 <tr><th>[% g('SHA1 checksum') %]</th>   <td><tt>[% sha1 || g('Not Available') %]</tt></td>
110 <tr><th>[% g('SHA256 checksum') %]</th> <td><tt>[% sha256  || g('Not Available') %]</tt></td>
111 </table>
112
113 [%- PROCESS 'html/foot.tmpl' -%]