summaryrefslogtreecommitdiff
path: root/app/views/pokedex_entries/_entry.html.erb
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2023-11-03 02:44:25 -0400
committerDavid Gay <david@davidgay.org>2023-11-03 02:44:25 -0400
commitccedaf6597b0e47cf3a010562c7fe43f5621163e (patch)
treea699a098a8b50fc2591ec9d4d81743c616e92677 /app/views/pokedex_entries/_entry.html.erb
parente6577d0fd5ffacd24cf52125cd44037fc33fdb9a (diff)
Shiny glow
Diffstat (limited to 'app/views/pokedex_entries/_entry.html.erb')
-rw-r--r--app/views/pokedex_entries/_entry.html.erb7
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>