diff options
-rw-r--r-- | pollhead.rb | 10 | ||||
-rw-r--r-- | 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 <<SORTSYMBOL +<span class='sortsymb'> #{scols.include?(col) ? SORT : NOSORT}</span> +SORTSYMBOL end ret = "<tr>" - ret += "<th><a href='?sort=name'>Name #{sortsymb(scols,"name")}</a></th>\n" unless showeditbuttons + ret += "<th><a href='?sort=name'>Name#{sortsymb(scols,"name")}</span></a></th>\n" unless showeditbuttons @data.sort.each{|columntitle,columndescription| ret += "<th" ret += " id='active' " if activecolumn == columntitle ret += ">" ret += "<a title=\"#{columndescription}\" href=\"?sort=#{CGI.escapeHTML(CGI.escape(columntitle))}\">" unless showeditbuttons ret += "#{CGI.escapeHTML(columntitle)}" - ret += " #{sortsymb(scols,columntitle)}</a>" unless showeditbuttons + ret += "#{sortsymb(scols,columntitle)}</a>" unless showeditbuttons if showeditbuttons ret += <<EDITDELETE <div> @@ -83,7 +85,7 @@ EDITDELETE end ret += "</th>" } - ret += "<th><a href='?'>Last Edit #{sortsymb(scols,"timestamp")}</a></th>\n" unless showeditbuttons + ret += "<th><a href='?'>Last Edit#{sortsymb(scols,"timestamp")}</a></th>\n" unless showeditbuttons ret += "</tr>\n" ret end @@ -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 <http://www.gnu.org/licenses/>. * - ****************************************************************************/ +/*************************************************************************** +* 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 <http://www.gnu.org/licenses/>. * +***************************************************************************/ 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; } |