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 ++++++---- print.css | 38 +++++++++++++++++++------------------- 2 files changed, 25 insertions(+), 23 deletions(-) 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 diff --git a/print.css b/print.css index 906cb2b..ce5ee43 100644 --- a/print.css +++ b/print.css @@ -1,21 +1,21 @@ -/**************************************************************************** - * Copyright 2009 Benjamin Kellermann * - * * - * This file is part of dudle. * - * * - * Dudle is free software: you can redistribute it and/or modify it under * - * the terms of the GNU Affero General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * Dudle is distributed in the hope that it will be useful, but WITHOUT ANY * - * WARRANTY; without even the implied warranty of MERCHANTABILITY or * - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public * - * License for more details. * - * * - * You should have received a copy of the GNU Affero General Public License * - * along with dudle. If not, see . * - ****************************************************************************/ +/*************************************************************************** +* Copyright 2009 Benjamin Kellermann * +* * +* This file is part of dudle. * +* * +* Dudle is free software: you can redistribute it and/or modify it under * +* the terms of the GNU Affero General Public License as published by * +* the Free Software Foundation, either version 3 of the License, or * +* (at your option) any later version. * +* * +* Dudle is distributed in the hope that it will be useful, but WITHOUT ANY * +* WARRANTY; without even the implied warranty of MERCHANTABILITY or * +* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public * +* License for more details. * +* * +* You should have received a copy of the GNU Affero General Public License * +* along with dudle. If not, see . * +***************************************************************************/ td.ayes, input.choosen { background-color:#0F0; } @@ -88,7 +88,7 @@ tr.participantrow:hover { background: #AAA; } -div#add_comment,div#edit_column, div#history, div#backlink, input.delete_comment_button, tr#add_participant, div#configlink, div#tabs, p#history, span.edituser a{ +div#add_comment,div#edit_column, div#history, div#backlink, input.delete_comment_button, tr#add_participant, div#configlink, div#tabs, p#history, span.edituser, span.sortsymb{ visibility: collapse; } -- cgit v1.2.3