提交 8e9a115a 编写于 作者: D Dmitriy Zaporozhets

commit time sort

上级 9352a3e6
......@@ -64,7 +64,7 @@ class ProjectsController < ApplicationController
@heads = @project.repo.heads
@commits = @heads.map do |h|
@project.repo.log(h.name, nil, :since => @date)
end.flatten.uniq { |c| c.id }
end.flatten.uniq { |c| c.id }.sort { |x, y| x.committed_date <=> x.committed_date }
@messages = project.notes.last_week.limit(40).order("created_at DESC")
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册