From a426a6ca80e633fbf5e548ec78979d9d35e9dcfb Mon Sep 17 00:00:00 2001 From: Benjamin Kellermann Date: Mon, 27 Sep 2010 00:00:16 +0200 Subject: error pages have unified look --- not_found.cgi | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'not_found.cgi') 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 << < -
-
-
-
-

#{title}

+$d << < #{str[0]}

@@ -54,9 +47,7 @@ $h << <#{str[5]}

-
-
END -$h.out($cgi) +$d.out#($cgi) -- cgit v1.2.3