Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
venjob_thanhnd
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
thanhnd
venjob_thanhnd
Commits
2d57efde
Commit
2d57efde
authored
Mar 05, 2020
by
thanhnd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix name
parent
b7973d66
Pipeline
#495
failed with stages
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app/controllers/cities_controller.rb
+2
-2
app/views/cities/index.html.erb
+2
-2
No files found.
app/controllers/cities_controller.rb
View file @
2d57efde
...
...
@@ -2,7 +2,7 @@ class CitiesController < ApplicationController
def
index
@top_cities_vn
=
City
.
top_city_by_job
@top_cities_nn
=
City
.
top_city_by_job_nn
@all_
top_
cities_vn
=
City
.
all_city_by_job
@all_
top_
cities_nn
=
City
.
all_city_by_job_nn
@all_cities_vn
=
City
.
all_city_by_job
@all_cities_nn
=
City
.
all_city_by_job_nn
end
end
app/views/cities/index.html.erb
View file @
2d57efde
...
...
@@ -21,7 +21,7 @@
<div
id=
"topcity_vn"
class=
"container p-5 my-2 bg-secondary text-white"
>
<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>
<li>
<%=
city_vn
.
city_name
%>
<br
/>
Total jobs in this city:
<%=
city_vn
.
job_count
%>
</li>
</ul>
...
...
@@ -31,7 +31,7 @@
<div
id=
"topcity_nn"
class=
"container p-5 my-2 bg-secondary text-white"
>
<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>
<li>
<%=
city_nn
.
city_name
%>
<br
/>
Total jobs in this city:
<%=
city_nn
.
job_count
%>
</li>
</ul>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment