From bbe8ea29e8d3e6de60b96c08d60de9447bcceca9 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 5 Mar 2008 13:44:08 +0000 Subject: 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 --- app/helpers/projects_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/helpers/projects_helper.rb') diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index c07bbd2c2..a16377412 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -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 -- cgit v1.2.3