diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-09-26 17:47:16 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-09-26 17:47:16 -0400 |
commit | 3e4e4583fb751fb47013580ce86e2cc3a0e8353b (patch) | |
tree | 8118827bf1f2aa7ac9d967c3d4cc135390f03f23 /app/views | |
parent | a65972d34188d14dca10193950732d506d931e8c (diff) | |
download | pokeviewer-3e4e4583fb751fb47013580ce86e2cc3a0e8353b.tar.gz pokeviewer-3e4e4583fb751fb47013580ce86e2cc3a0e8353b.tar.bz2 pokeviewer-3e4e4583fb751fb47013580ce86e2cc3a0e8353b.zip |
Added section on homepage for Pokémon not in any game
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/pokeviewer/pokemon/index.html.haml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/views/pokeviewer/pokemon/index.html.haml b/app/views/pokeviewer/pokemon/index.html.haml index 436f48a..7cee27a 100644 --- a/app/views/pokeviewer/pokemon/index.html.haml +++ b/app/views/pokeviewer/pokemon/index.html.haml | |||
@@ -27,3 +27,16 @@ | |||
27 | .pc-data-ot | 27 | .pc-data-ot |
28 | OT/ | 28 | OT/ |
29 | %span{ class: p.ot_gender }>= p.ot_name | 29 | %span{ class: p.ot_gender }>= p.ot_name |
30 | - if @unaccounted.any? | ||
31 | .trainer | ||
32 | .trainer-info.unaccounted | ||
33 | %h2 Pokémon Not In Any Game | ||
34 | %ul.pokemon-list | ||
35 | - @unaccounted.each do |p| | ||
36 | %li.pc-pokemon | ||
37 | = link_to image_tag(p.icon_path), p | ||
38 | .pc-data | ||
39 | .pc-data-name= p.revisions.last.nickname | ||
40 | .pc-data-ot | ||
41 | OT/ | ||
42 | %span{ class: p.ot_gender }>= p.ot_name | ||