Project tab added. activities, team, snippets moved to project tab
This commit is contained in:
parent
6e5caa1985
commit
c1c903fb95
12 changed files with 80 additions and 27 deletions
|
@ -67,6 +67,13 @@ class ProjectsController < ApplicationController
|
|||
end
|
||||
|
||||
def show
|
||||
end
|
||||
|
||||
def files
|
||||
@notes = @project.notes.where("attachment != 'NULL'").order("created_at DESC")
|
||||
end
|
||||
|
||||
def activities
|
||||
return render "projects/empty" unless @project.repo_exists? && @project.has_commits?
|
||||
limit = (params[:limit] || 20).to_i
|
||||
@activities = @project.cached_updates(limit)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue