aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dudle.css6
-rw-r--r--poll.rb4
2 files changed, 7 insertions, 3 deletions
diff --git a/dudle.css b/dudle.css
index 975fa2b..02dfb15 100644
--- a/dudle.css
+++ b/dudle.css
@@ -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;
diff --git a/poll.rb b/poll.rb
index bbcb411..e844917 100644
--- a/poll.rb
+++ b/poll.rb
@@ -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