From 2411b8e804a98bba43da4ad2b341e73d7b748a07 Mon Sep 17 00:00:00 2001 From: Benjamin Kellermann Date: Fri, 27 May 2011 15:14:52 +0200 Subject: add thead, tbody and to main table --- poll.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'poll.rb') diff --git a/poll.rb b/poll.rb index dea71a8..1d6389b 100644 --- a/poll.rb +++ b/poll.rb @@ -107,10 +107,11 @@ class Poll end def to_html(showparticipation = true) # border=1 for textbrowsers ;--) - ret = "\n" + ret = "
\n" sortcolumns = $cgi.include?("sort") ? $cgi.params["sort"] : ["timestamp"] - ret += @head.to_html(sortcolumns) + ret += "#{@head.to_html(sortcolumns)}" + ret += "" sort_data(sortcolumns).each{|participant,poll| if $cgi["edituser"] == participant ret += participate_to_html @@ -141,6 +142,7 @@ class Poll @@table_html_hooks.each{|hook| ret += hook.call(ret)} + ret += "" # PARTICIPATE ret += participate_to_html unless @data.keys.include?($cgi["edituser"]) || !showparticipation @@ -171,7 +173,7 @@ class Poll } ret += "" - ret += "
\n" + ret += "\n" ret end -- cgit v1.2.3