diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2010-05-25 16:14:45 +0200 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2010-05-25 16:14:45 +0200 |
commit | e86c44498b21cbb8d882404ff7f36f9d53d42b73 (patch) | |
tree | 03afb5a290239f119a48ef71a76c059781b98085 /timepollhead.rb | |
parent | b0eef2d3c6f67a1dfe052a287f5a106beb6a5bb6 (diff) |
change position of edit/delete symbol
Diffstat (limited to '')
-rw-r--r-- | timepollhead.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/timepollhead.rb b/timepollhead.rb index 14f2339..bfeb625 100644 --- a/timepollhead.rb +++ b/timepollhead.rb @@ -117,13 +117,13 @@ class TimePollHead ret.sort end def to_html(scols,config = false,activecolumn = nil) - ret = "<tr><th class='invisible'></th>" + ret = "<tr><th colspan='2' class='invisible'></th>" head_count("%Y-%m",false).each{|title,count| year, month = title.split("-").collect{|e| e.to_i} ret += "<th colspan='#{count}'>#{Date::DATE_TEXTS[Date_locale.get_language_key(Locale.current)][:abbr_monthnames][month]} #{year}</th>\n" } - ret += "<th class='invisible'></th></tr><tr><th class='invisible'></th>" + ret += "<th class='invisible'></th></tr><tr><th colspan='2' class='invisible'></th>" head_count("%Y-%m-%d",false).each{|title,count| ret += "<th colspan='#{count}'>#{Date.parse(title).strftime('%a, %d')}</th>\n" } @@ -134,7 +134,7 @@ class TimePollHead SORTSYMBOL end - ret += "<th class='invisible'></th></tr><tr><th><a href='?sort=name'>" + _("Name") + " #{sortsymb(scols,"name")}</a></th>" + ret += "<th class='invisible'></th></tr><tr><th colspan='2'><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" } |