From 1a748a02a0ce3c7dd0cde2851d7e1460698482c0 Mon Sep 17 00:00:00 2001 From: Benjamin Kellermann Date: Wed, 22 Sep 2010 23:48:52 +0200 Subject: even better example approach (possibility to specify revision number) --- config_sample.rb | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'config_sample.rb') diff --git a/config_sample.rb b/config_sample.rb index d8a3993..69263c8 100644 --- a/config_sample.rb +++ b/config_sample.rb @@ -61,10 +61,16 @@ AUTO_SEND_REPORT = false EXAMPLES = [ { :url => "coffeebreak", - :description => _("Event Schedule Poll") + :description => _("Event Schedule Poll"), + :new_environment => true, },{ :url => "coffee", - :description => _("Normal Poll") + :description => _("Normal Poll"), + :revno => 34 + },{ + :url => "Cheater", + :description => "Cheater", + :hidden => true } ] @@ -81,7 +87,7 @@ Dir.glob("*/data.yaml").sort_by{|f| File.new(f).mtime }.reverse.collect{|f| f.gsub(/\/data\.yaml$/,'') }.each{|site| notice += < + #{CGI.escapeHTML(site)} #{File.new(site + "/data.yaml").mtime.strftime('%d.%m, %H:%M')} -- cgit v1.2.3