diff options
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/pokeviewer/pokemon/index.html.haml | 5 | ||||
-rw-r--r-- | app/views/pokeviewer/pokemon/show.html.haml | 30 |
2 files changed, 35 insertions, 0 deletions
diff --git a/app/views/pokeviewer/pokemon/index.html.haml b/app/views/pokeviewer/pokemon/index.html.haml new file mode 100644 index 0000000..c613e70 --- /dev/null +++ b/app/views/pokeviewer/pokemon/index.html.haml | |||
@@ -0,0 +1,5 @@ | |||
1 | %ul | ||
2 | - @pokemon.each do |p| | ||
3 | %li | ||
4 | = link_to p.revisions.last.nickname, p | ||
5 | = image_tag p.icon_path | ||
diff --git a/app/views/pokeviewer/pokemon/show.html.haml b/app/views/pokeviewer/pokemon/show.html.haml new file mode 100644 index 0000000..b61917c --- /dev/null +++ b/app/views/pokeviewer/pokemon/show.html.haml | |||
@@ -0,0 +1,30 @@ | |||
1 | .pokemon | ||
2 | .pokemon-basics | ||
3 | .pokemon-species-id= "No. #{@pokemon.species_id}" | ||
4 | .pokemon-species-name= @pokemon.species.name | ||
5 | .pokemon-image= image_tag @pokemon.sprite_path | ||
6 | .pokemon-name= @pokemon.revisions.last.nickname | ||
7 | .pokemon-ot | ||
8 | OT/ | ||
9 | %span{ class: @pokemon.gender }>= @pokemon.ot_name | ||
10 | .pokemon-id= "ID/#{@pokemon.ot_number}" | ||
11 | .pokemon-level= "Lv. #{@pokemon.revisions.last.level}" | ||
12 | %table.pokemon-ivs | ||
13 | %tr | ||
14 | %th HP | ||
15 | %td= @pokemon.revisions.last.hp | ||
16 | %tr | ||
17 | %th Attack | ||
18 | %td= @pokemon.revisions.last.attack | ||
19 | %tr | ||
20 | %th Defense | ||
21 | %td= @pokemon.revisions.last.defense | ||
22 | %tr | ||
23 | %th Sp. Atk | ||
24 | %td= @pokemon.revisions.last.special_attack | ||
25 | %tr | ||
26 | %th Sp. Def | ||
27 | %td= @pokemon.revisions.last.special_defense | ||
28 | %tr | ||
29 | %th Speed | ||
30 | %td= @pokemon.revisions.last.speed | ||