diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-05 17:59:58 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-05 17:59:58 +0300 |
commit | 88c741dde062e320ad007a2c5ccb4e7bdc6cdacf (patch) | |
tree | 71f4d4eafbcfde57674c74e13c75f736d248ad57 /app/controllers/projects/branches_controller.rb | |
parent | bb5e50e0f78ec0dc68d637a43b6ea9889ef1a10d (diff) | |
download | gitlab-ce-88c741dde062e320ad007a2c5ccb4e7bdc6cdacf.tar.gz |
Refactor recent branches page
Diffstat (limited to 'app/controllers/projects/branches_controller.rb')
-rw-r--r-- | app/controllers/projects/branches_controller.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/projects/branches_controller.rb b/app/controllers/projects/branches_controller.rb index 97dbb2bc0c0..aa6914414ce 100644 --- a/app/controllers/projects/branches_controller.rb +++ b/app/controllers/projects/branches_controller.rb @@ -11,6 +11,10 @@ class Projects::BranchesController < Projects::ApplicationController @branches = Kaminari.paginate_array(@repository.branches).page(params[:page]).per(30) end + def recent + @branches = @repository.recent_branches + end + def create @repository.add_branch(params[:branch_name], params[:ref]) |