Stats page

This commit is contained in:
randx 2012-11-10 23:08:47 +02:00
parent ca54d43f99
commit 1c5b2a5153
10 changed files with 186 additions and 15 deletions

View file

@ -16,9 +16,14 @@ class RepositoriesController < ProjectResourceController
@tags = @project.tags
end
def stats
@stats = Gitlab::GitStats.new(@project.repo, @project.root_ref)
@graph = @stats.graph
end
def archive
unless can?(current_user, :download_code, @project)
render_404 and return
render_404 and return
end