From 0e53012e5c656f2a54e8550a7a43e7908862a289 Mon Sep 17 00:00:00 2001 From: Benjamin Kellermann Date: Wed, 9 Dec 2009 22:49:01 +0100 Subject: hide sortsymbol in print.css --- pollhead.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'pollhead.rb') diff --git a/pollhead.rb b/pollhead.rb index 9afd8b3..524631b 100644 --- a/pollhead.rb +++ b/pollhead.rb @@ -56,17 +56,19 @@ class PollHead def to_html(scols, showeditbuttons = false,activecolumn = nil) def sortsymb(scols,col) - scols.include?(col) ? SORT : NOSORT + return < #{scols.include?(col) ? SORT : NOSORT} +SORTSYMBOL end ret = "" - ret += "Name #{sortsymb(scols,"name")}\n" unless showeditbuttons + ret += "Name#{sortsymb(scols,"name")}\n" unless showeditbuttons @data.sort.each{|columntitle,columndescription| ret += "" unless showeditbuttons ret += "#{CGI.escapeHTML(columntitle)}" - ret += " #{sortsymb(scols,columntitle)}" unless showeditbuttons + ret += "#{sortsymb(scols,columntitle)}" unless showeditbuttons if showeditbuttons ret += < @@ -83,7 +85,7 @@ EDITDELETE end ret += "" } - ret += "Last Edit #{sortsymb(scols,"timestamp")}\n" unless showeditbuttons + ret += "Last Edit#{sortsymb(scols,"timestamp")}\n" unless showeditbuttons ret += "\n" ret end -- cgit v1.2.3