The following commit has been merged in the master branch:
commit c916f3f87b4f42216300293c1aa5ead45f9d9e6e
Author: Frank Lichtenheld <[EMAIL PROTECTED]>
Date:   Sat Mar 15 01:12:35 2008 +0100

    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 %]
  (<a href="[% vcs_info %]" class="pvcslink">[% vcs_name %]</a>)
-[% END %]
-</li>
 [% END; END %]
+</li>
+[% END %]
 
 </ul>
 
@@ -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; %]
 <dl>
+[% IF vcs_info %]
 <dt>[% g('Debian Package Source Repository (<acronym title="Version Control 
System">VCS</acronym>: <a href="%s">%s</a>)',
        make_url(vcs_pkg,'','source',''), vcs_name ) %]</dt>
 <dd><a href="[% vcs_info %]" class="pvcslink">[% vcs_info %]</a></dd>
-[% IF vcs_link %]
-<dt>[% g('Debian Package Source Repository (Browsable)') %]</dt><dd><a 
href="[% vcs_link %]" class="pvcslink">[% vcs_link %]</a></dd>
+[% END;
+   IF vcs_link %]
+<dt>[% g('Debian Package Source Repository (Browsable)') %]</dt>
+<dd><a href="[% vcs_link %]" class="pvcslink">[% vcs_link %]</a></dd>
 [% END %]
 </dl>
-[% END; END %]
+[% END %]
 
     </div> <!-- end pdownload -->
   [%- END %]

-- 
APT Archive Web-Frontend (Alioth repository)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to