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 --- authorization_required.cgi | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) (limited to 'authorization_required.cgi') diff --git a/authorization_required.cgi b/authorization_required.cgi index a251fdb..0511251 100755 --- a/authorization_required.cgi +++ b/authorization_required.cgi @@ -21,12 +21,11 @@ require "dudle" - if $cgi.include?("poll") Dir.chdir($cgi["poll"]) $is_poll = true - $d = Dudle.new + $d = Dudle.new(:hide_lang_chooser => true) $d << "

" + _("Authorization Required") + "

" case $cgi["user"] @@ -39,29 +38,18 @@ if $cgi.include?("poll") $d.out else - GetText.bindtextdomain("dudle",:path => "./locale/") - title = _("Authorization Required") - $h = HTML.new(title) - $h.add_css("/#{DEFAULT_CSS}","default",true) + $d = Dudle.new(:title => _("Authorization Required"), :hide_lang_chooser => true) returnstr = _("Return to dudle home and Schedule a new Poll") authstr = _("You have to authorize in order to request this page!") - $h << < -
-
-
-
-

#{title}

-

#{authstr}

- -

-
-
+ $d << <#{authstr}

+ +

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