diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-12-07 11:49:49 -0500 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-12-07 11:49:49 -0500 |
| commit | 56f5841d4b9c12296cdfcaeff174b2627d59afc8 (patch) | |
| tree | 4f7da4ebbe5ee15a1594b26466ed78e2cf10de35 /app/views/pokemon/index.html.haml | |
| parent | c1b0443ba2aebdbd39291ddab0c189f3f4831320 (diff) | |
| download | pokeviewer-56f5841d4b9c12296cdfcaeff174b2627d59afc8.tar.gz pokeviewer-56f5841d4b9c12296cdfcaeff174b2627d59afc8.tar.bz2 pokeviewer-56f5841d4b9c12296cdfcaeff174b2627d59afc8.zip | |
Migrate to full rails app
Diffstat (limited to 'app/views/pokemon/index.html.haml')
| -rw-r--r-- | app/views/pokemon/index.html.haml | 42 |
1 files changed, 42 insertions, 0 deletions
| 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 @@ | |||
| 1 | - @trainers.each do |trainer, party, boxes| | ||
| 2 | .trainer | ||
| 3 | .trainer-info{ class: trainer.game } | ||
| 4 | %h2= trainer.name | ||
| 5 | %span.tid= trainer.display_number | ||
| 6 | .pc-boxes | ||
| 7 | %ul.party.pc-box | ||
| 8 | %h3 Party | ||
| 9 | - party.each do |p| | ||
| 10 | %li | ||
| 11 | %span.party-icon= image_tag p.current.icon_path | ||
| 12 | %span.party-name= link_to p.current.nickname, p | ||
| 13 | - boxes.each do |box| | ||
| 14 | .pc-box | ||
| 15 | %h3= box[:name] | ||
| 16 | %table.pc-contents | ||
| 17 | - box[:pokemon].each_slice(6) do |row| | ||
| 18 | %tr | ||
| 19 | - row.each do |p| | ||
| 20 | %td.pc-pokemon.pkv-has-hover | ||
| 21 | - if p.nil? | ||
| 22 | .spacer | ||
| 23 | - else | ||
| 24 | = link_to image_tag(p.current.icon_path), p | ||
| 25 | .pc-data.pkv-hover | ||
| 26 | .pc-data-name= p.current.nickname | ||
| 27 | .pc-data-ot | ||
| 28 | OT/ | ||
| 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.pkv-has-hover | ||
| 37 | = link_to image_tag(p.current.icon_path), p | ||
| 38 | .pc-data.pkv-hover | ||
| 39 | .pc-data-name= p.current.nickname | ||
| 40 | .pc-data-ot | ||
| 41 | OT/ | ||
| 42 | %span{ class: p.ot_gender }>= p.ot_name | ||
