diff options
-rw-r--r-- | classic.css | 5 | ||||
-rw-r--r-- | default.css | 5 | ||||
-rw-r--r-- | poll.rb | 2 | ||||
-rw-r--r-- | timepollhead.rb | 6 |
4 files changed, 14 insertions, 4 deletions
diff --git a/classic.css b/classic.css index fe4bdab..cb7f969 100644 --- a/classic.css +++ b/classic.css @@ -17,6 +17,11 @@ * along with dudle. If not, see <http://www.gnu.org/licenses/>. * ***************************************************************************/ +.invisible { + border: none; + background-color: #FFF; +} + td.ayes, td.bmaybe, td.cno { cursor:default; } td.ayes{ background-color:#0F0; } diff --git a/default.css b/default.css index 5b8215f..3ae4147 100644 --- a/default.css +++ b/default.css @@ -17,6 +17,11 @@ * along with dudle. If not, see <http://www.gnu.org/licenses/>. * ***************************************************************************/ +.invisible { + border: none; + background-color: #FFF; +} + a, a:visited { color:#36c; text-decoration:none; @@ -140,7 +140,7 @@ class Poll ret += "'>#{yes}</td>\n" } - ret += "</tr>" + ret += "<td class='invisible' /></tr>" ret += "</table>\n" ret end diff --git a/timepollhead.rb b/timepollhead.rb index 24958a0..b5d25dc 100644 --- a/timepollhead.rb +++ b/timepollhead.rb @@ -182,13 +182,13 @@ class TimePollHead ret.sort end def to_html(scols,config = false,activecolumn = nil) - ret = "<tr><td></td>" + ret = "<tr><th class='invisible' />" head_count("%Y-%m",false).each{|title,count| year, month = title.split("-").collect{|e| e.to_i} ret += "<th colspan='#{count}'>#{Date::ABBR_MONTHNAMES[month]} #{year}</th>\n" } - ret += "</tr><tr><td></td>" + ret += "<th class='invisible' /></tr><tr><th class='invisible'></th>" head_count("%Y-%m-%d",false).each{|title,count| ret += "<th colspan='#{count}'>#{Date.parse(title).strftime("%a, %d")}</th>\n" } @@ -197,7 +197,7 @@ class TimePollHead scols.include?(col) ? SORT : NOSORT end - ret += "</tr><tr><th><a href='?sort=name'>Name #{sortsymb(scols,"name")}</a></th>" + ret += "<th class='invisible' /></tr><tr><th><a href='?sort=name'>Name #{sortsymb(scols,"name")}</a></th>" @data.sort.each{|date| ret += "<th><a title='#{date}' href='?sort=#{CGI.escape(date.to_s + " ")}'>#{date.time_to_s} #{sortsymb(scols,date.to_s + " ")}</a></th>\n" } |