diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-11-09 17:56:20 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-11-09 17:56:20 +0000 |
commit | 57a4ee318af953ce2a1a08048ad5ff835ade1fee (patch) | |
tree | a5b1f0eba67433dc6079a845b48a1287b12965f4 /app | |
parent | d63746ab3e4143b7fc957466f699571155b22138 (diff) | |
download | redmine-57a4ee318af953ce2a1a08048ad5ff835ade1fee.tar.gz redmine-57a4ee318af953ce2a1a08048ad5ff835ade1fee.zip |
Link to activity view when displaying dates.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2002 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/application_helper.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 81d81a966..4a72b022b 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -129,7 +129,10 @@ module ApplicationHelper end def authoring(created, author) - time_tag = content_tag('acronym', distance_of_time_in_words(Time.now, created), :title => format_time(created)) + time_tag = @project.nil? ? content_tag('acronym', distance_of_time_in_words(Time.now, created), :title => format_time(created)) : + link_to(distance_of_time_in_words(Time.now, created), + {:controller => 'projects', :action => 'activity', :id => @project, :from => created.to_date}, + :title => format_time(created)) author_tag = (author.is_a?(User) && !author.anonymous?) ? link_to(h(author), :controller => 'account', :action => 'show', :id => author) : h(author || 'Anonymous') l(:label_added_time_by, author_tag, time_tag) end |