about summary refs log tree commit diff stats
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/layouts/application.html.haml11
-rw-r--r--app/views/layouts/mailer.html.erb13
-rw-r--r--app/views/layouts/mailer.text.erb1
-rw-r--r--app/views/layouts/pokeviewer/application.html.haml9
-rw-r--r--app/views/pokedex/index.html.haml (renamed from app/views/pokeviewer/pokedex/index.html.haml)0
-rw-r--r--app/views/pokemon/_embed_code.html.haml (renamed from app/views/pokeviewer/pokemon/_embed_code.html.haml)0
-rw-r--r--app/views/pokemon/embed.html.haml (renamed from app/views/pokeviewer/pokemon/embed.html.haml)6
-rw-r--r--app/views/pokemon/index.html.haml (renamed from app/views/pokeviewer/pokemon/index.html.haml)0
-rw-r--r--app/views/pokemon/show.html.haml (renamed from app/views/pokeviewer/pokemon/show.html.haml)0
-rw-r--r--app/views/revisions/_revision.html.haml (renamed from app/views/pokeviewer/revisions/_revision.html.haml)4
10 files changed, 31 insertions, 13 deletions
diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml new file mode 100644 index 0000000..668b6cd --- /dev/null +++ b/app/views/layouts/application.html.haml
@@ -0,0 +1,11 @@
1!!! 5
2%html
3 %head
4 %title Pokeviewer
5 %meta{ name: "viewport", content: "width=device-width,initial-scale=1" }
6 = stylesheet_link_tag "application", media: "all"
7 = javascript_include_tag "application"
8 = csrf_meta_tags
9 = csp_meta_tag
10 %body
11 #content= yield
diff --git a/app/views/layouts/mailer.html.erb b/app/views/layouts/mailer.html.erb new file mode 100644 index 0000000..3aac900 --- /dev/null +++ b/app/views/layouts/mailer.html.erb
@@ -0,0 +1,13 @@
1<!DOCTYPE html>
2<html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 <style>
6 /* Email styles need to be inline */
7 </style>
8 </head>
9
10 <body>
11 <%= yield %>
12 </body>
13</html>
diff --git a/app/views/layouts/mailer.text.erb b/app/views/layouts/mailer.text.erb new file mode 100644 index 0000000..37f0bdd --- /dev/null +++ b/app/views/layouts/mailer.text.erb
@@ -0,0 +1 @@
<%= yield %>
diff --git a/app/views/layouts/pokeviewer/application.html.haml b/app/views/layouts/pokeviewer/application.html.haml deleted file mode 100644 index 4fa0d19..0000000 --- a/app/views/layouts/pokeviewer/application.html.haml +++ /dev/null
@@ -1,9 +0,0 @@
1!!! 5
2%html
3 %head
4 %title Pokeviewer
5 = stylesheet_link_tag "pokeviewer/application", media: "all"
6 = javascript_include_tag "pokeviewer/application"
7 = csrf_meta_tags
8 %body
9 #content= yield
diff --git a/app/views/pokeviewer/pokedex/index.html.haml b/app/views/pokedex/index.html.haml index 676cd9f..676cd9f 100644 --- a/app/views/pokeviewer/pokedex/index.html.haml +++ b/app/views/pokedex/index.html.haml
diff --git a/app/views/pokeviewer/pokemon/_embed_code.html.haml b/app/views/pokemon/_embed_code.html.haml index 6bbff69..6bbff69 100644 --- a/app/views/pokeviewer/pokemon/_embed_code.html.haml +++ b/app/views/pokemon/_embed_code.html.haml
diff --git a/app/views/pokeviewer/pokemon/embed.html.haml b/app/views/pokemon/embed.html.haml index 3c82052..17fc7ba 100644 --- a/app/views/pokeviewer/pokemon/embed.html.haml +++ b/app/views/pokemon/embed.html.haml
@@ -2,9 +2,11 @@
2%html 2%html
3 %head 3 %head
4 %title Pokeviewer 4 %title Pokeviewer
5 = stylesheet_link_tag "pokeviewer/application", media: "all" 5 %meta{ name: "viewport", content: "width=device-width,initial-scale=1" }
6 = javascript_include_tag "pokeviewer/application" 6 = stylesheet_link_tag "application", media: "all"
7 = javascript_include_tag "application"
7 = csrf_meta_tags 8 = csrf_meta_tags
9 = csp_meta_tag
8 %body#pokemon-embed 10 %body#pokemon-embed
9 %ul#pokemon-embed-tabs 11 %ul#pokemon-embed-tabs
10 %li.ptabe-button.ptabe-details= link_to "Details", "\#", data: {tab: "details"} 12 %li.ptabe-button.ptabe-details= link_to "Details", "\#", data: {tab: "details"}
diff --git a/app/views/pokeviewer/pokemon/index.html.haml b/app/views/pokemon/index.html.haml index 67ea2cf..67ea2cf 100644 --- a/app/views/pokeviewer/pokemon/index.html.haml +++ b/app/views/pokemon/index.html.haml
diff --git a/app/views/pokeviewer/pokemon/show.html.haml b/app/views/pokemon/show.html.haml index cbd879b..cbd879b 100644 --- a/app/views/pokeviewer/pokemon/show.html.haml +++ b/app/views/pokemon/show.html.haml
diff --git a/app/views/pokeviewer/revisions/_revision.html.haml b/app/views/revisions/_revision.html.haml index 63ba22c..747c746 100644 --- a/app/views/pokeviewer/revisions/_revision.html.haml +++ b/app/views/revisions/_revision.html.haml
@@ -9,7 +9,7 @@
9 .pokemon-image-wrap 9 .pokemon-image-wrap
10 = image_tag @revision.sprite_path, class: "pokemon-sprite" 10 = image_tag @revision.sprite_path, class: "pokemon-sprite"
11 - if @revision.pokemon.shiny? 11 - if @revision.pokemon.shiny?
12 = image_tag "pokeviewer/ShinyIVStar.png", class: "pkv-shiny-star" 12 = image_tag "ShinyIVStar.png", class: "pkv-shiny-star"
13 - if @revision.item.nil? 13 - if @revision.item.nil?
14 .pokemon-item-label Item 14 .pokemon-item-label Item
15 .pokemon-item None 15 .pokemon-item None
@@ -129,7 +129,7 @@
129 %ul 129 %ul
130 - @revision.ribbons.each do |ribbon| 130 - @revision.ribbons.each do |ribbon|
131 %li.pkv-has-hover 131 %li.pkv-has-hover
132 = image_tag("pokeviewer/ribbons/#{ribbon[:filename]}") 132 = image_tag("ribbons/#{ribbon[:filename]}")
133 .pkv-hover 133 .pkv-hover
134 .pc-data-name= ribbon[:name] 134 .pc-data-name= ribbon[:name]
135 = ribbon[:description] 135 = ribbon[:description]