Performance improvement on calendar and gantt (about 45% on gantt for large number of issues).

Partial issues/_tooltip is replaced by an helper and some translated strings are now cached.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@794 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2007-10-03 17:20:04 +00:00
parent c3e3a1891b
commit 20b4e226fe
8 changed files with 21 additions and 12 deletions
+2 -2
View File
@@ -70,8 +70,8 @@ module ApplicationHelper
def format_date(date)
return nil unless date
@date_format_setting ||= Setting.date_format.to_i
@date_format_setting == 0 ? l_date(date) : date.strftime("%Y-%m-%d")
@date_format ||= (Setting.date_format.to_i == 0 ? l(:general_fmt_date) : date.strftime("%Y-%m-%d"))
date.strftime(@date_format)
end
def format_time(time)