From 495366e73edccf8e574f8bac1ca0efbc81e2251c Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Wed, 24 Jan 2024 07:53:37 -0800 Subject: [PATCH] Group alt styles by species --- app/views/alt_styles/index.html.haml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/alt_styles/index.html.haml b/app/views/alt_styles/index.html.haml index 06a65b93..34369c76 100644 --- a/app/views/alt_styles/index.html.haml +++ b/app/views/alt_styles/index.html.haml @@ -13,4 +13,6 @@ so there's not a great way for us to get style tokens onto tradelists… this may change someday, but probably not soon, sorry!) -%ul.alt-styles-list= render partial: "alt_style", collection: @alt_styles +- @alt_styles.group_by(&:species).each do |species, species_styles| + %h2= species.human_name + %ul.alt-styles-list= render partial: "alt_style", collection: species_styles