Restore Largest repository
sort option on admin projects page
This commit is contained in:
parent
804fa43758
commit
7638ebe423
1 changed files with 7 additions and 1 deletions
|
@ -20,13 +20,19 @@ module SortingHelper
|
|||
end
|
||||
|
||||
def projects_sort_options_hash
|
||||
{
|
||||
options = {
|
||||
sort_value_name => sort_title_name,
|
||||
sort_value_recently_updated => sort_title_recently_updated,
|
||||
sort_value_oldest_updated => sort_title_oldest_updated,
|
||||
sort_value_recently_created => sort_title_recently_created,
|
||||
sort_value_oldest_created => sort_title_oldest_created,
|
||||
}
|
||||
|
||||
if current_controller?('admin/projects')
|
||||
options.merge!(sort_value_largest_repo => sort_title_largest_repo)
|
||||
end
|
||||
|
||||
options
|
||||
end
|
||||
|
||||
def sort_title_priority
|
||||
|
|
Loading…
Reference in a new issue