X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=templates%2Fhtml%2Fshow.tmpl;h=c7da7c6a7bce8fea8ddfb07ef5f53c8c56331703;hb=fbb1b8f0eb8f097177824599556fce645de0b7d5;hp=43e5ca1c891690b3f5ca2f61170530607143188c;hpb=41ab743eae0a7875cf03a8b50a060da06af30b39;p=deb%2Fpackages.git
diff --git a/templates/html/show.tmpl b/templates/html/show.tmpl
index 43e5ca1..c7da7c6 100644
--- a/templates/html/show.tmpl
+++ b/templates/html/show.tmpl
@@ -1,16 +1,32 @@
[% PROCESS 'config/archive_layout.tmpl' %]
+[% PROCESS 'config/mirrors.tmpl' %]
+[%- known_vcs = [ [ 'cvs', 'CVS', 'cvs' ],
+ [ 'svn', 'Subversion', 'subversion' ],
+ [ 'bzr', 'bzr', 'bzr' ],
+ [ 'darcs', 'Darcs', 'darcs' ],
+ [ 'arch', 'arch', 'tla' ],
+ [ 'git', 'Git', 'git-core' ],
+ [ 'hg', 'Hg', 'mercurial' ], ];
+ vcs_link = page.get_newest("vcs-browser");
+-%]
+[%- suite_name = suite;
+ SET suite_name = suite_name _ ' (' _ suite_aliases.$suite _ ')' IF suite_aliases.$suite;
+ nav_arr = [ { prefix=>g('Distribution:'), title=>g('Overview over this suite'), url=>make_url('/','','source',''), name=>suite_name }, ];
+ nav_arr.push( { title =>g('Source packages'), url=>make_url('/'), name=>g('Source') } ) IF is_source;
+ 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 %]
[%- PROCESS 'html/head.tmpl'
- title_tag = ( is_source ? "Details of source package $pkg in $suite"
- : "Details of package $pkg in $suite" )
- description = desc
+ title_tag = is_source ? g('Details of source package %s in %s', pkg, suite)
+ : g('Details of package %s in %s', pkg, suite)
+ description = desc.$desclang.short
keywords = "$suite, $archive, $section, $subsection, $version"
print_search_field = 'packages'
search_field_values = {
searchon => is_source ? 'sourcenames' : 'names',
}
- navigation = [ { prefix=>'Distribution:', title=>'Overview over this suite', url=>make_url('/'), name=>suite },
- { prefix=>'Section:', title=>'All packages in this section', url=>make_url("$subsection/"), name=>subsection },
- { prefix=>'Package:', name=>pkg } ]
+ navigation = nav_arr
-%]
[% PROCESS 'html/menu.inc' %]
@@ -26,87 +42,96 @@
[% IF src %]
-[% PROCESS menuitem prefix='Source:' title='Source package building this package' url=make_url(src.pkg,'','source','source') name=src.pkg %]
+[% PROCESS menuitem prefix=g('Source:') title=g('Source package building this package') url=make_url(src.pkg,'','source','source') name=src.pkg %]
[% END %]
[%- PROCESS 'html/messages.tmpl' -%]
[% IF is_virtual %]
-Virtual Package: [% pkg %]
+[% g('Virtual Package: %s', pkg) %]
[% ELSIF is_source %]
-Source Package: [% pkg %] ([% version %])
+[% g('Source Package: %s (%s)', pkg, version) %]
[% ELSE %]
-Package: [% pkg %] ([% versions.short %])
+[% g('Package: %s (%s)', pkg, versions.short) %]
[% END %]
[%- PROCESS marker text=archive IF archive && archive != main_archive %]
-[%- PROCESS marker text=subsection IF subsection == 'non-US' and archive != 'non-US' %]
[%- PROCESS marker text=section IF section && section != main_section %]
-[%- PROCESS marker text='essential' IF page.get_newest('essential') == 'yes' %]
+[%- PROCESS marker text=g('essential') IF page.get_newest('essential') == 'yes' %]
[% UNLESS is_virtual %]
-
Links for [% pkg %]
-
Debian Resources:
+
[% g('Links for %s', pkg) %]
+
[% g('Debian Resources:') %]
-[% #FIXME: should this only be used for the PTS?
- known_vcs = [ [ 'cvs', 'CVS' ],
- [ 'svn', 'Subversion' ],
- [ 'bzr', 'bzr' ],
- [ 'darcs', 'Darcs'],
- [ 'arch', 'arch' ] ];
- FOREACH vcs IN known_vcs;
- vcs_id = vcs.0; vcs_name = vcs.1;
+[% IF vcs_link %]
+
[% g('Debian Source Repository') %]
+[%- FOREACH vcs IN known_vcs;
+ 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; %]
-Debian Package Repository (VCS: [% vcs_name %]):
[% vcs_info %]
+ IF vcs_info %]
+ ([% vcs_name %])
+[% END %]
+
[% END; END %]
+
+
[% IF src %]
-
Download Source Package [% src.pkg %]:
+
[% g('Download Source Package %s:', src.url, src.pkg) %]
[% FOREACH src.downloads %]
[% '
' IF loop.last %]
[% END %]
[% IF src.downloads.size == 0 %]
- Not found
+ [% g('Not found') %]
[% END %]
[% END %]
[% IF maintainers.size == 1 -%]
-
Maintainer:
- [%- FOREACH maintainers -%]
-
[% name | html %]
- [%- END -%]
+
[% g('Maintainer:') %]
[%- ELSE -%]
-
Maintainers:
- [%- FOREACH maintainers -%]
- [%- '
' IF loop.last -%]
- [%- END -%]
+
[% g('Maintainers:') %]
[%- END %]
+[%- FOREACH maintainers -%]
+ [%- '
' IF loop.last -%]
+[%- END -%]
[% url = page.get_newest('url');
+ SET url = page.get_newest('homepage') IF page.get_newest('homepage');
IF url %]
-
External Resources:
-
Homepage: [% url | html %]
+
[% g('External Resources:') %]
+
+[% END %]
+
+[% FOREACH sim IN similar %]
+ [% IF loop.first %]
+
[% g('Similar packages:') %]
+
' IF loop.last %]
[% END %]
@@ -115,42 +140,57 @@
[% IF suite == "experimental" || subsection == "debian-installer" %]
[% IF suite == "experimental" %]
-
Experimental package
-
Warning: This package is from the experimental distribution.
+[% 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.
+Please be sure to consult the
changelog and other possible documentation before
+using it.', changelog_link) %]
[% END %]
[% IF subsection == "debian-installer" %]
-
debian-installer udeb package
-
Warning: This package is intended for the use in building
+
[% 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 Debian system.
+Do not install it on a normal %s system.', organisation ) %]
[% END %]
[% END %]
+
+
+
+[% IF desc %]
+
[% FOREACH tag IN tags %]
[% IF loop.first -%]
@@ -158,14 +198,16 @@ Do not install it on a normal Debian system.
[% END %]
[% FOREACH providers %]
- [% IF loop.first %]
Packages providing [% pkg %]
[% END %]
+ [% IF loop.first %][% g('Packages providing %s', pkg) %]
[% END %]
- [% IF available %][% name %][% ELSE %][% name %][% END %]
- [% desc %]
[% '
' IF loop.last %]
[% END %]
+
+[% END %]
[% FOREACH binaries %]
- [% IF loop.first %]
The following binary packages are built from this source package:
[% END %]
+ [% IF loop.first %][% g('The following binary packages are built from this source package:') %]
[% END %]
- [% IF available %][% name %][% ELSE %][% name %][% END %]
- [% desc %]
[% '
' IF loop.last %]
@@ -174,16 +216,16 @@ Do not install it on a normal Debian system.
[% FOREACH relations %]
[% IF loop.first -%]
-
Other Packages Related to [% pkg %]
+
[% g('Other Packages Related to %s', pkg) %]
-
+
[% IF is_source %]
- = build-depends |
- = build-depends-indep |
+ |
+ |
[% ELSE %]
- = depends |
- = recommends |
- = suggests |
+ |
+ |
+ |
[% END %]
[%- END %]
@@ -193,18 +235,18 @@ Do not install it on a normal Debian system.
[% '- ' UNLESS is_old_pkgs %]
[% FOREACH alternatives %]
[% '
' IF loop.first %]
- - [% IF loop.first %][% ELSE %]or [% END %]
+
- [% IF loop.first %][% id %]:[% ELSE %]or [% END %]
[% IF suite %][% name %][% ELSE %][% name %][% END %]
[% ' (' _ version _ ')' IF version %]
[% ' [' _ arch_str _ ']' IF arch_str %]
[%- IF !is_old_pkgs -%]
- [% desc -%]
[%- IF providers.pkgs.size > 0 -%]
- [% '
also a ' IF providers.also %]virtual package provided by
+ [% '
also a ' IF providers.also %][% g('virtual package provided by') %]
[% js_id = name %]
[% FOREACH provider IN providers.pkgs %][% provider %][% ', ' UNLESS loop.last %][% END %]
[% IF providers.pkgs.size > 10 %]
-
+
[% END %]
[% END %]
@@ -219,27 +261,42 @@ Do not install it on a normal Debian system.
[%- END %]
[% END %]
-[% FOREACH downloads %]
+[% FOREACH d IN downloads %]
[% IF loop.first -%]
Download [% pkg %]
-
- Download for all available architectures
- Architecture | [% 'Version | ' IF versions.multiple %]Package Size | Installed Size | Files |
+
+ [% g('Download for all available architectures') %]
+ [% g('Architecture') %] |
+ [% ''_ g('Version') _' | ' IF versions.multiple %]
+ [% g('Package Size') %] |
+ [% g('Installed Size') %] |
+ [% g('Files') %] |
+
[%- END %]
-[% download_url = pkg _ '/' _ arch _ '/download'
- filelist_url = pkg _ '/' _ arch _ '/filelist' %]
-[% arch %] |
-[% '' _ version _ ' | ' IF versions.multiple %]
-[% pkgsize %] kB | [% instsize %] kB |
+[% download_url = pkg _ '/' _ d.arch _ '/download'
+ filelist_url = pkg _ '/' _ d.arch _ '/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( '-[^-]+$', '' );
+ IF vnorm == vlatest;
+ version_class = 'vcurrent';
+ ELSIF vup == vuplatest;
+ version_class = 'volder';
+ ELSE;
+ version_class = 'vold';
+ END %]
+[% "$d.version | " IF versions.multiple %]
+[% g('%.1f kB', d.pkgsize) %] | [% g('%u kB', d.instsize) %] |
-[% IF contents_avail %]
- [list of files]
+[% IF d.contents_avail %]
+ [[% g('list of files') %]]
[% ELSE %]
- no current information
+ [% g('no current information') %]
[% END %]
|
@@ -256,20 +313,38 @@ Do not install it on a normal Debian system.
Download [% pkg %]
-
- File | Size (in kB) | md5sum |
+
+ [% g('File') %] | [% g('Size (in kB)') %] | [% g('MD5 checksum') %] |
[%- END %]
[% filename %] |
-[% size %] |
+[% g('%.1f kB', size) %] |
[% md5sum %] |
[% IF loop.last -%]
+[% FOREACH vcs IN known_vcs;
+ 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; %]
+
+- [% g('Debian Package Source Repository (VCS: %s)',
+ make_url(vcs_pkg,'','source',''), vcs_name ) %]
+- [% vcs_info %]
+[% IF vcs_link %]
+- [% g('Debian Package Source Repository (Browsable)') %]
- [% vcs_link %]
+[% END %]
+
+[% END; END %]
+
[%- END %]
[% END %]
+[%# %]
+
+[%- PROCESS 'html/foot.tmpl' -%]