aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/default
diff options
context:
space:
mode:
authorEdmund von der Burg <evdb@mysociety.org>2011-02-24 16:38:33 +0000
committerEdmund von der Burg <evdb@mysociety.org>2011-02-24 16:38:33 +0000
commit76d9c70173c1daa94de7b7beb18dd04a638b86dd (patch)
tree7b16a176aa295198b93726d7cc7c3d5876581b29 /templates/web/default
parentecb8d86abd0ff4467dbb3f20adeb84845e48f38e (diff)
Extract debug header code for reuse
add header to emptyhomes
Diffstat (limited to 'templates/web/default')
-rw-r--r--templates/web/default/debug_header.html5
-rw-r--r--templates/web/default/header.html6
2 files changed, 6 insertions, 5 deletions
diff --git a/templates/web/default/debug_header.html b/templates/web/default/debug_header.html
new file mode 100644
index 000000000..247e55128
--- /dev/null
+++ b/templates/web/default/debug_header.html
@@ -0,0 +1,5 @@
+[% IF c.config.STAGING_SITE %]
+ <p class="error">
+ [% loc("This is a developer site; things might break at any time, and the database will be periodically deleted.") %]
+ </p>
+[% END %]
diff --git a/templates/web/default/header.html b/templates/web/default/header.html
index d26ebaa2b..ce7caa8fb 100644
--- a/templates/web/default/header.html
+++ b/templates/web/default/header.html
@@ -20,8 +20,4 @@
<div id="wrapper"><div id="content">
- [% IF c.config.STAGING_SITE %]
- <p class="error">
- [% loc("This is a developer site; things might break at any time, and the database will be periodically deleted.") %]
- </p>
- [% END %] \ No newline at end of file
+ [% INCLUDE 'debug_header.html' %]