From cc5025b06013380fe07adecab5ca670b75eb690f Mon Sep 17 00:00:00 2001 From: Benjamin Kellermann Date: Wed, 22 Sep 2010 14:10:48 +0200 Subject: better approach to example polls (generate a new one for every user) --- config_sample.rb | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'config_sample.rb') diff --git a/config_sample.rb b/config_sample.rb index 0441d8c..d8a3993 100644 --- a/config_sample.rb +++ b/config_sample.rb @@ -53,10 +53,20 @@ BUGREPORTMAIL = "Benjamin.Kellermann@tu-dresden.de" AUTO_SEND_REPORT = false # Add some Example Polls to the start page -EXAMPLES = { - "event_schedule_example" => "coffeebreak", - "normal_example" => "coffee" -} +# you may create those using the normal interface +# and make them password protected afterwards +# .htaccess and .htdigest are deleted after +# example creation (defining password protected +# examples is not possible therefore) +EXAMPLES = [ + { + :url => "coffeebreak", + :description => _("Event Schedule Poll") + },{ + :url => "coffee", + :description => _("Normal Poll") + } +] # add the htmlcode in the Variable NOTICE to the startpage # Example: displays all available Polls -- cgit v1.2.3