aboutsummaryrefslogtreecommitdiff
path: root/poll.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-06-03 09:26:03 +0200
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-06-03 09:26:03 +0200
commit9787fd0ee2f885e78f079722ea8fc24ed645f179 (patch)
tree166b7c29c0096a05fb62190507408548948465bf /poll.rb
parentb7e5654a565ee3d76f290cf14fbd4ac5632814d5 (diff)
do not show edit button in config mode
Diffstat (limited to 'poll.rb')
-rw-r--r--poll.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/poll.rb b/poll.rb
index 2b735f8..f8ed635 100644
--- a/poll.rb
+++ b/poll.rb
@@ -49,7 +49,7 @@ class Poll
ret += "<tr>\n"
ret += "<td class='name' #{$cgi["edit"] == participant ? "id='active'":""}>"
ret += participant
- ret += " <sup><a href='?edit=#{CGI.escape(participant)}'>edit</a></sup>"
+ ret += " <sup><a href='?edit=#{CGI.escape(participant)}'>edit</a></sup>" unless config
ret += "</td>\n"
@head.sort.each{|columntitle,columndescription|
klasse = poll[columntitle]