From: Frank Lichtenheld Date: Thu, 23 Nov 2006 22:23:04 +0000 (+0000) Subject: Add facilities to display a site wide message on all pages X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=280d3d35c7bd548cdac5f48625d61d2135af9f7a;p=deb%2Fpackages.git Add facilities to display a site wide message on all pages --- diff --git a/templates/config.tmpl b/templates/config.tmpl index bb5f7b8..3eeb2ff 100644 --- a/templates/config.tmpl +++ b/templates/config.tmpl @@ -37,3 +37,8 @@ } trademarknotes = organisation _ ' is a trademark of ' _ copyright.name -%] +[%#- + # possible values for importance: high, normal, low + sitewidemsg = { importance => "low", + txt => "Please note that this is an experimental version of packages.debian.org. Errors and obsolete information should be expected" } +-%] diff --git a/templates/html/head.tmpl b/templates/html/head.tmpl index 734d92a..bb752f8 100644 --- a/templates/html/head.tmpl +++ b/templates/html/head.tmpl @@ -14,6 +14,12 @@ +[%- IF sitewidemsg -%] +
+[%- IF sitewidemsg.title -%]

[% sitewidemsg.title %]

[% END %] +[% sitewidemsg.txt %] +
+[%- END -%]