aboutsummaryrefslogtreecommitdiff
path: root/not_found.cgi
diff options
context:
space:
mode:
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)