From 2405727d7d62fce31102520167cde42ee688c198 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 24 Sep 2017 11:23:27 -0400 Subject: 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 --- app/views/pokeviewer/pokemon/index.html.haml | 5 +++++ app/views/pokeviewer/pokemon/show.html.haml | 30 ++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 app/views/pokeviewer/pokemon/index.html.haml create mode 100644 app/views/pokeviewer/pokemon/show.html.haml (limited to 'app/views') 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 @@ +%ul + - @pokemon.each do |p| + %li + = link_to p.revisions.last.nickname, p + = 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 @@ +.pokemon + .pokemon-basics + .pokemon-species-id= "No. #{@pokemon.species_id}" + .pokemon-species-name= @pokemon.species.name + .pokemon-image= image_tag @pokemon.sprite_path + .pokemon-name= @pokemon.revisions.last.nickname + .pokemon-ot + OT/ + %span{ class: @pokemon.gender }>= @pokemon.ot_name + .pokemon-id= "ID/#{@pokemon.ot_number}" + .pokemon-level= "Lv. #{@pokemon.revisions.last.level}" + %table.pokemon-ivs + %tr + %th HP + %td= @pokemon.revisions.last.hp + %tr + %th Attack + %td= @pokemon.revisions.last.attack + %tr + %th Defense + %td= @pokemon.revisions.last.defense + %tr + %th Sp. Atk + %td= @pokemon.revisions.last.special_attack + %tr + %th Sp. Def + %td= @pokemon.revisions.last.special_defense + %tr + %th Speed + %td= @pokemon.revisions.last.speed -- cgit 1.4.1