Display the last 30 days on the activity view rather than the current month.

Number of days can be configured in the application settings.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1196 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-03-05 13:44:08 +00:00
parent fbcdfee622
commit bbe8ea29e8
29 changed files with 50 additions and 28 deletions
+4
View File
@@ -26,6 +26,10 @@ module ProjectsHelper
}, options
end
def format_activity_day(date)
date == Date.today ? l(:label_today).titleize : format_date(date)
end
def format_activity_description(text)
h(truncate(text, 250))
end