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