X-Git-Url: https://git.deb.at/?p=deb%2Fpackages.git;a=blobdiff_plain;f=templates%2Fhtml%2Fshow.tmpl;h=0c27c00849c734ffd9e6160fd381224695b2a20d;hp=90c5e72dcbc893c2f1851d2e9d6974f4c06e25b1;hb=994eceb69bd5a8865a51e00b3cfb1c7a1f03f78e;hpb=f32e77552d08600a0552637ce3c85315ea4aae04 diff --git a/templates/html/show.tmpl b/templates/html/show.tmpl index 90c5e72..0c27c00 100644 --- a/templates/html/show.tmpl +++ b/templates/html/show.tmpl @@ -143,16 +143,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 +176,16 @@ Do not install it on a normal %s system.', organisation ) %]

[% g('Tags') %]: [%- 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-$lang"; + facet_name = debtags_voc.$lfacet; + SET facet_name = debtags_voc.$facet UNLESS facet_name; + tag_id = "$tag.0::$tag.1"; ltag = "$tag_id-$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 %] - [% tag_name %][% ', ' UNLESS loop.last %] + [% tag_name | html %][% ', ' UNLESS loop.last %] [% ELSE %] [% tag_id %][% ', ' UNLESS loop.last %] [% END %] @@ -197,19 +196,19 @@ Do not install it on a normal %s system.', organisation ) %]

[%- END %] [% END %] -[% FOREACH providers %] +[% FOREACH p IN providers %] [% IF loop.first %]

[% g('Packages providing %s', pkg) %]

[% END %] -
[% IF available %][% name %][% ELSE %][% name %][% END %]
-
[% desc %]
+
[% IF p.available %][% p.name %][% ELSE; p.name; END %]
+
[% IF p.trans_desc.$lang; p.trans_desc.$lang | html; ELSE; p.desc | html; END %]
[% '
' IF loop.last %] [% END %]
[% 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 %] @@ -218,14 +217,14 @@ Do not install it on a normal %s system.', organisation ) %]

[% g('Other Packages Related to %s', pkg) %]

- +
[% IF is_source %] - - + + [% ELSE %] - - - + + + [% END %]
  • build-depends
  • build-depends-indep
  • [% g('build-depends') %]
  • [% g('build-depends-indep') %]
  • depends
  • recommends
  • suggests
  • [% g('depends') %]
  • [% g('recommends') %]
  • [% g('suggests') %]
[%- END %] @@ -235,14 +234,18 @@ 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 -%] - [% '
    also a ' IF providers.also %][% g('virtual package provided by') %] + [% IF providers.also; + '
    ' _ g('also a virtual package provided by'); + ELSE; + g('virtual package provided by'); + END; %] [% js_id = name %] [% FOREACH provider IN providers.pkgs %][% provider %][% ', ' UNLESS loop.last %][% END %] [% IF providers.pkgs.size > 10 %]