#!/usr/bin/env ruby ############################################################################ # Copyright 2009-2019 Benjamin Kellermann # # # # This file is part of Dudle. # # # # Dudle is free software: you can redistribute it and/or modify it under # # the terms of the GNU Affero General Public License as published by # # the Free Software Foundation, either version 3 of the License, or # # (at your option) any later version. # # # # Dudle is distributed in the hope that it will be useful, but WITHOUT ANY # # WARRANTY; without even the implied warranty of MERCHANTABILITY or # # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public # # License for more details. # # # # You should have received a copy of the GNU Affero General Public License # # along with dudle. If not, see . # ############################################################################ if(ENV["REDIRECT_URL"]) require_relative "dudle" if File.exists?(Dir.pwd + File.dirname(ENV["REDIRECT_URL"])) $d = Dudle.new(:hide_lang_chooser => true, :load_extensions => false) else $d = Dudle.new(:hide_lang_chooser => true, :load_extensions => false, :relative_dir => "../") end title = _("Poll not found") str = [_("The requested poll was not found."), _("There are several reasons why a poll may have been deleted:"), _("Somebody clicked on “Delete poll” and deleted the poll manually."), _("The poll was deleted by the administrator because it was not accessed for a long time."), _("Return to Dudle home and schedule a new poll")] $d << < #{str[0]}

#{str[1]}

#{str[4]}

END $d.out#($cgi) else puts puts "Not Found" end