diff options
Diffstat (limited to '')
-rw-r--r-- | poll.rb | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -49,6 +49,12 @@ class Poll YESVAL = "a_yes__" MAYBEVAL = "b_maybe" NOVAL = "c_no___" + + @@table_html_hooks = [] + def Poll.table_html_hooks + @@table_html_hooks + end + def initialize name,type @name = name @@ -133,6 +139,8 @@ class Poll end } + @@table_html_hooks.each{|hook| ret += hook.call(ret)} + # PARTICIPATE ret += participate_to_html unless @data.keys.include?($cgi["edituser"]) || !showparticipation |