diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2009-12-01 15:17:05 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2009-12-01 15:17:05 +0100 |
commit | 500220a0556ddc04437e6ec86bd422e00cbe06fc (patch) | |
tree | 2a85ff6ee639303b9579ca1bf20f82d972e50587 /timepollhead.rb | |
parent | 064157b1128f74b8ed0456fa7392a569d6668e19 (diff) |
fix opera display issue
Diffstat (limited to 'timepollhead.rb')
-rw-r--r-- | timepollhead.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/timepollhead.rb b/timepollhead.rb index 24958a0..b5d25dc 100644 --- a/timepollhead.rb +++ b/timepollhead.rb @@ -182,13 +182,13 @@ class TimePollHead ret.sort end def to_html(scols,config = false,activecolumn = nil) - ret = "<tr><td></td>" + ret = "<tr><th class='invisible' />" head_count("%Y-%m",false).each{|title,count| year, month = title.split("-").collect{|e| e.to_i} ret += "<th colspan='#{count}'>#{Date::ABBR_MONTHNAMES[month]} #{year}</th>\n" } - ret += "</tr><tr><td></td>" + ret += "<th class='invisible' /></tr><tr><th class='invisible'></th>" head_count("%Y-%m-%d",false).each{|title,count| ret += "<th colspan='#{count}'>#{Date.parse(title).strftime("%a, %d")}</th>\n" } @@ -197,7 +197,7 @@ class TimePollHead scols.include?(col) ? SORT : NOSORT end - ret += "</tr><tr><th><a href='?sort=name'>Name #{sortsymb(scols,"name")}</a></th>" + ret += "<th class='invisible' /></tr><tr><th><a href='?sort=name'>Name #{sortsymb(scols,"name")}</a></th>" @data.sort.each{|date| ret += "<th><a title='#{date}' href='?sort=#{CGI.escape(date.to_s + " ")}'>#{date.time_to_s} #{sortsymb(scols,date.to_s + " ")}</a></th>\n" } |