aboutsummaryrefslogtreecommitdiff
path: root/timepollhead.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2010-01-28 21:52:27 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2010-01-28 21:52:27 +0100
commit46f30653945cd99ef175100d06784a5f6af92fbf (patch)
tree00ebb99a391f01c17b7646942502336db17e1291 /timepollhead.rb
parent2771ea43d428d61a4942e079b663f1c2ec90c983 (diff)
avoid empty tags
Diffstat (limited to 'timepollhead.rb')
-rw-r--r--timepollhead.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/timepollhead.rb b/timepollhead.rb
index 454782b..ba649a0 100644
--- a/timepollhead.rb
+++ b/timepollhead.rb
@@ -119,13 +119,13 @@ class TimePollHead
ret.sort
end
def to_html(scols,config = false,activecolumn = nil)
- ret = "<tr><th class='invisible' />"
+ ret = "<tr><th class='invisible'></th>"
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 += "<th class='invisible' /></tr><tr><th class='invisible'></th>"
+ ret += "<th class='invisible'></th></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"
}
@@ -134,7 +134,7 @@ class TimePollHead
scols.include?(col) ? SORT : NOSORT
end
- ret += "<th class='invisible' /></tr><tr><th><a href='?sort=name'>Name #{sortsymb(scols,"name")}</a></th>"
+ ret += "<th class='invisible'></th></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"
}