aboutsummaryrefslogtreecommitdiff
path: root/poll.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2008-11-17 11:42:55 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2008-11-17 11:42:55 +0100
commitcb09cd55424b21904d42c2bf2157907ad981e532 (patch)
tree3d36667fc3c52df960a529bdb5e108e3add36e4d /poll.rb
parent5ec5ec180cfdae140f459c167741dabcd94f755a (diff)
added possibility to configure the system and outsourced bazaar specific things
Diffstat (limited to 'poll.rb')
-rw-r--r--poll.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/poll.rb b/poll.rb
index f045cf8..525a1f3 100644
--- a/poll.rb
+++ b/poll.rb
@@ -43,10 +43,11 @@ class Poll
ret += "<tr>\n"
ret += "<td class='name'>#{participant}</td>\n"
@head.sort.each{|columntitle,columndescription|
- klasse = poll[columntitle].nil? ? "undecided" : poll[columntitle]
- case poll[columntitle]
+ klasse = poll[columntitle]
+ case klasse
when nil
value = UNKNOWN
+ klasse = "undecided"
when "yes"
value = YES
when "no"
@@ -188,7 +189,7 @@ END
out << self.to_yaml
out.chmod(0660)
end
- `export LC_ALL=de_DE.UTF-8; bzr commit -m '#{CGI.escapeHTML(comment)}'`
+ vcs_commit(CGI.escapeHTML(comment))
end
def add_comment name, comment
@comment << [Time.now, CGI.escapeHTML(name.strip), CGI.escapeHTML(comment.strip).gsub("\r\n","<br />")]