From c6e3c5c67e8ffd1def2393cb88ce2847b1a923a9 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Thu, 12 Apr 2007 17:33:58 +0200 Subject: [PATCH] vcs information: Improve HTML output Add a link to the package page of the used VCS. --- templates/html/show.tmpl | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/templates/html/show.tmpl b/templates/html/show.tmpl index 09befc4..ef4d813 100644 --- a/templates/html/show.tmpl +++ b/templates/html/show.tmpl @@ -64,17 +64,19 @@ [% #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' ], ]; 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 %]

+

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

[% END; END %] [% IF src %] -- 2.39.2