From 3e4e4583fb751fb47013580ce86e2cc3a0e8353b Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 26 Sep 2017 17:47:16 -0400 Subject: Added section on homepage for Pokémon not in any game MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/pokeviewer/pokemon/index.html.haml | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'app/views') 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 @@ .pc-data-ot OT/ %span{ class: p.ot_gender }>= p.ot_name +- if @unaccounted.any? + .trainer + .trainer-info.unaccounted + %h2 Pokémon Not In Any Game + %ul.pokemon-list + - @unaccounted.each do |p| + %li.pc-pokemon + = link_to image_tag(p.icon_path), p + .pc-data + .pc-data-name= p.revisions.last.nickname + .pc-data-ot + OT/ + %span{ class: p.ot_gender }>= p.ot_name -- cgit 1.4.1