From 7361f40b0cac3c6eff5f8bc4252d71bebb87f1b1 Mon Sep 17 00:00:00 2001 From: huang Date: Tue, 1 Sep 2015 16:12:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B9=E7=9B=AE=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E6=97=B6=E9=97=B4=E6=98=BE=E7=A4=BA=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E9=A1=B5=E9=9D=A2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/application_helper.rb | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 7b83bb1c2..496565c23 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -756,15 +756,16 @@ module ApplicationHelper return ss end - 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)},options.reverse_merge(:title => format_time(time))) - else - content_tag('acronym', text, options.reverse_merge(:title => format_time(time))) - end - end + # def time_tag(time, *args) + # options = args.extract_options! + # text = distance_of_time_in_words(Time.now, time) + # if @project + # content_tag('acronym', text, options.reverse_merge(: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, options.reverse_merge(:title => format_time(time))) + # end + # end def syntax_highlight_lines(name, content) lines = []