diff options
author | Matt Lee <mattl@gitlab.com> | 2017-01-20 10:55:32 -0500 |
---|---|---|
committer | Matt Lee <mattl@gitlab.com> | 2017-01-20 10:55:32 -0500 |
commit | b125fb4bcb637bd842db7d018d8f9c60303d9beb (patch) | |
tree | 5650bbba40af0655eb321ab5cb92de4667d53502 /app/controllers/projects | |
parent | 9cac0317696cf47beb77bab28a914411b09ff26c (diff) | |
download | gitlab-ce-b125fb4bcb637bd842db7d018d8f9c60303d9beb.tar.gz |
WIP: This makes the default sort order for branches 'recently updated' rather than by name.26890-sort-branches
Diffstat (limited to 'app/controllers/projects')
-rw-r--r-- | app/controllers/projects/branches_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/branches_controller.rb b/app/controllers/projects/branches_controller.rb index 89d84809e3a..07a0a51855b 100644 --- a/app/controllers/projects/branches_controller.rb +++ b/app/controllers/projects/branches_controller.rb @@ -7,7 +7,7 @@ class Projects::BranchesController < Projects::ApplicationController before_action :authorize_push_code!, only: [:new, :create, :destroy, :destroy_all_merged] def index - @sort = params[:sort].presence || sort_value_name + @sort = params[:sort].presence || sort_value_recently_updated @branches = BranchesFinder.new(@repository, params).execute @branches = Kaminari.paginate_array(@branches).page(params[:page]) |