From 56f5841d4b9c12296cdfcaeff174b2627d59afc8 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 7 Dec 2024 11:49:49 -0500 Subject: Migrate to full rails app --- app/views/pokemon/index.html.haml | 42 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 app/views/pokemon/index.html.haml (limited to 'app/views/pokemon/index.html.haml') diff --git a/app/views/pokemon/index.html.haml b/app/views/pokemon/index.html.haml new file mode 100644 index 0000000..67ea2cf --- /dev/null +++ b/app/views/pokemon/index.html.haml @@ -0,0 +1,42 @@ +- @trainers.each do |trainer, party, boxes| + .trainer + .trainer-info{ class: trainer.game } + %h2= trainer.name + %span.tid= trainer.display_number + .pc-boxes + %ul.party.pc-box + %h3 Party + - party.each do |p| + %li + %span.party-icon= image_tag p.current.icon_path + %span.party-name= link_to p.current.nickname, p + - boxes.each do |box| + .pc-box + %h3= box[:name] + %table.pc-contents + - box[:pokemon].each_slice(6) do |row| + %tr + - row.each do |p| + %td.pc-pokemon.pkv-has-hover + - if p.nil? + .spacer + - else + = link_to image_tag(p.current.icon_path), p + .pc-data.pkv-hover + .pc-data-name= p.current.nickname + .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.pkv-has-hover + = link_to image_tag(p.current.icon_path), p + .pc-data.pkv-hover + .pc-data-name= p.current.nickname + .pc-data-ot + OT/ + %span{ class: p.ot_gender }>= p.ot_name -- cgit 1.4.1