From 723a3070634d467e3328c41dfcd8f1da3b5f70d2 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Thu, 12 Apr 2007 22:19:36 +0200 Subject: [PATCH] show.tmpl: Improve VCS-* handling Add new VCS Mercurial (aka Hg) Handle VCS-Browser --- templates/html/show.tmpl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 %]: -- 2.39.2