Events displayed on project page. \n Fixed theme issue. \n New issue, mr events enabled
This commit is contained in:
parent
00028702fc
commit
5263dd4297
13 changed files with 153 additions and 57 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue