Project tab added. activities, team, snippets moved to project tab

This commit is contained in:
Dmitriy Zaporozhets 2011-12-28 09:38:50 +02:00
parent 6e5caa1985
commit c1c903fb95
12 changed files with 80 additions and 27 deletions

View file

@ -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)