diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2008-11-17 11:42:55 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2008-11-17 11:42:55 +0100 |
commit | cb09cd55424b21904d42c2bf2157907ad981e532 (patch) | |
tree | 3d36667fc3c52df960a529bdb5e108e3add36e4d /poll.rb | |
parent | 5ec5ec180cfdae140f459c167741dabcd94f755a (diff) |
added possibility to configure the system and outsourced bazaar specific things
Diffstat (limited to '')
-rw-r--r-- | poll.rb | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 />")] |