aboutsummaryrefslogtreecommitdiff
path: root/not_found.cgi
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2010-09-27 00:00:16 +0200
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2010-09-27 00:00:16 +0200
commita426a6ca80e633fbf5e548ec78979d9d35e9dcfb (patch)
tree0b7db8c0c070ad2f362a76ce3aca922afcb2eaaa /not_found.cgi
parent8a4a2128e3c4bd7f2e1ac94e99f4a46447e66c24 (diff)
error pages have unified look
Diffstat (limited to 'not_found.cgi')
-rwxr-xr-xnot_found.cgi17
1 files changed, 4 insertions, 13 deletions
diff --git a/not_found.cgi b/not_found.cgi
index a22d081..7241210 100755
--- a/not_found.cgi
+++ b/not_found.cgi
@@ -20,12 +20,11 @@
############################################################################
require "dudle"
-GetText.bindtextdomain("dudle",:path => "./locale/")
+$d = Dudle.new(:title => "foo", :hide_lang_chooser => true)
title = _("Poll Not Found")
-$h = HTML.new(title)
-$h.add_css("/#{DEFAULT_CSS}","default",true)
+
str = [_("The requested Poll was not found."),
_("There are several reasons, why a Poll is deleted:"),
_("Somebody klicked on “Delete Poll” and deleted the poll manually."),
@@ -33,13 +32,7 @@ str = [_("The requested Poll was not found."),
_("If you think, the deletion was done by error, please contact the adminsistrator of the system."),
_("Return to dudle home and Schedule a new Poll")]
-$h << <<END
-<div id='header1'></div>
-<div id='header2'></div>
-<div id='header3'></div>
-<div id='main'>
- <div id='content'>
- <h1>#{title}</h1>
+$d << <<END
<p>
#{str[0]}
</p>
@@ -54,9 +47,7 @@ $h << <<END
<li><a href='#{SITEURL}'>#{str[5]}</a></li>
</ul>
</p>
- </div>
-</div>
END
-$h.out($cgi)
+$d.out#($cgi)