nav_arr.push( { prefix=>g('Section:'), title=>g('All packages in this section'), url=>make_url("$subsection/"), name=>subsection } );
nav_arr.push( { prefix=>g('Package:'), name=>pkg } ); -%]
[% desclang = 'en';
- SET desclang = lang IF desc.$lang.long %]
+ SET desclang = po_lang IF desc.$po_lang.long;
+ SET desclang = ddtp_lang IF desc.$ddtp_lang.long %]
[%- PROCESS 'html/head.tmpl'
title_tag = is_source ? g('Details of source package %s in %s', pkg, suite)
: g('Details of package %s in %s', pkg, suite)
navigation = nav_arr
-%]
<!-- show.tmpl -->
-[% PROCESS 'html/menu.inc' %]
+[% PROCESS 'html/util.inc' %]
[% FOREACH s IN suites %]
[% '<div id="pothers">' IF loop.first %]
[%- IF s == suite -%]
[% ELSE %]
<h1>[% g('Package: %s (%s)', pkg, versions.short) %]
[% END %]
-[%- PROCESS marker text=archive IF archive && archive != main_archive %]
-[%- PROCESS marker text=section IF section && section != main_section %]
-[%- PROCESS marker text=g('essential') IF page.get_newest('essential') == 'yes' %]</h1>
+[%- PROCESS marker text=archive title=mirrors.$archive.title url=mirrors.$archive.url IF archive && archive != main_archive %]
+[%- PROCESS marker text=section title=section_titles.$section url=section_urls.$section IF section && section != main_section %]
+[%- PROCESS marker text=g('essential') title=g('package manager will refuse to remove this package by default') url='http://www.debian.org/doc/debian-policy/ch-binary.html#s3.8' IF page.get_newest('essential') == 'yes' %]</h1>
[% UNLESS is_virtual %]
<div id="pmoreinfo">
<h2>[% g('Links for %s', pkg) %]</h2>
-<h3>[% g('Debian Resources:') %]</h3>
+[% IF screenshots_url && screenshots_thumb_url && !is_source %]
+<a id="screenshot" href="[% screenshots_url _ pkg %]"><img src="[% screenshots_thumb_url _ pkg %]" alt="Screenshot" border="0"/></a>
+[% END %]
+<h3>[% g('%s Resources:', organisation) %]</h3>
<ul>
-<li><a href="[% (is_source ? src_bugs_url : bugs_url) _ pkg | uri %]">[% g('Bug Reports') %]</a></li>
+<li><a href="[% (is_source ? src_bugs_url : bugs_url) _ pkg %]">[% g('Bug Reports') %]</a></li>
[% IF src.pkg -%]
-<li><a href="[% pts_url _ src.pkg | uri %]">g('Developer Information (PTS)') %]</a></li>
+<li><a href="[% pts_url _ src.pkg %]">[% g('Developer Information (PTS)') %]</a></li>
[% ELSIF is_source %]
-<li><a href="[% pts_url _ pkg | uri %]">g('Developer Information (PTS)') %]</a></li>
+<li><a href="[% pts_url _ pkg %]">[% g('Developer Information (PTS)') %]</a></li>
[%- END %]
[% IF files && (!archive or archive == main_archive or archive == 'security') %]
SET vcs_info = page.get_newest("x-vcs-$vcs_id") UNLESS vcs_info;
IF vcs_info %]
(<a href="[% vcs_info %]" class="pvcslink">[% vcs_name %]</a>)
-[% END %]
+[% END; END -%]
</li>
-[% END; END %]
+[% END -%]
+
+[% IF patch_tracking_url && src %]
+ [% FOREACH src.downloads %]
+ [% IF name.match('\.(debian\.tar|diff)\.(gz|bz2|lzma)$') %]
+ <li><a href="[% "$patch_tracking_url/$src.pkg/$src.version" %]">[% g("%s Patch Tracker", organisation) %]</a></li>
+ [% END -%]
+ [% END -%]
+[% ELSIF patch_tracking_url && is_source %]
+ [% FOREACH srcfiles %]
+ [% IF filename.match('\.(debian\.tar|diff)\.(gz|bz2|lzma)$') %]
+ <li><a href="[% "$patch_tracking_url/$pkg/$version" %]">[% g("%s Patch Tracker", organisation) %]</a></li>
+ [% END -%]
+ [% END -%]
+[% END -%]
</ul>
[%- ELSE -%]
<h3>[% g('Maintainers:') %]</h3>
[%- END %]
-[%- FOREACH maintainers -%]
+[%- FOREACH maintainers;
+ mailarchiveurl = '';
+ IF (matches = mail.match('^(.*)@lists\.debian\.org$'));
+ mailarchiveurl = 'http://lists.debian.org/' _ uri_escape(matches.0) _ '/';
+ ELSIF (matches = mail.match('^(.*)@lists\.alioth\.debian\.org$'));
+ mailarchiveurl = 'http://lists.alioth.debian.org/pipermail/' _ uri_escape(matches.0) _ '/';
+ ELSIF (matches = mail.match('^(.*)@lists\.ubuntu\.com$'));
+ mailarchiveurl = 'http://lists.ubuntu.com/archives/' _ uri_escape(matches.0) _ '/';
+ END -%]
[%- '<ul>' IF loop.first -%]
- <li><a href="mailto:[% mail %]">[% name | html %]</a>
- (<a href="[% ddpo_url _ mail %]" title="[% g("An overview over the maintainer's packages and uploads") %]">[% g('QA Page') %]</a>)
+ <li><a href="mailto:[% mail | html %]">[% name | html %]</a>
+ (<a href="[% ddpo_url %][% uri_escape(mail) %]" title="[% g("An overview over the maintainer's packages and uploads") %]">[% g('QA Page') %]</a>
+ [%- IF mailarchiveurl %], <a href="[% mailarchiveurl %]" title="[% g('Archive of the Maintainer Mailinglist') %]">[% g('Mail Archive') %]</a>[% END %])
</li>
[%- '</ul>' IF loop.last -%]
[%- END -%]
IF url %]
<h3>[% g('External Resources:') %]</h3>
<ul>
-<li><a href="[% url | uri %]">[% g('Homepage') %]</a> [[% extract_host(url) %]]</li>
+<li><a href="[% url | html %]">[% g('Homepage') %]</a> [[% extract_host(url) | html %]]</li>
</ul>
[% END %]
[% changelog_link = 'changelog';
changelog_link = "$changelogs_url$files.changelog.path" %]
<h2>[% g('Experimental package') %]</h2>
-<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.', changelog_link) %]</p>
+<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.',
+ changelog_link) %]</p>
[% END %]
[% IF subsection == "debian-installer" %]
<h2>[% g('debian-installer udeb package') %]</h2>
-<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>
+<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>
[% END %]
</div>
[% END %]
[% IF desc %]
<div id="pdesctab">
-<div id="pdesc">
[% UNLESS is_virtual %]
+<div id="pdesc" [% "lang=\"$desclang\"" IF desclang != po_lang %]>
[% IF desc.$desclang.short %]
<h2>[% desc.$desclang.short %]</h2>
<p>[% desc.$desclang.long %]
[% END %]
[% ELSE %]
+<div id="pdesc">
<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>.',
policy_url, policy_url) %]</p>
[% END %]
[% FOREACH tag IN tags %]
[% IF loop.first -%]
<div id="ptags"><p>
- <a href="[% tags_url %]edit.html?pkg=[% pkg | uri %]">[% g('Tags') %]</a>:
+ <a href="[% tags_url %]edit.html?pkg=[% uri_escape(pkg) %]">[% g('Tags') %]</a>:
[%- END %]
- [% facet = tag.0;
- facet_name = debtags_voc.$facet;
- tag_id = "$tag.0::$tag.1";
- tag_name = debtags_voc.$tag_id;
+ [% facet = tag.0; lfacet = "$facet-$po_lang";
+ facet_name = debtags_voc.$lfacet;
+ SET facet_name = debtags_voc.$facet UNLESS facet_name;
+ tag_id = "$tag.0::$tag.1"; ltag = "$tag_id-$po_lang";
+ tag_name = debtags_voc.$ltag;
+ SET tag_name = debtags_voc.$tag_id UNLESS tag_name;
%]
[% facet_name _ ': ' UNLESS old_facet && facet == old_facet %]
[% IF tag_name %]
- <a href="/about/debtags#[% string2id(tag_id) %]">[% tag_name %]</a>[% ', ' UNLESS loop.last %]
+ <a href="/about/debtags#[% string2id(tag_id) %]">[% tag_name | html %]</a>[% ', ' UNLESS loop.last %]
[% ELSE %]
[% tag_id %][% ', ' UNLESS loop.last %]
[% END %]
[%- END %]
[% END %]
-[% FOREACH providers %]
+[% FOREACH p IN providers %]
[% IF loop.first %]<div id="pdeps"><h2>[% g('Packages providing %s', pkg) %]</h2><dl>[% END %]
- <dt>[% IF available %]<a href="[% make_url(name,'','source','') %]">[% name %]</a>[% ELSE %][% name %][% END %]</dt>
- <dd>[% desc %]</dd>
+ <dt>[% IF p.available %]<a href="[% make_url(p.name,'','source','') %]">[% p.name %]</a>[% ELSE; p.name; END %]</dt>
+ [% PROCESS desc_i18n_dd trans_desc=p.trans_desc desc=p.desc %]
[% '</dl></div>' IF loop.last %]
[% END %]
</div> <!-- pdesctab -->
[% END %]
-[% FOREACH binaries %]
+[% FOREACH b IN binaries %]
[% IF loop.first %]<div id="pbinaries">[% g('The following binary packages are built from this source package:') %]<dl>[% END %]
- <dt>[% IF available %]<a href="[% make_url(name,'','source','') %]">[% name %]</a>[% ELSE %][% name %][% END %]</dt>
- <dd>[% desc %]</dd>
+ <dt>[% IF b.available %]<a href="[% make_url(b.name,'','source','') %]">[% b.name %]</a>[% ELSE; b.name; END %]</dt>
+ [% PROCESS desc_i18n_dd trans_desc=b.trans_desc desc=b.desc %]
[% '</dl></div>' IF loop.last %]
[% END %]
<div id="pdeps">
<h2>[% g('Other Packages Related to %s', pkg) %]</h2>
- <table id="pdeplegend" class="visual" summary="legend"><tr>
+ <table id="pdeplegend" class="visual" summary="[% g('legend') %]"><tr>
[% IF is_source %]
- <td><ul class="uladep"><li>build-depends</li></ul></td>
- <td><ul class="ulidep"><li>build-depends-indep</li></ul></td>
+ <td><ul class="uladep"><li>[% g('build-depends') %]</li></ul></td>
+ <td><ul class="ulidep"><li>[% g('build-depends-indep') %]</li></ul></td>
[% ELSE %]
- <td><ul class="uldep"><li>depends</li></ul></td>
- <td><ul class="ulrec"><li>recommends</li></ul></td>
- <td><ul class="ulsug"><li>suggests</li></ul></td>
+ <td><ul class="uldep"><li>[% g('depends') %]</li></ul></td>
+ <td><ul class="ulrec"><li>[% g('recommends') %]</li></ul></td>
+ <td><ul class="ulsug"><li>[% g('suggests') %]</li></ul></td>
[% END %]
</tr></table>
[%- END %]
<ul class="ul[% id %]">
- [% FOREACH terms %]
- [% '<li>' UNLESS is_old_pkgs %]
- [% FOREACH alternatives %]
+ [% FOREACH t IN terms %]
+ [% '<li>' UNLESS t.is_old_pkgs %]
+ [% FOREACH a IN t.alternatives %]
[% '<dl>' IF loop.first %]
- <dt>[% IF loop.first %]<span class="nonvisual">[% id %]:</span>[% ELSE %]or [% END %]
- [% IF suite %]<a href="[% make_url(name,'','suite',suite,'source','') %]">[% name %]</a>[% ELSE %][% name %][% END %]
- [% ' (' _ version _ ')' IF version %]
- [% ' [' _ arch_str _ ']' IF arch_str %]</dt>
- [%- IF !is_old_pkgs -%]
- <dd>[% desc -%]
- [%- IF providers.pkgs.size > 0 -%]
- [% '<br>also a ' IF providers.also %][% g('virtual package provided by') %]
- [% js_id = name %]
- <span id="js_[% js_id %]" class="p_js_elem"></span> <span id="html_[% js_id %]">[% FOREACH provider IN providers.pkgs %]<a href="[% make_url(provider,'','suite',suite,'source','') %]">[% provider %]</a>[% ', ' UNLESS loop.last %][% END %]</span>
- [% IF providers.pkgs.size > 10 %]
- <script type="text/javascript">init_toggle_elem("[% js_id %]",[% g('%u providing packages', providers.pkgs.size) %]</script>
+ <dt>[% IF loop.first %]<span class="nonvisual">[% id %]:</span>[% ELSE %][% g('or ') %][% END %]
+ [% IF a.suite %]<a href="[% make_url(a.name,'','suite',a.suite,'source','') %]">[% a.name %]</a>[% ELSE %][% a.name %][% END %]
+ [% ' (' _ a.version _ ')' IF a.version %]
+ [% ' [' _ a.arch_str _ ']' IF a.arch_str %]</dt>
+ [%- IF !t.is_old_pkgs -%]
+ [% PROCESS desc_i18n_dd no_end_tag=1 trans_desc=a.trans_desc desc=a.desc -%]
+ [%- IF a.providers.pkgs && a.providers.pkgs.size > 0 -%]
+ [% IF a.providers.also;
+ '<br>' _ g('also a virtual package provided by');
+ ELSE;
+ g('virtual package provided by');
+ END; %]
+ [% js_id = a.name %]
+ <span id="js_[% js_id %]" class="p_js_elem"></span> <span id="html_[% js_id %]">[% FOREACH provider IN a.providers.pkgs.sort %]<a href="[% make_url(provider,'','suite',a.suite,'source','') %]">[% provider %]</a>[% ', ' UNLESS loop.last %][% END %]</span>
+ [% IF a.providers.pkgs.size > 10 %]
+ <script type="text/javascript">init_toggle_elem("[% js_id %]","[% g('show %u providing packages', a.providers.pkgs.size) %]", "[% g('hide %u providing packages', a.providers.pkgs.size) %]")</script>
[% END %]
[% END %]
</dd>
[% FOREACH d IN downloads %]
[% IF loop.first -%]
<div id="pdownload">
- <h2>Download [% pkg %]</h2>
+ <h2>[% g('Download %s', pkg) %]</h2>
<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.') %]">
<caption class="hidecss">[% g('Download for all available architectures') %]</caption>
[%- END %]
<tr>
-[% download_url = pkg _ '/' _ d.arch _ '/download'
- filelist_url = pkg _ '/' _ d.arch _ '/filelist' %]
-<th><a href="[% make_url(download_url) | uri %]">[% d.arch %]</a>
+[% download_url = pkg _ '/download'
+ filelist_url = pkg _ '/filelist' %]
+<th><a href="[% make_url(download_url,'','arch',d.arch) %]">[% d.arch %]</a>
[%- SET a = d.archive; IF mirrors.$a.unofficial_port %] <strong>[% g('(unofficial port)') %]</strong>[% END %]</th>
[% vnorm = d.version.replace( '\+b\d+$', '' ); vlatest = version.replace( '\+b\d+$', '' );
vup = vnorm.replace( '-[^-]+$', '' ); vuplatest = vlatest.replace( '-[^-]+$', '' );
version_class = 'vold';
END %]
[% "<td class='$version_class'>$d.version</td>" IF versions.multiple %]
-<td class="size">[% g('%.1f kB', d.pkgsize) %]</td><td class="size">[% g('%u kB', d.instsize) %]</td>
+<td class="size">[% g('%s kB', num.format_number(d.pkgsize,1)) %]</td><td class="size">[% g('%s kB', d.instsize) %]</td>
<td>
[% IF d.contents_avail %]
- [<a href="[% make_url(filelist_url) | uri %]">[% g('list of files') %]</a>]
+ [<a href="[% make_url(filelist_url,'','arch',d.arch) %]">[% g('list of files') %]</a>]
[% ELSE %]
[% g('no current information') %]
[% END %]
<tr>
<td><a href="[% server _ path %]">[% filename %]</a></td>
-<td>[% g('%.1f kB', size) %]</td>
+<td>[% g('%s kB', num.format_number(size,1)) %]</td>
<td class="md5sum">[% md5sum %]</td>
</tr>
vcs_id = vcs.0; vcs_name = vcs.1; vcs_pkg = vcs.2;
vcs_info = page.get_newest("vcs-$vcs_id");
SET vcs_info = page.get_newest("x-vcs-$vcs_id") UNLESS vcs_info;
- IF vcs_info; %]
+ LAST IF vcs_info;
+ END;
+ IF vcs_info || vcs_link; %]
<dl>
+[% IF vcs_info %]
<dt>[% g('Debian Package Source Repository (<acronym title="Version Control System">VCS</acronym>: <a href="%s">%s</a>)',
make_url(vcs_pkg,'','source',''), vcs_name ) %]</dt>
<dd><a href="[% vcs_info %]" class="pvcslink">[% vcs_info %]</a></dd>
-[% IF vcs_link %]
-<dt>[% g('Debian Package Source Repository (Browsable)') %]</dt><dd><a href="[% vcs_link %]" class="pvcslink">[% vcs_link %]</a></dd>
+[% END;
+ IF vcs_link %]
+<dt>[% g('Debian Package Source Repository (Browsable)') %]</dt>
+<dd><a href="[% vcs_link %]" class="pvcslink">[% vcs_link %]</a></dd>
[% END %]
</dl>
-[% END; END %]
+[% END %]
</div> <!-- end pdownload -->
[%- END %]
[%# <script type="text/javascript">init_tab_list("ptablist")</script> %]
-[%- PROCESS 'html/foot.tmpl' -%]
+[%- PROCESS 'html/foot.tmpl' page_name=pkg -%]