]> git.deb.at Git - deb/packages.git/blobdiff - templates/html/foot.tmpl
fix html
[deb/packages.git] / templates / html / foot.tmpl
index 580e280f6cae5523673e1d989dee6070e33737f6..63c871286230be8095f49f436609875a31e634d6 100644 (file)
@@ -3,10 +3,10 @@ Total page evaluation took [% benchmark %]<br>
 [%- END -%]
 </div></div></div>
 
-<div class=\"clear mozclear\"></div><div id=\"prefooter\">
+<div class="clear mozclear"></div><div id="prefooter">
 <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:') %]</p>
@@ -36,9 +36,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 -->