Commit ff5f0894 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Sort projects by last activity for new issue dropdown

When creating new issue from dashboard page I want to see projects
sorted by last activity instead of ID
Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 312d3faf
- if @projects.any? - if @projects.any?
.prepend-left-10.project-item-select-holder .prepend-left-10.project-item-select-holder
= project_select_tag :project_path, class: "project-item-select", data: { include_groups: local_assigns[:include_groups] } = project_select_tag :project_path, class: "project-item-select", data: { include_groups: local_assigns[:include_groups], order_by: 'last_activity_at' }
%a.btn.btn-new.new-project-item-select-button %a.btn.btn-new.new-project-item-select-button
= icon('plus') = icon('plus')
= local_assigns[:label] = local_assigns[:label]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment