From c916f3f87b4f42216300293c1aa5ead45f9d9e6e Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Sat, 15 Mar 2008 01:12:35 +0100 Subject: [PATCH] html/show.tmpl: Some fixes to the Vcs-* handling Fix broken HTML in sidebar. Don't require a Vcs-* tag in order for Vcs-Browser to be displayed at the page bottom. --- templates/html/show.tmpl | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/templates/html/show.tmpl b/templates/html/show.tmpl index 7037fee..00effc9 100644 --- a/templates/html/show.tmpl +++ b/templates/html/show.tmpl @@ -86,9 +86,9 @@ SET vcs_info = page.get_newest("x-vcs-$vcs_id") UNLESS vcs_info; IF vcs_info %] ([% vcs_name %]) -[% END %] - [% END; END %] + +[% END %] @@ -344,16 +344,21 @@ 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; %] + LAST IF vcs_info; + END; + IF vcs_info || vcs_link; %]
+[% IF vcs_info %]
[% g('Debian Package Source Repository (VCS: %s)', make_url(vcs_pkg,'','source',''), vcs_name ) %]
[% vcs_info %]
-[% IF vcs_link %] -
[% g('Debian Package Source Repository (Browsable)') %]
[% vcs_link %]
+[% END; + IF vcs_link %] +
[% g('Debian Package Source Repository (Browsable)') %]
+
[% vcs_link %]
[% END %]
-[% END; END %] +[% END %] [%- END %] -- 2.39.2