]> git.deb.at Git - deb/packages.git/blobdiff - templates/html/foot.tmpl
Add squeeze-updates. Closes: #619693.
[deb/packages.git] / templates / html / foot.tmpl
index cbabd66a1b25a1d05841300ed8f942e9e3510590..7944c674cfd3dde188e62a65afb3a414580b7b9c 100644 (file)
@@ -5,7 +5,7 @@ Total page evaluation took [% benchmark %]<br>
 
 <div id="footer">
 
-[% IF langs.size > 0 %]
+[% IF langs && langs.size > 0 %]
 <hr class="hidecss">
 <!--UdmComment-->
 <p>[% g('This page is also available in the following languages (How to set <a href="%s">the default document language</a>):', cn_help_url) %]</p>
@@ -35,9 +35,10 @@ Total page evaluation took [% benchmark %]<br>
  <a href="/about/">[% g('Learn more about this site') %]</a>.</p>
 [% END %]
 </div> <!-- end impressum -->
-[% IF sponsor.name %]
+[% IF sponsors.size %]
 <div id="sponsorfooter"><p>
-[% g('Hosting provided by <a href="%s">%s</a>.', sponsor.url, sponsor.name) %]
+[% USE Math; random = Math.int(Math.rand(sponsors.size));
+  g('This service is sponsored by <a href="%s">%s</a>.', sponsors.${random}.url, sponsors.${random}.name) -%]
 </p></div>
 [% END %]
 </div> <!-- end fineprint -->