summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2008-12-29 14:48:33 +0100
committerYorhel <git@yorhel.nl>2009-01-02 17:02:07 +0100
commitd620b3428e324bd36ec006b49808e68bef2fbb5d (patch)
tree4eeeac810ca009bded02feb7c13dabb5e0895368 /lib
parentffca95eb1b265e461d4287e28a49ba91e69ad3a6 (diff)
Replaced the red title header with a red box on the bottom-left of the page for debug versions
It's rather annoying if you think you're working on VNDB, but end up editing on the beta. This should make it more obvious on which version you're working.
Diffstat (limited to 'lib')
-rw-r--r--lib/VNDB/Util/LayoutHTML.pm10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/VNDB/Util/LayoutHTML.pm b/lib/VNDB/Util/LayoutHTML.pm
index a8773894..f16c79fc 100644
--- a/lib/VNDB/Util/LayoutHTML.pm
+++ b/lib/VNDB/Util/LayoutHTML.pm
@@ -32,7 +32,7 @@ sub htmlHeader { # %options->{ title, js, noindex, search }
body;
div id => 'bgright', ' ';
div id => 'header';
- h1 $self->debug ? (class => 'debug') : ();
+ h1;
a href => '/', lc $self->{site_title};
end;
end;
@@ -144,6 +144,14 @@ sub htmlFooter {
a href => 'mailto:contact@vndb.org', 'contact@vndb.org';
end;
end; # /div maincontent
+ if($self->debug) {
+ div id => 'debug';
+ h2 'This is not VNDB!';
+ txt 'The real VNDB is ';
+ a href => 'http://vndb.org/', 'here';
+ txt '.';
+ end;
+ }
end; # /body
end; # /html