aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-12-09 22:49:01 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-12-09 22:49:01 +0100
commit0e53012e5c656f2a54e8550a7a43e7908862a289 (patch)
treef9a0a3e92f32f012440f9e79eb6668ae6a11c6ea
parent4951881f53177c06ebecfd5aca8800fff631c9bf (diff)
hide sortsymbol in print.css
-rw-r--r--pollhead.rb10
-rw-r--r--print.css38
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
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 <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;
}