diff options
author | David Gay <david@davidgay.org> | 2023-11-03 02:11:02 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2023-11-03 02:11:02 -0400 |
commit | d4c92922e393876e93ad13943ba45fb08586e6c8 (patch) | |
tree | 5460ab24695c978080133ae9af9dcbf8b4bca55c /app/views/users/show.html.erb | |
parent | 13f4f6ca06a216962f4c25fa0d6041945cfb3fb5 (diff) |
Pokedex: Grey out uncaptured pokemon
Diffstat (limited to 'app/views/users/show.html.erb')
-rw-r--r-- | app/views/users/show.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index f11b01f..9d253ec 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -6,7 +6,7 @@ </div> <div> <p class="text-lg">NAME: <%= @user.name || "???" %> - <p>POKéDEX: <%= @user.pokedex_captured_count %></p> + <p><%= link_to "POKéDEX: #{@user.captured_pokemon.count}", pokedex_path(user_id: @user.id) %></p> <p>TIME: <%= distance_of_time_in_words_to_now(@user.created_at) %></p> </div> <% if @user == current_user %> |