]> git.deb.at Git - deb/packages.git/blob - templates/html/show.tmpl
Merge branch 'master' of ssh://source/srv/source.djpig.de/git/packages into ubuntu...
[deb/packages.git] / templates / html / show.tmpl
1 [% PROCESS 'config/archive_layout.tmpl' %]
2 [% PROCESS 'config/mirrors.tmpl' %]
3 [%- known_vcs = [ [ 'cvs', 'CVS', 'cvs' ],
4                 [ 'svn', 'Subversion', 'subversion' ],
5                 [ 'bzr', 'bzr', 'bzr' ],
6                 [ 'darcs', 'Darcs', 'darcs' ],
7                 [ 'arch', 'arch', 'tla' ],
8                 [ 'git', 'Git', 'git-core' ],
9                 [ 'hg', 'Hg', 'mercurial' ], ];
10    vcs_link = page.get_newest("vcs-browser");
11 -%]
12 [%- suite_name = suite;
13     SET suite_name = suite_name _ ' (' _ suite_aliases.$suite _ ')' IF suite_aliases.$suite;
14     nav_arr = [ { prefix=>g('Distribution:'), title=>g('Overview over this suite'), url=>make_url('/','','source',''), name=>suite_name }, ];
15     nav_arr.push( { title =>g('Source packages'), url=>make_url('/'), name=>g('Source') } ) IF is_source;
16     nav_arr.push( { prefix=>g('Section:'), title=>g('All packages in this section'), url=>make_url("$subsection/"), name=>subsection } );
17     nav_arr.push( { prefix=>g('Package:'), name=>pkg } ); -%]
18 [% desclang = 'en';
19    SET desclang = po_lang IF desc.$po_lang.long;
20    SET desclang = ddtp_lang IF desc.$ddtp_lang.long %]
21 [%- PROCESS 'html/head.tmpl'
22    title_tag = is_source ? g('Details of source package %s in %s', pkg, suite)
23                          : g('Details of package %s in %s', pkg, suite)
24    description = desc.$desclang.short
25    keywords = "$suite, $archive, $section, $subsection, $version"
26    print_search_field = 'packages'
27    search_field_values = { 
28                           searchon => is_source ? 'sourcenames' : 'names',
29                          }
30   navigation = nav_arr
31 -%]
32 <!-- show.tmpl -->
33 [% PROCESS 'html/util.inc' %]
34 [% FOREACH s IN suites %]
35    [% '<div id="pothers">' IF loop.first %]
36    [%- IF s == suite -%]
37      [% PROCESS menuitem name=s url='' %]
38    [%- ELSE -%]
39      [% PROCESS menuitem name=s url=make_url(pkg,'','suite',s) %]
40    [%- END -%]
41    [%- '</div>' IF loop.last -%]
42 [% END %]
43
44 [% IF src %]
45 <div id="psource">
46 [% PROCESS menuitem prefix=g('Source:') title=g('Source package building this package') url=make_url(src.pkg,'','source','source') name=src.pkg %]
47 </div>
48 [% END %]
49
50 [%- PROCESS 'html/messages.tmpl' -%]
51
52 [% IF is_virtual %]
53 <h1>[% g('Virtual Package: %s', pkg) %]
54 [% ELSIF is_source %]
55 <h1>[% g('Source Package: %s (%s)', pkg, version) %]
56 [% ELSE %]
57 <h1>[% g('Package: %s (%s)', pkg, versions.short) %]
58 [% END %]
59 [%- PROCESS marker text=archive IF archive && archive != main_archive %]
60 [%- PROCESS marker text=section IF section && section != main_section %]
61 [%- PROCESS marker text=g('essential') IF page.get_newest('essential') == 'yes' %]</h1>
62
63 [% UNLESS is_virtual %]
64 <div id="pmoreinfo">
65 <h2>[% g('Links for %s', pkg) %]</h2>
66 <h3>[% g('Debian Resources:') %]</h3>
67 <ul>
68 <li><a href="[% launchpad_url _ (is_source ? pkg : src.pkg) _ '/+bugs' %]">[% g('Bug Reports') %]</a></li>
69
70 [% IF files && (!archive or archive == main_archive or archive == 'security') %]
71 <li><a href="[% changelogs_url _ files.changelog.path %]">[% g('%s Changelog', organisation) %]</a></li>
72 <li><a href="[% changelogs_url _ files.copyright.path %]">[% g('Copyright File') %]</a></li>
73 [% END %]
74
75 [% IF vcs_link %]
76 <li><a href="[% vcs_link %]" class="pvcslink">[% g('Debian Source Repository') %]</a>
77 [%- FOREACH vcs IN known_vcs;
78         vcs_id = vcs.0; vcs_name = vcs.1; vcs_pkg = vcs.2;
79         vcs_info = page.get_newest("vcs-$vcs_id");
80         SET vcs_info = page.get_newest("x-vcs-$vcs_id") UNLESS vcs_info;
81    IF vcs_info %]
82  (<a href="[% vcs_info %]" class="pvcslink">[% vcs_name %]</a>)
83 [% END %]
84 </li>
85 [% END; END %]
86
87 </ul>
88
89 [% IF src %]
90   <p>[% g('Download Source Package <a href="%s">%s</a>:', src.url, src.pkg) %]
91   [% FOREACH src.downloads %]
92     [% '<ul>' IF loop.first %]
93     <li><a href="[% server _ path %]">[[% name %]]</a></li>
94     [% '</ul>' IF loop.last %]
95   [% END %]
96   [% IF src.downloads.size == 0 %]
97   [% g('Not found') %]
98   [% END %]
99 [% END %]
100
101 [% IF maintainers.size == 1 -%]
102   <h3>[% g('Maintainer:') %]</h3>
103 [%- ELSE -%]
104   <h3>[% g('Maintainers:') %]</h3>
105 [%- END %]
106 [%- FOREACH maintainers;
107   mailarchiveurl = '';
108   IF (matches = mail.match('^(.*)@lists\.debian\.org$'));
109         mailarchiveurl = 'http://lists.debian.org/' _ matches.0 _ '/';
110   ELSIF (matches = mail.match('^(.*)@lists\.alioth\.debian\.org$'));
111         mailarchiveurl = 'http://lists.alioth.debian.org/pipermail/' _ matches.0 _ '/';
112   END -%]
113   [%- '<ul>' IF loop.first -%]
114         <li><a href="mailto:[% mail %]">[% name | html %]</a>
115         [%- IF mailarchiveurl %](<a href="[% mailarchiveurl %]" title="[% g('Archive of the Maintainer Mailinglist') %]">[% g('Mail Archive') %]</a>)[% END %]
116         </li>
117   [%- '</ul>' IF loop.last -%]
118 [%- END -%]
119
120 [% url = page.get_newest('url');
121    SET url = page.get_newest('homepage') IF page.get_newest('homepage');
122    IF url %]
123 <h3>[% g('External Resources:') %]</h3>
124 <ul>
125 <li><a href="[% url | uri %]">[% g('Homepage') %]</a> [[% extract_host(url) | html %]]</li>
126 </ul>
127 [% END %]
128
129 [% FOREACH sim IN similar %]
130         [% IF loop.first %]
131         <h3>[% g('Similar packages:') %]</h3>
132         <ul>
133         [% END %]
134         <li><a href="/[% sim %]">[% sim %]</a></li>
135         [% '</ul>' IF loop.last %]
136 [% END %]
137
138 </div> <!-- end pmoreinfo -->
139 [% END %]
140
141 [% IF suite == "experimental" || subsection == "debian-installer" %]
142 <div class="pconstantnag">
143 [% IF suite == "experimental" %]
144 [% changelog_link = 'changelog';
145    changelog_link = "$changelogs_url$files.changelog.path" %] 
146 <h2>[% g('Experimental package') %]</h2>
147 <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 <a href="%s">changelog</a> and other possible documentation before using it.',
148         changelog_link) %]</p>
149 [% END %]
150 [% IF subsection == "debian-installer" %]
151 <h2>[% g('debian-installer udeb package') %]</h2>
152 <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.',
153         organisation ) %]</p>
154 [% END %]
155 </div>
156 [% END %]
157
158 <div id="ptablist">
159 </div>
160
161 [% IF desc %]
162 <div id="pdesctab">
163 [% UNLESS is_virtual %]
164 <div id="pdesc" [% "lang=\"$desclang\"" IF desclang != po_lang %]>
165         [% IF desc.$desclang.short %]
166         <h2>[% desc.$desclang.short %]</h2>
167         <p>[% desc.$desclang.long %]
168         [% END %]
169 [% ELSE %]
170 <div id="pdesc">
171         <p>[% g('This is a <em>virtual package</em>. See the <a href="%s">Debian policy</a> for a <a href="%sch-binary.html#s-virtual_pkg">definition of virtual packages</a>.',
172                 policy_url, policy_url) %]</p>
173 [% END %]
174 </div> <!-- end pdesc -->
175
176 [% FOREACH tag IN tags %]
177   [% IF loop.first -%]
178     <div id="ptags"><p>
179     <a href="[% tags_url %]edit.html?pkg=[% pkg | uri %]">[% g('Tags') %]</a>:
180   [%- END %]
181   [% facet = tag.0; lfacet = "$facet-$po_lang"; 
182      facet_name = debtags_voc.$lfacet;
183      SET facet_name = debtags_voc.$facet UNLESS facet_name;
184      tag_id = "$tag.0::$tag.1"; ltag = "$tag_id-$po_lang";
185      tag_name = debtags_voc.$ltag;
186      SET tag_name = debtags_voc.$tag_id UNLESS tag_name;
187    %]
188   [% facet_name _ ': ' UNLESS old_facet && facet == old_facet %]
189   [% IF tag_name %]
190    <a href="/about/debtags#[% string2id(tag_id) %]">[% tag_name | html %]</a>[% ', ' UNLESS loop.last %]
191   [% ELSE %]
192   [% tag_id %][% ', ' UNLESS loop.last %]
193   [% END %]
194   [% old_facet = facet %]
195   [% IF loop.last -%]
196     </p>
197     </div> <!-- end ptags -->
198   [%- END %]
199 [% END %]
200
201 [% FOREACH p IN providers %]
202   [% IF loop.first %]<div id="pdeps"><h2>[% g('Packages providing %s', pkg) %]</h2><dl>[% END %]
203     <dt>[% IF p.available %]<a href="[% make_url(p.name,'','source','') %]">[% p.name %]</a>[% ELSE; p.name; END %]</dt>
204     [% PROCESS desc_i18n_dd trans_desc=p.trans_desc desc=p.desc %]
205   [% '</dl></div>' IF loop.last %]
206 [% END %]
207 </div> <!-- pdesctab -->
208 [% END %]
209
210 [% FOREACH b IN binaries %]
211   [% IF loop.first %]<div id="pbinaries">[% g('The following binary packages are built from this source package:') %]<dl>[% END %]
212     <dt>[% IF b.available %]<a href="[% make_url(b.name,'','source','') %]">[% b.name %]</a>[% ELSE; b.name; END %]</dt>
213     [% PROCESS desc_i18n_dd trans_desc=b.trans_desc desc=b.desc %]
214   [% '</dl></div>' IF loop.last %]
215 [% END %]
216
217 [% FOREACH relations %]
218   [% IF loop.first -%]
219     <div id="pdeps">
220     <h2>[% g('Other Packages Related to %s', pkg) %]</h2>
221
222     <table id="pdeplegend" class="visual" summary="[% g('legend') %]"><tr>
223     [% IF is_source %]
224     <td><ul class="uladep"><li>[% g('build-depends') %]</li></ul></td>
225     <td><ul class="ulidep"><li>[% g('build-depends-indep') %]</li></ul></td>
226     [% ELSE %]
227     <td><ul class="uldep"><li>[% g('depends') %]</li></ul></td>
228     <td><ul class="ulrec"><li>[% g('recommends') %]</li></ul></td>
229     <td><ul class="ulsug"><li>[% g('suggests') %]</li></ul></td>
230     [% END %]
231     </tr></table>
232   [%- END %]
233
234   <ul class="ul[% id %]">
235   [% FOREACH terms %]
236     [% '<li>' UNLESS is_old_pkgs %]
237     [% FOREACH alternatives %]
238       [% '<dl>' IF loop.first %]
239       <dt>[% IF loop.first %]<span class="nonvisual">[% id %]:</span>[% ELSE %][% g('or ') %][% END %]
240         [% IF suite %]<a href="[% make_url(name,'','suite',suite,'source','') %]">[% name %]</a>[% ELSE %][% name %][% END %]
241         [% ' (' _ version _ ')' IF version %]
242         [% ' [' _ arch_str _ ']' IF arch_str %]</dt>
243       [%- IF !is_old_pkgs -%]
244         [% PROCESS desc_i18n_dd no_end_tag=1 trans_desc=trans_desc desc=desc -%]
245         [%- IF providers.pkgs.size > 0 -%]
246           [% IF providers.also;
247                 '<br>' _ g('also a virtual package provided by');
248              ELSE;
249                 g('virtual package provided by');
250              END; %]
251           [% js_id = name %]
252             <span id="js_[% js_id %]" class="p_js_elem"></span> <span id="html_[% js_id %]">[% FOREACH provider IN providers.pkgs.sort %]<a href="[% make_url(provider,'','suite',suite,'source','') %]">[% provider %]</a>[% ', ' UNLESS loop.last %][% END %]</span>
253         [% IF providers.pkgs.size > 10 %]
254         <script type="text/javascript">init_toggle_elem("[% js_id %]","[% g('show %u providing packages', providers.pkgs.size) %]", "[% g('hide %u providing packages', providers.pkgs.size) %]")</script>
255         [% END %]
256         [% END %]
257         </dd>
258       [% END %]
259       [% '</dl>' IF loop.last %]
260     [% END %]
261   [% END %]
262   </ul>
263
264   [% IF loop.last -%]
265     </div> <!-- end pdeps -->
266   [%- END %]
267 [% END %]
268
269 [% FOREACH d IN downloads %]
270   [% IF loop.first -%]
271     <div id="pdownload">
272     <h2>[% g('Download %s', pkg) %]</h2>
273     
274     <table summary="[% g('The download table links to the download of the package and a file overview. In addition it gives information about the package size and the installed size.') %]">
275     <caption class="hidecss">[% g('Download for all available architectures') %]</caption>
276     <tr><th>[% g('Architecture') %]</th>
277         [% '<th>'_ g('Version') _'</th>' IF versions.multiple %]
278         <th>[% g('Package Size') %]</th>
279         <th>[% g('Installed Size') %]</th>
280         <th>[% g('Files') %]</th>
281     </tr>
282   [%- END %]
283
284 <tr>
285 [% download_url = pkg _ '/download'
286    filelist_url = pkg _ '/filelist' %]
287 <th><a href="[% make_url(download_url,'','arch',d.arch) %]">[% d.arch %]</a>
288 [%- SET a = d.archive; IF mirrors.$a.unofficial_port  %] <strong>[% g('(unofficial port)') %]</strong>[% END %]</th>
289 [% vnorm = d.version.replace( '\+b\d+$', '' ); vlatest = version.replace( '\+b\d+$', '' );
290    vup = vnorm.replace( '-[^-]+$', '' ); vuplatest = vlatest.replace( '-[^-]+$', '' );
291    IF vnorm == vlatest;
292         version_class = 'vcurrent';
293    ELSIF vup == vuplatest;
294         version_class = 'volder';
295    ELSE;
296         version_class = 'vold';
297    END %]
298 [% "<td class='$version_class'>$d.version</td>" IF versions.multiple %]
299 <td class="size">[% g('%s&nbsp;kB', num.format_number(d.pkgsize,1)) %]</td><td class="size">[% g('%s&nbsp;kB', d.instsize) %]</td>
300 <td>
301 [% IF d.contents_avail %]
302   [<a href="[% make_url(filelist_url,'','arch',d.arch) %]">[% g('list of files') %]</a>]
303 [% ELSE %]
304   [% g('no current information') %]
305 [% END %]
306 </td>
307 </tr>
308
309   [% IF loop.last -%]
310     </table>
311
312     </div> <!-- end pdownload -->
313   [%- END %]
314 [% END %]
315
316 [% FOREACH srcfiles %]
317   [% IF loop.first -%]
318     <div id="pdownload">
319     <h2>Download [% pkg %]</h2>
320     
321     <table summary="[% g('Download information for the files of this source package') %]">
322     <tr><th>[% g('File') %]</th><th>[% g('Size (in kB)') %]</th><th>[% g('MD5 checksum') %]</th></tr>
323   [%- END %]
324
325 <tr>
326 <td><a href="[% server _ path %]">[% filename %]</a></td>
327 <td>[% g('%s&nbsp;kB', num.format_number(size,1)) %]</td>
328 <td class="md5sum">[% md5sum %]</td>
329 </tr>
330
331   [% IF loop.last -%]
332     </table>
333
334 [% FOREACH vcs IN known_vcs;
335         vcs_id = vcs.0; vcs_name = vcs.1; vcs_pkg = vcs.2;
336         vcs_info = page.get_newest("vcs-$vcs_id");
337         SET vcs_info = page.get_newest("x-vcs-$vcs_id") UNLESS vcs_info;
338         IF vcs_info; %]
339 <dl>
340 <dt>[% g('Debian Package Source Repository (<acronym title="Version Control System">VCS</acronym>: <a href="%s">%s</a>)',
341         make_url(vcs_pkg,'','source',''), vcs_name ) %]</dt>
342 <dd><a href="[% vcs_info %]" class="pvcslink">[% vcs_info %]</a></dd>
343 [% IF vcs_link %]
344 <dt>[% g('Debian Package Source Repository (Browsable)') %]</dt><dd><a href="[% vcs_link %]" class="pvcslink">[% vcs_link %]</a></dd>
345 [% END %]
346 </dl>
347 [% END; END %]
348
349     </div> <!-- end pdownload -->
350   [%- END %]
351 [% END %]
352
353 [%# <script type="text/javascript">init_tab_list("ptablist")</script> %]
354
355 [%- PROCESS 'html/foot.tmpl' -%]