From: Frank Lichtenheld Date: Thu, 12 Apr 2007 20:19:36 +0000 (+0200) Subject: show.tmpl: Improve VCS-* handling X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=723a3070634d467e3328c41dfcd8f1da3b5f70d2;p=deb%2Fpackages.git show.tmpl: Improve VCS-* handling Add new VCS Mercurial (aka Hg) Handle VCS-Browser --- diff --git a/templates/html/show.tmpl b/templates/html/show.tmpl index 9e82b3f..16ea7e4 100644 --- a/templates/html/show.tmpl +++ b/templates/html/show.tmpl @@ -63,13 +63,15 @@ [% END %] +[% vcs_link = page.get_newest("vcs-browser") %] [% #FIXME: should this only be used for the PTS? known_vcs = [ [ 'cvs', 'CVS', 'cvs' ], [ 'svn', 'Subversion', 'subversion' ], [ 'bzr', 'bzr', 'bzr' ], [ 'darcs', 'Darcs', 'darcs' ], [ 'arch', 'arch', 'tla' ], - [ 'git', 'Git', 'git-core' ], ]; + [ 'git', 'Git', 'git-core' ], + [ 'hg', 'Hg', 'mercurial' ], ]; 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"); @@ -77,7 +79,9 @@ IF vcs_info; %]

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

-[% END; END %] +[% IF vcs_link %] +

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

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

Download Source Package [% src.pkg %]: