Use Rainbow Pool styles for Alt Styles lists

This commit is contained in:
Emi Matchu 2024-09-30 16:24:43 -07:00
parent d11c18129d
commit a99fb3ec02
2 changed files with 5 additions and 4 deletions

View file

@ -1,4 +1,4 @@
%li.alt-style
%li
= link_to alt_style.preview_image_url do
= image_tag alt_style.thumbnail_url, class: 'alt-style-thumbnail'
.alt-style-name= alt_style.name
= image_tag alt_style.preview_image_url, class: "preview", loading: "lazy"
.name= alt_style.name

View file

@ -26,7 +26,8 @@
- @alt_styles.group_by(&:species).each do |species, species_styles|
%h2.alt-styles-header= species.human_name
%ul.alt-styles-list= render partial: "alt_style", collection: species_styles
%ul.rainbow-pool-list
= render partial: "alt_style", collection: species_styles
- content_for :stylesheets do
= stylesheet_link_tag "application/rainbow-pool"