redmine-diff.txt

the patch to add the support to show the word Yesterday in activities - vikas yadav, 2011-01-25 07:32

Download (494 Bytes)

 
1
Index: application_helper.rb
2
===================================================================
3
--- application_helper.rb	(revision 4761)
4
+++ application_helper.rb	(working copy)
5
@@ -166,7 +166,7 @@
6
   end
7
   
8
   def format_activity_day(date)
9
-    date == Date.today ? l(:label_today).titleize : format_date(date)
10
+    date == Date.today ? l(:label_today).titleize : (Date.today-date == 1 ? l(:label_yesterday).titleize : format_date(date))
11
   end
12
   
13
   def format_activity_description(text)