Compare commits
2 commits
0bbbe67953
...
7a1239ae5a
Author | SHA1 | Date | |
---|---|---|---|
7a1239ae5a | |||
fd729916d7 |
2 changed files with 5 additions and 1 deletions
|
@ -9,3 +9,7 @@ body.alt_styles-index
|
|||
.alt-style
|
||||
text-align: center
|
||||
width: 80px
|
||||
|
||||
.alt-style-thumbnail
|
||||
width: 80px
|
||||
height: 80px
|
||||
|
|
|
@ -15,7 +15,7 @@ class AltStyle < ApplicationRecord
|
|||
# HACK: Just assume this is a Nostalgic Alt Style, and that the thumbnail
|
||||
# is named reliably!
|
||||
"https://images.neopets.com/items/nostalgic_" +
|
||||
"#{color.name.downcase}_#{species.name.downcase}.gif"
|
||||
"#{color.name.gsub(/\s+/, '').downcase}_#{species.name.downcase}.gif"
|
||||
end
|
||||
|
||||
MANIFEST_PATTERN = %r{^https://images.neopets.com/(?<prefix>.+)/(?<id>[0-9]+)(?<hash_part>_[^/]+)?/manifest\.json}
|
||||
|
|
Loading…
Reference in a new issue