Use Rainbow Pool styles for Alt Styles lists
This commit is contained in:
parent
d11c18129d
commit
a99fb3ec02
2 changed files with 5 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
%li.alt-style
|
%li
|
||||||
= link_to alt_style.preview_image_url do
|
= link_to alt_style.preview_image_url do
|
||||||
= image_tag alt_style.thumbnail_url, class: 'alt-style-thumbnail'
|
= image_tag alt_style.preview_image_url, class: "preview", loading: "lazy"
|
||||||
.alt-style-name= alt_style.name
|
.name= alt_style.name
|
|
@ -26,7 +26,8 @@
|
||||||
|
|
||||||
- @alt_styles.group_by(&:species).each do |species, species_styles|
|
- @alt_styles.group_by(&:species).each do |species, species_styles|
|
||||||
%h2.alt-styles-header= species.human_name
|
%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
|
- content_for :stylesheets do
|
||||||
= stylesheet_link_tag "application/rainbow-pool"
|
= stylesheet_link_tag "application/rainbow-pool"
|
||||||
|
|
Loading…
Reference in a new issue