From 280d3d35c7bd548cdac5f48625d61d2135af9f7a Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Thu, 23 Nov 2006 22:23:04 +0000 Subject: [PATCH] Add facilities to display a site wide message on all pages --- templates/config.tmpl | 5 +++++ templates/html/head.tmpl | 6 ++++++ 2 files changed, 11 insertions(+) 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 -%]