From 07134d873c7eed36befdb9fc06f6538ef8670f1c Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Tue, 5 Aug 2008 17:50:04 -0300 Subject: [PATCH] html/foot.tmpl: Overhaul the footer * Make it more compact by not including so many separate paragraphs. IMHO readability has not suffered much. * Remove the home page links. Since we now also have them at the top of page I think we can afford to loose them here. * Add the possibility to add a sponsor statement. This will be needed for the Debian instance. --- templates/config.tmpl | 4 ++++ templates/html/foot.tmpl | 25 ++++++++++++++----------- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/templates/config.tmpl b/templates/config.tmpl index 3e91e26..98525eb 100644 --- a/templates/config.tmpl +++ b/templates/config.tmpl @@ -47,6 +47,10 @@ mail => 'webmaster@debian.org', } trademarknotes = g('%s is a trademark of %s', organisation, trademark.url, trademark.name) +# sponsor = { +# url => 'http://example.invalid/', +# name => 'Example Sponsor, Inc.', +# } -%] [%- # possible values for importance: high, normal, low diff --git a/templates/html/foot.tmpl b/templates/html/foot.tmpl index b911d78..cbabd66 100644 --- a/templates/html/foot.tmpl +++ b/templates/html/foot.tmpl @@ -8,7 +8,7 @@ Total page evaluation took [% benchmark %]
[% IF langs.size > 0 %]
-

[% g('This page is also available in the following languages:') %]

+

[% g('This page is also available in the following languages (How to set the default document language):', cn_help_url) %]

[% END %] -
-

0 %]>[% g('Back to:') %] [% g('%s Homepage', organisation) %] || [% g('Packages search page') %]

-
+

[% g('To report a problem with the web site, e-mail %s. For other contact information, see the %s contact page.', contact.mail, contact.mail, organisation, contact.url) %]

-

[% IF timestamp.string; g('Generated:') _ ' ' _ timestamp.string _ '
'; END %] -[% UNLESS footer.doNotDisplayCopyright; - g('Content Copyright © %s %s; See license terms.', +[% UNLESS footer.doNotDisplayCopyright %] +

+[% g('Content Copyright © %s %s; See license terms.', copyright.years, copyright.url, copyright.name, license.url); - ' ' _ trademarknotes IF trademarknotes; -END %] -

[% g('Learn more about this site') %].

+ ' ' _ trademarknotes IF trademarknotes %] + [% g('Learn more about this site') %].

+[% END %] +
+[% IF sponsor.name %] +

+[% g('Hosting provided by %s.', sponsor.url, sponsor.name) %] +

+[% END %]
-- 2.39.2