From 7459037c8a0ead64d16d5cb4d1b6831fadeb8820 Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Wed, 26 Nov 2025 16:58:38 -0800 Subject: [PATCH] [WV2] Simplify item search pagination I'll want to do it smarter than this, but for now, just getting rid of the page links altogether seems best --- app/views/wardrobe/_search_results.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/wardrobe/_search_results.html.haml b/app/views/wardrobe/_search_results.html.haml index 93d19e3a..3f3866ab 100644 --- a/app/views/wardrobe/_search_results.html.haml +++ b/app/views/wardrobe/_search_results.html.haml @@ -5,7 +5,7 @@ = outfit_state_params except: [:q] - if @search_results.any? - = will_paginate @search_results, param_name: "q[page]", params: { q: params[:q], species: @outfit.species_id, color: @outfit.color_id, objects: params[:objects] } + = will_paginate @search_results, page_links: false, param_name: "q[page]", params: { q: params[:q], species: @outfit.species_id, color: @outfit.color_id, objects: params[:objects] } %ul.search-results-list - @search_results.each do |item|