aboutsummaryrefslogtreecommitdiff
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
parent2771ea43d428d61a4942e079b663f1c2ec90c983 (diff)
avoid empty tags
-rw-r--r--dudle.rb2
-rw-r--r--poll.rb4
-rw-r--r--timepollhead.rb6
3 files changed, 6 insertions, 6 deletions
diff --git a/dudle.rb b/dudle.rb
index d20ea29..868475c 100644
--- a/dudle.rb
+++ b/dudle.rb
@@ -59,7 +59,7 @@ class Dudle
when _(active_tab)
ret += "<li id='active_tab' >&nbsp;#{tab}&nbsp;</li> "
when ""
- ret += "<li class='separator_tab' />"
+ ret += "<li class='separator_tab'></li>"
else
ret += "<li class='nonactive_tab' ><a href='#{file}'>&nbsp;#{tab}&nbsp;</a></li> "
end
diff --git a/poll.rb b/poll.rb
index 316a966..6ea25bb 100644
--- a/poll.rb
+++ b/poll.rb
@@ -137,7 +137,7 @@ class Poll
ret += "'>#{yes}</td>\n"
}
- ret += "<td class='invisible' /></tr>"
+ ret += "<td class='invisible'></td></tr>"
ret += "</table>\n"
ret
end
@@ -165,7 +165,7 @@ INVITE
edituser = $cgi.cookies["username"][0] unless @data.include?($cgi.cookies["username"][0])
@head.columns.each{|k| checked[k] = NOVAL}
end
- ret = "<tr id='separator'><td colspan='#{@head.col_size + 2}' class='invisible' /></tr>\n"
+ ret = "<tr id='separator'><td colspan='#{@head.col_size + 2}' class='invisible'></td></tr>\n"
ret += "<tr id='add_participant'>\n"
ret += "<td class='name'>
<input type='hidden' name='olduser' value=\"#{edituser}\" />
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"
}