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 11:23:27 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-09-24 11:23:27 -0400
commit2405727d7d62fce31102520167cde42ee688c198 (patch)
treefbbf85f42ca6f0c17573974ca9c265a0d5aaf060 /app/views
parent0df34b64734e686f399ad7081c9b4e4921f75d64 (diff)
downloadpokeviewer-2405727d7d62fce31102520167cde42ee688c198.tar.gz
pokeviewer-2405727d7d62fce31102520167cde42ee688c198.tar.bz2
pokeviewer-2405727d7d62fce31102520167cde42ee688c198.zip
Started working on UI
This commit imports a lot of assets from veekun, as well as a font from
http://www.victoryroad.net/showthread.php?t=1507
Diffstat (limited to 'app/views')
-rw-r--r--app/views/pokeviewer/pokemon/index.html.haml5
-rw-r--r--app/views/pokeviewer/pokemon/show.html.haml30
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