summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-02-04 12:23:44 +0100
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-02-04 12:23:44 +0100
commitff5f0894adbabc9a70cb93af9126d8fc19c13d0b (patch)
treea62ec6600c4158672ea34cd21e14669fea29db1c
parent312d3faf6f71e4dc7fc2870ea823115475f14c8b (diff)
downloadgitlab-ce-new-issue-projects-sort.tar.gz
Sort projects by last activity for new issue dropdownnew-issue-projects-sort
When creating new issue from dashboard page I want to see projects sorted by last activity instead of ID Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r--app/views/shared/_new_project_item_select.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/_new_project_item_select.html.haml b/app/views/shared/_new_project_item_select.html.haml
index 46095912821..1c58345278a 100644
--- a/app/views/shared/_new_project_item_select.html.haml
+++ b/app/views/shared/_new_project_item_select.html.haml
@@ -1,6 +1,6 @@
- if @projects.any?
.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
= icon('plus')
= local_assigns[:label]