修复时间乱的问题

tmp
huang 10 years ago
parent 469293bc1f
commit 0e4019be2f

@ -115,7 +115,7 @@ class MemosController < ApplicationController
REPLIES_PER_PAGE = 20 unless const_defined?(:REPLIES_PER_PAGE) REPLIES_PER_PAGE = 20 unless const_defined?(:REPLIES_PER_PAGE)
def show def show
#更新贴吧帖子留言对应的memo_messages的viewed字段 # 更新贴吧帖子留言对应的memo_messages的viewed字段
query_memo_messages = @memo.memo_messages query_memo_messages = @memo.memo_messages
pre_count = REPLIES_PER_PAGE pre_count = REPLIES_PER_PAGE

@ -28,6 +28,7 @@ class PollController < ApplicationController
render_403 render_403
return return
end end
# 问卷消息状态更新
query_course_poll = @poll.course_messages query_course_poll = @poll.course_messages
query_course_poll.each do |query| query_course_poll.each do |query|
if User.current.id == query.user_id if User.current.id == query.user_id

@ -756,16 +756,16 @@ module ApplicationHelper
return ss return ss
end end
# def time_tag(time, *args) def time_tag(time, *args)
# options = args.extract_options! options = args.extract_options!
# text = distance_of_time_in_words(Time.now, time) text = distance_of_time_in_words(Time.now, time)
# if @project if @project
# content_tag('acronym', text, options.reverse_merge(:title => format_time(time))) 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))) # link_to(text, {:controller => 'activities', :action => 'index', :id => @project, :from => User.current.time_to_date(time)},options.reverse_merge(:title => format_time(time)))
# else else
# content_tag('acronym', text, options.reverse_merge(:title => format_time(time))) content_tag('acronym', text, options.reverse_merge(:title => format_time(time)))
# end end
# end end
def syntax_highlight_lines(name, content) def syntax_highlight_lines(name, content)
lines = [] lines = []

Loading…
Cancel
Save