diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2009-06-06 14:16:23 +0200 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2009-06-06 14:16:23 +0200 |
commit | 71648b733395713000b5016e6319b5df14fdc634 (patch) | |
tree | 881a1c26b903dd7baddf5c550446ce3d920e2c4e | |
parent | 12693d8ea85373573a24c34f02edebd26762ad7f (diff) |
hover-zeile hervorheben
-rw-r--r-- | dudle.css | 6 | ||||
-rw-r--r-- | poll.rb | 4 |
2 files changed, 7 insertions, 3 deletions
@@ -4,6 +4,7 @@ * see Licence * *******************************/ + td.ayes, input.choosen { background-color:#0F0; } td.cno { background-color:#F00; } td.bmaybe { background-color:#FF0; } @@ -50,9 +51,12 @@ td { border-width: 0px; padding: 1px 3px; } -td.sum, td.date, td.name, td.checkboxes { +td.sum, tr.participantrow, tr#add_participant, tr#summary { background-color:Silver; } +tr.participantrow:hover { + background: #AAA; +} th { padding: 1px 3px; color: white; @@ -46,7 +46,7 @@ class Poll ret += head_to_html sort_data($cgi.include?("sort") ? $cgi.params["sort"] : ["timestamp"]).each{|participant,poll| - ret += "<tr>\n" + ret += "<tr class='participantrow'>\n" ret += "<td class='name' #{$cgi["edit"] == participant ? "id='active'":""}>" ret += participant ret += " <sup><a href='?edit=#{CGI.escape(participant)}'>edit</a></sup>" unless config @@ -74,7 +74,7 @@ class Poll ret += participate_to_html unless config # SUMMARY - ret += "<tr><td class='name'>total</td>\n" + ret += "<tr id='summary'><td class='name'>total</td>\n" @head.sort.each{|columntitle,columndescription| yes = 0 undecided = 0 |