]> source.dussan.org Git - redmine.git/commitdiff
Use named route.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 24 Jan 2015 10:58:21 +0000 (10:58 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 24 Jan 2015 10:58:21 +0000 (10:58 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@13941 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb

index 783cd7758f6b3a89334107f20fba82c252dbbcde..53b9037bdfa5449200c2e49de7a4287b4cca6bd6 100644 (file)
@@ -425,7 +425,7 @@ module ApplicationHelper
   def time_tag(time)
     text = distance_of_time_in_words(Time.now, time)
     if @project
-      link_to(text, {:controller => 'activities', :action => 'index', :id => @project, :from => User.current.time_to_date(time)}, :title => format_time(time))
+      link_to(text, project_activity_path(@project, :from => User.current.time_to_date(time)), :title => format_time(time))
     else
       content_tag('abbr', text, :title => format_time(time))
     end