##// END OF EJS Templates
Link to activity view when displaying dates....
Jean-Philippe Lang -
r2000:57a4ee318af9
parent child
Show More
@@ -129,7 +129,10 module ApplicationHelper
129 end
129 end
130
130
131 def authoring(created, author)
131 def authoring(created, author)
132 time_tag = content_tag('acronym', distance_of_time_in_words(Time.now, created), :title => format_time(created))
132 time_tag = @project.nil? ? content_tag('acronym', distance_of_time_in_words(Time.now, created), :title => format_time(created)) :
133 link_to(distance_of_time_in_words(Time.now, created),
134 {:controller => 'projects', :action => 'activity', :id => @project, :from => created.to_date},
135 :title => format_time(created))
133 author_tag = (author.is_a?(User) && !author.anonymous?) ? link_to(h(author), :controller => 'account', :action => 'show', :id => author) : h(author || 'Anonymous')
136 author_tag = (author.is_a?(User) && !author.anonymous?) ? link_to(h(author), :controller => 'account', :action => 'show', :id => author) : h(author || 'Anonymous')
134 l(:label_added_time_by, author_tag, time_tag)
137 l(:label_added_time_by, author_tag, time_tag)
135 end
138 end
General Comments 0
You need to be logged in to leave comments. Login now