From abd6185f682dd190f6366c3239d16be2c343fe8d Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Tue, 21 Jul 2020 19:31:55 -0400 Subject: [PATCH] add new search and sort fields to UI --- lib/philomena_web/templates/search/_form.html.slime | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/philomena_web/templates/search/_form.html.slime b/lib/philomena_web/templates/search/_form.html.slime index 18348c2b..8afc914c 100644 --- a/lib/philomena_web/templates/search/_form.html.slime +++ b/lib/philomena_web/templates/search/_form.html.slime @@ -23,6 +23,9 @@ h1 Search a data-search-add="width:1920" data-search-select-last="4" data-search-show-help="numeric" Image width a data-search-add="height:1080" data-search-select-last="4" data-search-show-help="numeric" Image height a data-search-add="aspect_ratio:1" data-search-select-last="1" data-search-show-help="numeric" Aspect ratio + a data-search-add="duration:10" data-search-select-last="2" data-search-show-help="numeric" Duration (seconds) + a data-search-add="pixels.gte:5000000" data-search-select-last="7" data-search-show-help="numeric" Pixels + a data-search-add="size.lt:1048576" data-search-select-last="7" data-search-show-help="numeric" File size (bytes) = if @conn.assigns.current_user do .dropdown.block__header__dropdown-tab @@ -125,6 +128,9 @@ h1 Search "Sort by height": :height, "Sort by comments": :comment_count, "Sort by tag count": :tag_count, + "Sort by pixels": :pixels, + "Sort by file size": :size, + "Sort by duration": :duration, "Random!": random_seed ]