|
|
|
@ -578,12 +578,13 @@ module ApplicationHelper
|
|
|
|
|
return ss
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def time_tag(time)
|
|
|
|
|
def time_tag(time, *args)
|
|
|
|
|
options = args.extract_options!
|
|
|
|
|
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, {:controller => 'activities', :action => 'index', :id => @project, :from => User.current.time_to_date(time)},options.reverse_merge(:title => format_time(time)))
|
|
|
|
|
else
|
|
|
|
|
content_tag('acronym', text, :title => format_time(time))
|
|
|
|
|
content_tag('acronym', text, options.reverse_merge(:title => format_time(time)))
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|