Events displayed on project page. \n Fixed theme issue. \n New issue, mr events enabled

This commit is contained in:
Dmitriy Zaporozhets 2012-03-01 22:43:04 +02:00
parent 00028702fc
commit 5263dd4297
13 changed files with 153 additions and 57 deletions

View file

@ -68,8 +68,8 @@ class ProjectsController < ApplicationController
def show
return render "projects/empty" unless @project.repo_exists? && @project.has_commits?
limit = (params[:limit] || 10).to_i
@activities = @project.activities(limit)
limit = (params[:limit] || 20).to_i
@events = @project.events.recent.limit(limit)
end
def files