Commit 2d57efde by thanhnd

fix name

parent b7973d66
Pipeline #495 failed with stages
in 0 seconds
...@@ -2,7 +2,7 @@ class CitiesController < ApplicationController ...@@ -2,7 +2,7 @@ class CitiesController < ApplicationController
def index def index
@top_cities_vn = City.top_city_by_job @top_cities_vn = City.top_city_by_job
@top_cities_nn = City.top_city_by_job_nn @top_cities_nn = City.top_city_by_job_nn
@all_top_cities_vn = City.all_city_by_job @all_cities_vn = City.all_city_by_job
@all_top_cities_nn = City.all_city_by_job_nn @all_cities_nn = City.all_city_by_job_nn
end end
end end
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<div id="topcity_vn" class="container p-5 my-2 bg-secondary text-white"> <div id="topcity_vn" class="container p-5 my-2 bg-secondary text-white">
<font color="red"><b><label > Viet Nam:</label></b></font> <font color="red"><b><label > Viet Nam:</label></b></font>
<% @all_top_cities_vn.each do |city_vn| %> <% @all_cities_vn.each do |city_vn| %>
<ul> <ul>
<li><%= city_vn.city_name %> <br /> Total jobs in this city: <%= city_vn.job_count %> </li> <li><%= city_vn.city_name %> <br /> Total jobs in this city: <%= city_vn.job_count %> </li>
</ul> </ul>
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<div id="topcity_nn" class="container p-5 my-2 bg-secondary text-white"> <div id="topcity_nn" class="container p-5 my-2 bg-secondary text-white">
<font color="red"><b><label > Nuoc Ngoai:</label></b></font> <font color="red"><b><label > Nuoc Ngoai:</label></b></font>
<% @all_top_cities_nn.each do |city_nn| %> <% @all_cities_nn.each do |city_nn| %>
<ul> <ul>
<li><%= city_nn.city_name %> <br /> Total jobs in this city: <%= city_nn.job_count %> </li> <li><%= city_nn.city_name %> <br /> Total jobs in this city: <%= city_nn.job_count %> </li>
</ul> </ul>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment