repo branches and tags
This commit is contained in:
parent
d8247012b5
commit
a667c71312
7 changed files with 62 additions and 5 deletions
|
@ -11,4 +11,12 @@ class RepositoriesController < ApplicationController
|
|||
def show
|
||||
@activities = @project.fresh_commits(20)
|
||||
end
|
||||
|
||||
def branches
|
||||
@branches = @project.repo.heads.sort_by(&:name)
|
||||
end
|
||||
|
||||
def tags
|
||||
@tags = @project.repo.tags.sort_by(&:name).reverse
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue