From 687299b33934d25017a226ba6b979e44f0b1f441 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 24 Sep 2017 19:15:55 -0400 Subject: Added box names --- app/views/pokeviewer/pokemon/index.html.haml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/views') diff --git a/app/views/pokeviewer/pokemon/index.html.haml b/app/views/pokeviewer/pokemon/index.html.haml index 69b6a68..e536080 100644 --- a/app/views/pokeviewer/pokemon/index.html.haml +++ b/app/views/pokeviewer/pokemon/index.html.haml @@ -10,11 +10,11 @@ %li %span.party-icon= image_tag p.icon_path %span.party-name= link_to p.revisions.last.nickname, p - - trainer.boxes.each_with_index do |box,bid| + - trainer.boxes.each do |box| .pc-box - %h3= "Box #{bid+1}" + %h3= box.name %table.pc-contents - - box.each_slice(6) do |row| + - box.contents.each_slice(6) do |row| %tr - row.each do |p| %td.pc-pokemon -- cgit 1.4.1