-
-
- - <%= link_to "World", pages_home_path %>
- - <%= link_to "North America", pages_north_america_path %>
- - <%= link_to "South America", pages_south_america_path %>
- - <%= link_to "Europe", pages_europe_path %>
- - <%= link_to "Africa", pages_africa_path %>
- - <%= link_to "Asia", pages_asia_path %>
- - <%= link_to "Australia", pages_australia_path %>
-
-
+
+
+
+ <%= nav_link "World", "home" %>
+ <%= nav_link "North America", "north_america" %>
+ <%= nav_link "South America", "south_america" %>
+ <%= nav_link "Europe", "europe" %>
+ <%= nav_link "Africa", "africa" %>
+ <%= nav_link "Asia", "asia" %>
+ <%= nav_link "Australia", "australia" %>
+
+
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index ad4808d..d7287e0 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -1,7 +1,7 @@
-
<%= (yield(:title)) %>
+
<%= action_name.split("_").map {|x| x.capitalize}.join(" ") %>
<%= stylesheet_link_tag "application", media: "all",
"data-turbolinks-track" => true %>
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
diff --git a/app/views/pages/_country.html.erb b/app/views/pages/_country.html.erb
new file mode 100644
index 0000000..d58205d
--- /dev/null
+++ b/app/views/pages/_country.html.erb
@@ -0,0 +1,2 @@
+<%= @country.name %>
+<%= link_to "close", "#", onclick: "$('#country-info').hide();return false" %>
diff --git a/app/views/pages/about.html.erb b/app/views/pages/about.html.erb
index 1506f0e..30265d4 100644
--- a/app/views/pages/about.html.erb
+++ b/app/views/pages/about.html.erb
@@ -1,10 +1 @@
-<% provide(:title, 'About') %>
-
-
-
-
World | <%= yield(:title) %>
-
-
-
World
-
-
+about omg, nie doctype, to uz mas v layouts/application.html nadefinovane
\ No newline at end of file
diff --git a/app/views/pages/africa.html.erb b/app/views/pages/africa.html.erb
index 34b5b77..460ce20 100644
--- a/app/views/pages/africa.html.erb
+++ b/app/views/pages/africa.html.erb
@@ -1,11 +1 @@
-<% provide(:title, 'Home') %>
-<%= image_tag("Misc_Map_400645.jpg", :usemap => "#map") %>
-
\ No newline at end of file
+WTF, PRECO JE VSADE TO ISTE OMG!!!!
\ No newline at end of file
diff --git a/app/views/pages/asia.html.erb b/app/views/pages/asia.html.erb
index 34b5b77..460ce20 100644
--- a/app/views/pages/asia.html.erb
+++ b/app/views/pages/asia.html.erb
@@ -1,11 +1 @@
-<% provide(:title, 'Home') %>
-<%= image_tag("Misc_Map_400645.jpg", :usemap => "#map") %>
-
\ No newline at end of file
+WTF, PRECO JE VSADE TO ISTE OMG!!!!
\ No newline at end of file
diff --git a/app/views/pages/australia.html.erb b/app/views/pages/australia.html.erb
index 34b5b77..460ce20 100644
--- a/app/views/pages/australia.html.erb
+++ b/app/views/pages/australia.html.erb
@@ -1,11 +1 @@
-<% provide(:title, 'Home') %>
-<%= image_tag("Misc_Map_400645.jpg", :usemap => "#map") %>
-
\ No newline at end of file
+WTF, PRECO JE VSADE TO ISTE OMG!!!!
\ No newline at end of file
diff --git a/app/views/pages/country.html.erb b/app/views/pages/country.html.erb
deleted file mode 100644
index 261e2c3..0000000
--- a/app/views/pages/country.html.erb
+++ /dev/null
@@ -1,2 +0,0 @@
-
Pages#country
-
Find me in app/views/pages/country.html.erb
diff --git a/app/views/pages/country.js.erb b/app/views/pages/country.js.erb
new file mode 100644
index 0000000..95499b0
--- /dev/null
+++ b/app/views/pages/country.js.erb
@@ -0,0 +1,2 @@
+$("#country-info").html('<%= escape_javascript(render "country") %>');
+$("#country-info").show();
\ No newline at end of file
diff --git a/app/views/pages/europe.html.erb b/app/views/pages/europe.html.erb
index 6f82e6e..460ce20 100644
--- a/app/views/pages/europe.html.erb
+++ b/app/views/pages/europe.html.erb
@@ -1,11 +1 @@
-<% provide(:title, 'Europe') %>
-<%= image_tag("Misc_Map_400645.jpg", :usemap => "#map") %>
-
\ No newline at end of file
+WTF, PRECO JE VSADE TO ISTE OMG!!!!
\ No newline at end of file
diff --git a/app/views/pages/home.html.erb b/app/views/pages/home.html.erb
index 34b5b77..868e461 100644
--- a/app/views/pages/home.html.erb
+++ b/app/views/pages/home.html.erb
@@ -1,11 +1,10 @@
-<% provide(:title, 'Home') %>
<%= image_tag("Misc_Map_400645.jpg", :usemap => "#map") %>
+
\ No newline at end of file
+ <% @countries.each do |country| %>
+ <%= map_area country %>
+ <% end %>
+
+
+
+
\ No newline at end of file
diff --git a/app/views/pages/north_america.html.erb b/app/views/pages/north_america.html.erb
index 34b5b77..460ce20 100644
--- a/app/views/pages/north_america.html.erb
+++ b/app/views/pages/north_america.html.erb
@@ -1,11 +1 @@
-<% provide(:title, 'Home') %>
-<%= image_tag("Misc_Map_400645.jpg", :usemap => "#map") %>
-
\ No newline at end of file
+WTF, PRECO JE VSADE TO ISTE OMG!!!!
\ No newline at end of file
diff --git a/app/views/pages/south_america.html.erb b/app/views/pages/south_america.html.erb
index 34b5b77..460ce20 100644
--- a/app/views/pages/south_america.html.erb
+++ b/app/views/pages/south_america.html.erb
@@ -1,11 +1 @@
-<% provide(:title, 'Home') %>
-<%= image_tag("Misc_Map_400645.jpg", :usemap => "#map") %>
-
\ No newline at end of file
+WTF, PRECO JE VSADE TO ISTE OMG!!!!
\ No newline at end of file