repo tab added. activities page for repo
This commit is contained in:
parent
e33aab0b21
commit
0ae9ac155c
6 changed files with 49 additions and 0 deletions
14
app/controllers/repositories_controller.rb
Normal file
14
app/controllers/repositories_controller.rb
Normal file
|
@ -0,0 +1,14 @@
|
|||
class RepositoriesController < ApplicationController
|
||||
before_filter :project
|
||||
|
||||
# Authorize
|
||||
before_filter :add_project_abilities
|
||||
before_filter :authorize_read_project!
|
||||
before_filter :require_non_empty_project
|
||||
|
||||
layout "project"
|
||||
|
||||
def show
|
||||
@activities = @project.fresh_commits(20)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue