about summary refs log tree commit diff stats
path: root/app/views
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-09-24 18:14:24 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-09-24 18:14:24 -0400
commit2721f3768ebd4d279caa967bee210249d93f92cb (patch)
treed398e3791dd03134ab3f40d41191abc073a8bad4 /app/views
parent012b083cbd74ab687d5529258ff045319265e594 (diff)
downloadpokeviewer-2721f3768ebd4d279caa967bee210249d93f92cb.tar.gz
pokeviewer-2721f3768ebd4d279caa967bee210249d93f92cb.tar.bz2
pokeviewer-2721f3768ebd4d279caa967bee210249d93f92cb.zip
Worked on PC display page
Diffstat (limited to 'app/views')
-rw-r--r--app/views/pokeviewer/pokemon/index.html.haml32
1 files changed, 27 insertions, 5 deletions
diff --git a/app/views/pokeviewer/pokemon/index.html.haml b/app/views/pokeviewer/pokemon/index.html.haml index c613e70..69b6a68 100644 --- a/app/views/pokeviewer/pokemon/index.html.haml +++ b/app/views/pokeviewer/pokemon/index.html.haml
@@ -1,5 +1,27 @@
1%ul 1- @trainers.each do |trainer|
2 - @pokemon.each do |p| 2 .trainer
3 %li 3 .trainer-info{ class: trainer.game }
4 = link_to p.revisions.last.nickname, p 4 %h2= trainer.name
5 = image_tag p.icon_path 5 %span.tid= trainer.display_number
6 .pc-boxes
7 %ul.party.pc-box
8 %h3 Party
9 - trainer.party.each do |p|
10 %li
11 %span.party-icon= image_tag p.icon_path
12 %span.party-name= link_to p.revisions.last.nickname, p
13 - trainer.boxes.each_with_index do |box,bid|
14 .pc-box
15 %h3= "Box #{bid+1}"
16 %table.pc-contents
17 - box.each_slice(6) do |row|
18 %tr
19 - row.each do |p|
20 %td.pc-pokemon
21 - unless p.nil?
22 = link_to image_tag(p.icon_path), p
23 .pc-data
24 .pc-data-name= p.revisions.last.nickname
25 .pc-data-ot
26 OT/
27 %span{ class: p.ot_gender }>= p.ot_name