Skip to content
代码片段 群组 项目
提交 f2808191 编辑于 作者: gitlabhq's avatar gitlabhq
浏览文件

fixed wall --all option

上级 a07923a5
无相关合并请求
......@@ -83,16 +83,15 @@ def show
#
def wall
@date = case params[:view]
when "week" then Date.today - 7.days
when "all" then nil
when "day" then Date.today
else nil
end
@notes = @project.common_notes.order("created_at DESC")
@notes = @date ? @notes.since(@date.at_beginning_of_day) : @notes.fresh.limit(10)
@note = Note.new
@notes = @project.common_notes.order("created_at DESC")
@notes = case params[:view]
when "week" then @notes.since((Date.today - 7.days).at_beginning_of_day)
when "all" then @notes.all
when "day" then @notes.since(Date.today.at_beginning_of_day)
else @notes.fresh.limit(10)
end
end
#
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册