Add better support for hashed pet names on bulk modeler #2
Loading…
Reference in a new issue
No description provided.
Delete branch "dice:enhance-hashed-pets"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I think this is sufficient...
2faa89dd4c
toe80a49a086
Idk Github-style flows for this, I'm marking this "Request changes" but I can probably attend to the changes myself later—I also don't know how that works in PR style though, like, can I add my own commits to this? Or is the style more like, I would branch off this PR into one of my own? Or something?
@ -72,0 +71,4 @@
- if pet_name.starts_with?('@')
%img{:src => 'https://pets.neopets.com/cp/${pet_name[1..-1]}/1/1.png'}
- else
%img{:src => 'https://pets.neopets.com/cpn/${pet_name}/1/1.png'}
Ohhh ok so, this section is a bit tricky, because the templating here isn't actually HAML, it's
jquery/tmpl
. The${}
stuff isn't expanded at HTML generation time, it's included in the HTML and then the JS uses that as a template later.Probably what we'll need is like, to refactor this template to use the value returned by that
petThumbnailUrl
function. Haven't dug into this yet but that would be my guess!Committed a modified version of this! Thank you!!
Pull request closed