diff options
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/pokedex_entries/_entry.html.erb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/views/pokedex_entries/_entry.html.erb b/app/views/pokedex_entries/_entry.html.erb index 992aa69..1c7f0ed 100644 --- a/app/views/pokedex_entries/_entry.html.erb +++ b/app/views/pokedex_entries/_entry.html.erb @@ -1,10 +1,13 @@ <div class="flex space-x-2 items-center"> <div class="flex justify-around bg-white h-[60px] w-[60px] border border-orange-900 - p-1 rounded shadow"> + p-1 rounded shadow <%= "shiny-glow" if entry.shiny? %>"> <%= image_tag entry.pokemon.sprite_path(shiny: entry.shiny?) %> </div> <div> - <div><%= "Shiny " if entry.shiny? %><%= entry.pokemon.name %></div> + <div> + <% "Shiny " if entry.shiny? %> + <%= entry.pokemon.name %> + </div> <div class="text-sm">Recorded by <%= link_to entry.user.name || "???", user_path(entry.user) %> @ <%= entry.recorded_at %> </div> |