diff options
author | David Gay <david@davidgay.org> | 2023-11-02 20:46:20 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2023-11-02 20:46:20 -0400 |
commit | 4cb128fa24da1d960a20b981aac7b82e2868db26 (patch) | |
tree | 4e0d6062f19a11e9e63277421ae431903777e3d4 /app/views/pokedex/show.html.erb | |
parent | 252428f1e9e45254d2e4fc8cfa79e83ea183c56b (diff) |
Support and add gen 2 sprites, including unowns
Diffstat (limited to 'app/views/pokedex/show.html.erb')
-rw-r--r-- | app/views/pokedex/show.html.erb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/views/pokedex/show.html.erb b/app/views/pokedex/show.html.erb index bcff932..4d5545b 100644 --- a/app/views/pokedex/show.html.erb +++ b/app/views/pokedex/show.html.erb @@ -2,9 +2,11 @@ <h1>Pokédex</h1> <div class="flex flex-wrap gap-4"> - <% Pokemon.where(pokedex_num: 1..151).order(:pokedex_num).each do |pokemon| %> - <div class="flex flex-col flex-auto items-center w-[100px] bg-orange-200 rounded"> - <div class="flex-1 text-display">No. <%= pokemon.pokedex_num %></div> + <% Pokemon.order(:pokedex_num).each do |pokemon| %> + <% break if pokemon.pokedex_num.to_i > 251 %> + <div class="flex flex-col flex-auto items-center w-[100px] bg-white + border border-orange-900 rounded shadow"> + <div class="flex-1 text-display text-center">No. <%= pokemon.pokedex_num %></div> <div class="flex-grow flex flex-col justify-around"> <%= image_tag "sprites/pokemon/#{pokemon.pokedex_num}.png" %> </div> |