Sort workgroups of tasks by name
This commit is contained in:
parent
6a110ca429
commit
c6297f2864
2 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ class TasksController < ApplicationController
|
|||
|
||||
def index
|
||||
@non_group_tasks = Task.non_group.order('due_date', 'name').includes(assignments: :user)
|
||||
@groups = Workgroup.includes(open_tasks: {assignments: :user})
|
||||
@groups = Workgroup.order(:name).includes(open_tasks: {assignments: :user})
|
||||
end
|
||||
|
||||
def user
|
||||
|
|
|
@ -9,5 +9,5 @@
|
|||
%li= link_to t('.all_tasks'), tasks_path
|
||||
%li= link_to t('.archive'), archive_tasks_path
|
||||
%li.nav-header= t '.group_tasks'
|
||||
- for group in Workgroup.all
|
||||
- for group in Workgroup.order(:name)
|
||||
%li= link_to group.name, workgroup_tasks_path(workgroup_id: group.id)
|
||||
|
|
Loading…
Reference in a new issue