Fix the title of the toggle dropdown button
Before when you choose the way of `sort` instead it display the title correctly it was just apply the humanize helper in sort value. E.g. When you choose `Last updated` it should display the title `Last updated` instead of `Recently updated`. This fix makes this correctly displays the title. Change the implementation of the `link_to` `filter_branches_path` - Change the value of the `params[:sort]` in `link_to`. E.g. instead of using `'recently_updated'` is now using `sort_value_recently_updated`. - Change the values of the case in the `branches_sorted_by` method for the values it receives in the `params[:sort]` that are: `nil`, `'name'`, `'updated_desc'`, `'updated_asc'`.
显示
- CHANGELOG 1 个添加, 0 个删除CHANGELOG
- app/controllers/projects/branches_controller.rb 1 个添加, 0 个删除app/controllers/projects/branches_controller.rb
- app/models/repository.rb 2 个添加, 2 个删除app/models/repository.rb
- app/views/projects/branches/index.html.haml 4 个添加, 7 个删除app/views/projects/branches/index.html.haml
- spec/finders/branches_finder_spec.rb 4 个添加, 4 个删除spec/finders/branches_finder_spec.rb
加载中
想要评论请 注册 或 登录