X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=templates%2Fhtml%2Fshow.tmpl;h=5389798b472ced60600a0a9d74d291b64d4991ca;hb=b84419b2f87cf3c43b83fca71486be4fae81375e;hp=808c517aef6e94e68c8789bc93e1f0be9288ca2d;hpb=0826daa3d7e40754506b392b395aaf66974c5598;p=deb%2Fpackages.git
diff --git a/templates/html/show.tmpl b/templates/html/show.tmpl
index 808c517..5389798 100644
--- a/templates/html/show.tmpl
+++ b/templates/html/show.tmpl
@@ -64,12 +64,12 @@
-- [% g('Bug Reports') %]
+- [% g('Bug Reports') %]
[% IF src.pkg -%]
-- [% g('Developer Information (PTS)') %]
+- [% g('Developer Information (PTS)') %]
[% ELSIF is_source %]
-- [% g('Developer Information (PTS)') %]
+- [% g('Developer Information (PTS)') %]
[%- END %]
[% IF files && (!archive or archive == main_archive or archive == 'security') %]
@@ -108,10 +108,17 @@
[%- ELSE -%]
[% g('Maintainers:') %]
[%- END %]
-[%- FOREACH maintainers -%]
+[%- FOREACH maintainers;
+ mailarchiveurl = '';
+ IF (matches = mail.match('^(.*)@lists\.debian\.org$'));
+ mailarchiveurl = 'http://lists.debian.org/' _ matches.0 _ '/';
+ ELSIF (matches = mail.match('^(.*)@lists\.alioth\.debian\.org$'));
+ mailarchiveurl = 'http://lists.alioth.debian.org/pipermail/' _ matches.0 _ '/';
+ END -%]
[%- '' IF loop.last -%]
[%- END -%]
@@ -121,7 +128,7 @@
IF url %]
[% g('External Resources:') %]
[% END %]
@@ -143,16 +150,13 @@
[% changelog_link = 'changelog';
changelog_link = "$changelogs_url$files.changelog.path" %]
[% g('Experimental package') %]
-[% g('Warning: This package is from the experimental 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.', changelog_link) %]
+[% g('Warning: This package is from the experimental 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.',
+ changelog_link) %]
[% END %]
[% IF subsection == "debian-installer" %]
[% g('debian-installer udeb package') %]
-[% g('Warning: This package is intended for the use in building
-debian-installer images only.
-Do not install it on a normal %s system.', organisation ) %]
+[% g('Warning: This package is intended for the use in building debian-installer images only. Do not install it on a normal %s system.',
+ organisation ) %]
[% END %]
[% END %]
@@ -179,14 +183,16 @@ Do not install it on a normal %s system.', organisation ) %]
[% END %]
-[% FOREACH binaries %]
+[% FOREACH b IN binaries %]
[% IF loop.first %][% g('The following binary packages are built from this source package:') %]
[% END %]
- - [% IF available %][% name %][% ELSE %][% name %][% END %]
- - [% desc %]
+ - [% IF b.available %][% b.name %][% ELSE; b.name; END %]
+ - [% IF b.trans_desc.$lang; b.trans_desc.$lang | html; ELSE; b.desc | html; END %]
[% '
' IF loop.last %]
[% END %]
@@ -235,12 +241,12 @@ Do not install it on a normal %s system.', organisation ) %]
[% '- ' UNLESS is_old_pkgs %]
[% FOREACH alternatives %]
[% '
' IF loop.first %]
- - [% IF loop.first %][% id %]:[% ELSE %]or [% END %]
+
- [% IF loop.first %][% id %]:[% ELSE %][% g('or ') %][% END %]
[% IF suite %][% name %][% ELSE %][% name %][% END %]
[% ' (' _ version _ ')' IF version %]
[% ' [' _ arch_str _ ']' IF arch_str %]
[%- IF !is_old_pkgs -%]
- - [% desc -%]
+
- [% IF trans_desc.$lang; trans_desc.$lang | html; ELSE; desc | html; END -%]
[%- IF providers.pkgs.size > 0 -%]
[% IF providers.also;
'
' _ g('also a virtual package provided by');
@@ -248,9 +254,9 @@ Do not install it on a normal %s system.', organisation ) %]
g('virtual package provided by');
END; %]
[% js_id = name %]
- [% FOREACH provider IN providers.pkgs %][% provider %][% ', ' UNLESS loop.last %][% END %]
+ [% FOREACH provider IN providers.pkgs.sort %][% provider %][% ', ' UNLESS loop.last %][% END %]
[% IF providers.pkgs.size > 10 %]
-
+
[% END %]
[% END %]
@@ -281,9 +287,9 @@ Do not install it on a normal %s system.', organisation ) %]
[%- END %]
-[% download_url = pkg _ '/' _ d.arch _ '/download'
- filelist_url = pkg _ '/' _ d.arch _ '/filelist' %]
-[% d.arch %]
+[% download_url = pkg _ '/download'
+ filelist_url = pkg _ '/filelist' %]
+ | [% d.arch %]
[%- SET a = d.archive; IF mirrors.$a.unofficial_port %] [% g('(unofficial port)') %][% END %] |
[% vnorm = d.version.replace( '\+b\d+$', '' ); vlatest = version.replace( '\+b\d+$', '' );
vup = vnorm.replace( '-[^-]+$', '' ); vuplatest = vlatest.replace( '-[^-]+$', '' );
@@ -295,10 +301,10 @@ Do not install it on a normal %s system.', organisation ) %]
version_class = 'vold';
END %]
[% "$d.version | " IF versions.multiple %]
-[% g('%.1f kB', d.pkgsize) %] | [% g('%u kB', d.instsize) %] |
+[% g('%s kB', num.format_number(d.pkgsize,1)) %] | [% g('%s kB', d.instsize) %] |
[% IF d.contents_avail %]
- [[% g('list of files') %]]
+ [[% g('list of files') %]]
[% ELSE %]
[% g('no current information') %]
[% END %]
@@ -323,7 +329,7 @@ Do not install it on a normal %s system.', organisation ) %]
|
[% filename %] |
-[% g('%.1f kB', size) %] |
+[% g('%s kB', num.format_number(size,1)) %] |
[% md5sum %] |