aboutsummaryrefslogtreecommitdiff
path: root/pollhead.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-11-20 15:31:14 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-11-20 15:31:14 +0100
commit00183811523468d9571d9da34bbe1356528dacae (patch)
tree7233270d886282f7b188373375fa15800081c93a /pollhead.rb
parentaf2fb0d4fd23739b726cc37e4ba0e7ea36b71457 (diff)
hide participation thing in history
Diffstat (limited to 'pollhead.rb')
-rw-r--r--pollhead.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/pollhead.rb b/pollhead.rb
index 35d397c..f062b13 100644
--- a/pollhead.rb
+++ b/pollhead.rb
@@ -78,13 +78,13 @@ class PollHead
end
end
- def to_html(config = false,activecolumn = nil)
+ def to_html(showeditbuttons = false,activecolumn = nil)
ret = "<tr><th><a href='?sort=name'>Name</a></th>\n"
@data.each{|columntitle,columndescription|
ret += "<th"
ret += " id='active' " if activecolumn == columntitle
ret += "><a title=\"#{columndescription}\" href=\"?sort=#{CGI.escapeHTML(CGI.escape(columntitle))}\">#{CGI.escapeHTML(columntitle)}</a>"
- if config
+ if showeditbuttons
ret += <<EDITDELETE
<div>
<small>
@@ -125,7 +125,7 @@ EDITDELETE
</form>
<fieldset><legend>Preview</legend>
<table>
-#{to_html(true)}
+#{to_html(true,activecolumn)}
</table>
</fieldset>
END