Skip to content
Snippets Groups Projects
Commit 6e3eec16 authored by Rémy Coutable's avatar Rémy Coutable
Browse files

Merge branch '26890-sort-branches' into 'master'

This makes the default sort order for branches 'recently updated' rather than by name.

Closes #26890

See merge request !8666
parents bb23d462 b125fb4b
No related branches found
No related tags found
No related merge requests found
Loading
@@ -8,7 +8,7 @@ class Projects::BranchesController < Projects::ApplicationController
Loading
@@ -8,7 +8,7 @@ class Projects::BranchesController < Projects::ApplicationController
before_action :authorize_push_code!, only: [:new, :create, :destroy, :destroy_all_merged] before_action :authorize_push_code!, only: [:new, :create, :destroy, :destroy_all_merged]
   
def index def index
@sort = params[:sort].presence || sort_value_name @sort = params[:sort].presence || sort_value_recently_updated
@branches = BranchesFinder.new(@repository, params).execute @branches = BranchesFinder.new(@repository, params).execute
@branches = Kaminari.paginate_array(@branches).page(params[:page]) @branches = Kaminari.paginate_array(@branches).page(params[:page])
   
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment