Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VenJob
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
1
Merge Requests
1
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
Đường Sỹ Hoàng
VenJob
Commits
cfd5dba8
Commit
cfd5dba8
authored
Dec 18, 2019
by
Đường Sỹ Hoàng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed setting
parent
64c4a66e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
app/controllers/top_controller.rb
+2
-2
config/settings.yml
+6
-0
No files found.
app/controllers/top_controller.rb
View file @
cfd5dba8
class
TopController
<
ApplicationController
class
TopController
<
ApplicationController
def
index
def
index
@latest_jobs
=
Job
.
latest_jobs
.
take
(
5
)
@latest_jobs
=
Job
.
latest_jobs
.
take
(
Settings
.
top
.
job
.
limit
)
@top_cities
=
City
.
sort_top_cities
.
take
(
9
)
@top_cities
=
City
.
sort_top_cities
.
take
(
Settings
.
top
.
city
.
limit
)
end
end
end
end
config/settings.yml
View file @
cfd5dba8
import_job
:
import_job
:
csv_file
:
db/Venjob.csv
csv_file
:
db/Venjob.csv
top
:
job
:
limit
:
5
city
:
limit
:
9
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