aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dudle.css3
-rw-r--r--poll.rb7
2 files changed, 7 insertions, 3 deletions
diff --git a/dudle.css b/dudle.css
index 0b6fba5..894b24b 100644
--- a/dudle.css
+++ b/dudle.css
@@ -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;
diff --git a/poll.rb b/poll.rb
index c4db994..a219534 100644
--- a/poll.rb
+++ b/poll.rb
@@ -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"
}