summaryrefslogtreecommitdiffstats
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-09-15 15:20:08 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-09-15 15:20:08 +0000
commit3c6ddc9cecc250b3853025ca8b10a964bed0ff97 (patch)
treef51d5f099c21f9c13a5bcd1a77b2d4978c7cfa47 /app/helpers/application_helper.rb
parent89b349818bfaee2669aab99df9e11de84c0f145c (diff)
downloadredmine-3c6ddc9cecc250b3853025ca8b10a964bed0ff97.tar.gz
redmine-3c6ddc9cecc250b3853025ca8b10a964bed0ff97.zip
Changed author display on issues, news and document files.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@732 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 794c6a63c..9f7b85707 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -73,6 +73,10 @@ module ApplicationHelper
@date_format_setting == 0 ? l_datetime(time) : (time.strftime("%Y-%m-%d") + ' ' + l_time(time))
end
+ def authoring(created, author)
+ l(:label_added_time_by, author.name, distance_of_time_in_words(Time.now, created))
+ end
+
def day_name(day)
l(:general_day_names).split(',')[day-1]
end