]> git.deb.at Git - deb/packages.git/blobdiff - templates/html/foot.tmpl
redesign of language selector (take 1)
[deb/packages.git] / templates / html / foot.tmpl
index b911d789a3908b5b5408ff2e58c701b2ff7a055c..c333989ac32c190c70c82ac302377c992413d7c6 100644 (file)
@@ -5,11 +5,13 @@ 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:') %]</p>
-<p class="navpara">
+<div id="pageLang">
+<div id="langSelector">
+<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>
+<div id="langContainer">
 [% FOREACH l IN langs %]
 <a href="[% IF keyword_esc;
                make_search_url('',"keywords=$keyword_esc",'lang',l.lang);
@@ -18,27 +20,32 @@ Total page evaluation took [% benchmark %]<br>
            END %]" title="[% l.tooltip %]" hreflang="[% l.lang %]" lang="[% l.lang %]" rel="alternate">[% l.selfname %]
 [%- IF l.transliteration %] ([% l.transliteration %])[% END %]</a>
 [% END %]
-</p>
-<p>[% g('How to set <a href="%s">the default document language</a>', cn_help_url) %]</p>
+</div>
+</div>
+</div>
 <!--/UdmComment-->
 [% END %]
 
-<hr class="hidecss">
-<p [%- ' class="bordertop"' IF langs.size > 0 %]>[% g('Back to:') %] <a href="[% project_homepage %]">[% g('%s Homepage', organisation) %]</a> || <a href="[% searchformurl %]">[% g('Packages search page') %]</a></p>
-
 <hr class="hidecss">
 <div id="fineprint" class="bordertop">
+<div id="impressum">
 <p>[% g('To report a problem with the web site, e-mail <a href="mailto:%s">%s</a>. For other contact information, see the %s <a href="%s">contact page</a>.',
        contact.mail, contact.mail, organisation, contact.url) %]</p>
-<p>[% IF timestamp.string; g('Generated:') _ ' ' _ timestamp.string _ '<br>'; END %]
-[% UNLESS footer.doNotDisplayCopyright;
-       g('Content Copyright &copy; %s <a href="%s">%s</a>; See <a href="%s">license terms</a>.',
+[% UNLESS footer.doNotDisplayCopyright %]
+<p>
+[%     g('Content Copyright &copy; %s <a href="%s">%s</a>; See <a href="%s">license terms</a>.',
                copyright.years, copyright.url, copyright.name, license.url);
-       ' ' _ trademarknotes IF trademarknotes;
-END %]
-<p><a href="/about/">[% g('Learn more about this site') %]</a>.</p>
+       ' ' _ trademarknotes IF trademarknotes %]
+ <a href="/about/">[% g('Learn more about this site') %]</a>.</p>
+[% END %]
+</div> <!-- end impressum -->
+[% IF sponsors.size %]
+<div id="sponsorfooter"><p>
+[% 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 -->
 </div> <!-- end footer -->
-</div> <!-- end outer -->
 </body>
 </html>