diff options
author | Phil Hughes <me@iamphill.com> | 2016-04-15 11:24:19 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-05-16 12:29:47 +0300 |
commit | fdc949073ceabac7f573c1c1e0fcf06e4603ce11 (patch) | |
tree | 9e1d450ce14814f38a352a35469b88f556572ca0 /app/views/shared/_sort_dropdown.html.haml | |
parent | 471d7a5b32c9be9d925ae262165c0917605a846b (diff) |
Fixed issue with not being able to sort and filter
Diffstat (limited to 'app/views/shared/_sort_dropdown.html.haml')
-rw-r--r-- | app/views/shared/_sort_dropdown.html.haml | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/app/views/shared/_sort_dropdown.html.haml b/app/views/shared/_sort_dropdown.html.haml index d327bd0a96f..154d9e30851 100644 --- a/app/views/shared/_sort_dropdown.html.haml +++ b/app/views/shared/_sort_dropdown.html.haml @@ -6,26 +6,35 @@ - else = sort_title_recently_created %b.caret - %ul.dropdown-menu.dropdown-menu-align-right + %ul.dropdown-menu.dropdown-menu-align-right.dropdown-menu-sort %li = link_to page_filter_path(sort: sort_value_recently_created) do = sort_title_recently_created + %li = link_to page_filter_path(sort: sort_value_oldest_created) do = sort_title_oldest_created + %li = link_to page_filter_path(sort: sort_value_recently_updated) do = sort_title_recently_updated + %li = link_to page_filter_path(sort: sort_value_oldest_updated) do = sort_title_oldest_updated + %li = link_to page_filter_path(sort: sort_value_milestone_soon) do = sort_title_milestone_soon + %li = link_to page_filter_path(sort: sort_value_milestone_later) do = sort_title_milestone_later - - if controller.controller_name == 'issues' || controller.action_name == 'issues' + - if controller.controller_name == 'issues' || controller.action_name == 'issues' + %li = link_to page_filter_path(sort: sort_value_due_date_soon) do = sort_title_due_date_soon + %li = link_to page_filter_path(sort: sort_value_due_date_later) do = sort_title_due_date_later + %li = link_to page_filter_path(sort: sort_value_upvotes) do = sort_title_upvotes + %li = link_to page_filter_path(sort: sort_value_downvotes) do = sort_title_downvotes |