diff options
author | Sean McGivern <sean@gitlab.com> | 2017-03-10 14:10:48 +0300 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2017-03-15 20:02:37 +0300 |
commit | 101fddfa9203fbcc96151e880a3a1241338a91f2 (patch) | |
tree | cd4df611aebd5cd594da22eaefaad73eb190ab1b /app/helpers | |
parent | 6619772f2a7a12fcef86ce530e45705bbbf09dcc (diff) |
Allow sorting by due date and label priority
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/sorting_helper.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/app/helpers/sorting_helper.rb b/app/helpers/sorting_helper.rb index 18734f1411f..959ee310867 100644 --- a/app/helpers/sorting_helper.rb +++ b/app/helpers/sorting_helper.rb @@ -16,7 +16,8 @@ module SortingHelper sort_value_oldest_signin => sort_title_oldest_signin, sort_value_downvotes => sort_title_downvotes, sort_value_upvotes => sort_title_upvotes, - sort_value_priority => sort_title_priority + sort_value_priority => sort_title_priority, + sort_value_label_priority => sort_title_label_priority } end @@ -50,6 +51,10 @@ module SortingHelper end def sort_title_priority + 'Priority' + end + + def sort_title_label_priority 'Label priority' end @@ -161,6 +166,10 @@ module SortingHelper 'priority' end + def sort_value_label_priority + 'label_priority' + end + def sort_value_oldest_updated 'updated_asc' end |