Stats page
This commit is contained in:
parent
ca54d43f99
commit
1c5b2a5153
10 changed files with 186 additions and 15 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue