diff options
-rw-r--r-- | dudle.css | 3 | ||||
-rw-r--r-- | poll.rb | 7 |
2 files changed, 7 insertions, 3 deletions
@@ -11,6 +11,9 @@ td.undecided { background-color:#DDD;color:#666 } td.name { text-align:right; } +td#active{ + background-color:#A00; +} input.historynavi{ border-width: 0px; border-style: none; @@ -38,7 +38,6 @@ class Poll ret += "<th title='#{columndescription}'><a href='?sort=#{columntitle}'>#{columntitle}</a></th>\n" } ret += "<th><a href='.'>Last Edit</a></th>\n" - ret += "<th></th>\n" ret += "</tr>\n" ret end @@ -48,7 +47,10 @@ class Poll ret += head_to_html sort_data($cgi.include?("sort") ? $cgi.params["sort"] : ["timestamp"]).each{|participant,poll| ret += "<tr>\n" - ret += "<td class='name'>#{participant}</td>\n" + ret += "<td class='name' #{$cgi["edit"] == participant ? "id='active'":""}>" + ret += participant + ret += " <sup><a href='?edit=#{CGI.escape(participant)}'>edit</a></sup>" + ret += "</td>\n" @head.sort.each{|columntitle,columndescription| klasse = poll[columntitle] case klasse @@ -65,7 +67,6 @@ class Poll ret += "<td class='#{klasse}' title='#{participant}: #{columntitle}'>#{value}</td>\n" } ret += "<td class='date'>#{poll['timestamp'].strftime('%d.%m, %H:%M')}</td>" - ret += "<td class='date'><a href='?edit=#{CGI.escape(participant)}'>edit</a></td>" ret += "</tr>\n" } |