X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=templates%2Fhtml%2Fshow.tmpl;h=16ea7e40db4c01c9c32aa32f16cf2fa7671fc86e;hb=723a3070634d467e3328c41dfcd8f1da3b5f70d2;hp=43e5ca1c891690b3f5ca2f61170530607143188c;hpb=41ab743eae0a7875cf03a8b50a060da06af30b39;p=deb%2Fpackages.git diff --git a/templates/html/show.tmpl b/templates/html/show.tmpl index 43e5ca1..16ea7e4 100644 --- a/templates/html/show.tmpl +++ b/templates/html/show.tmpl @@ -63,19 +63,25 @@ [% END %] +[% vcs_link = page.get_newest("vcs-browser") %] [% #FIXME: should this only be used for the PTS? - known_vcs = [ [ 'cvs', 'CVS' ], - [ 'svn', 'Subversion' ], - [ 'bzr', 'bzr' ], - [ 'darcs', 'Darcs'], - [ 'arch', 'arch' ] ]; + known_vcs = [ [ 'cvs', 'CVS', 'cvs' ], + [ 'svn', 'Subversion', 'subversion' ], + [ 'bzr', 'bzr', 'bzr' ], + [ 'darcs', 'Darcs', 'darcs' ], + [ 'arch', 'arch', 'tla' ], + [ 'git', 'Git', 'git-core' ], + [ 'hg', 'Hg', 'mercurial' ], ]; FOREACH vcs IN known_vcs; - vcs_id = vcs.0; vcs_name = vcs.1; + 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 %]

-[% END; END %] +

Debian Package Repository (VCS: +[% vcs_name %]):
[% vcs_info %]

+[% IF vcs_link %] +

Debian Package Repository (Browsable):
[% vcs_link %]

+[% END; END; END %] [% IF src %]

Download Source Package [% src.pkg %]: @@ -93,12 +99,15 @@

Maintainer:

[%- FOREACH maintainers -%] [% name | html %] + (QA Page) [%- END -%] [%- ELSE -%]

Maintainers:

[%- FOREACH maintainers -%] [%- '' IF loop.last -%] [%- END -%] [%- END %] @@ -115,10 +124,12 @@ [% IF suite == "experimental" || subsection == "debian-installer" %]
[% IF suite == "experimental" %] +[% changelog_link = 'changelog'; + changelog_link = "changelog" %]

Experimental package

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 +Please be sure to consult the [% changelog_link %] and other possible documentation before using it.

[% END %] [% IF subsection == "debian-installer" %] @@ -146,11 +157,18 @@ Do not install it on a normal Debian system.

Tags: [%- END %] - [% IF tag.1 %] - [% tag.1 %][% ', ' UNLESS loop.last %] + [% facet = tag.0; + facet_name = debtags_voc.$facet; + tag_id = "$tag.0::$tag.1"; + tag_name = debtags_voc.$tag_id; + %] + [% facet_name _ ': ' UNLESS old_facet && facet == old_facet %] + [% IF tag_name %] + [% tag_name %][% ', ' UNLESS loop.last %] [% ELSE %] - [% tag.0 %][% ', ' UNLESS loop.last %] + [% tag_id %][% ', ' UNLESS loop.last %] [% END %] + [% old_facet = facet %] [% IF loop.last -%]