summaryrefslogtreecommitdiffstats
path: root/app/helpers/projects_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-03-05 13:44:08 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-03-05 13:44:08 +0000
commitbbe8ea29e8d3e6de60b96c08d60de9447bcceca9 (patch)
tree759b4deb14fe8c0476e042f18168f912cf461377 /app/helpers/projects_helper.rb
parentfbcdfee622729792ab58648228209bbd3c2142b6 (diff)
downloadredmine-bbe8ea29e8d3e6de60b96c08d60de9447bcceca9.tar.gz
redmine-bbe8ea29e8d3e6de60b96c08d60de9447bcceca9.zip
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
Diffstat (limited to 'app/helpers/projects_helper.rb')
-rw-r--r--app/helpers/projects_helper.rb4
1 files changed, 4 insertions, 0 deletions
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