From: Frank Lichtenheld Date: Sat, 15 Mar 2008 00:12:35 +0000 (+0100) Subject: html/show.tmpl: Some fixes to the Vcs-* handling X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=c916f3f87b4f42216300293c1aa5ead45f9d9e6e;p=deb%2Fpackages.git 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. --- 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 %]