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
0
Merge Requests
0
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
Huỳnh Thiên Phước
venjob
Commits
dee59177
Commit
dee59177
authored
Aug 07, 2020
by
Huỳnh Thiên Phước
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename some files
parent
219044f4
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
7 additions
and
8 deletions
+7
-8
app/controllers/jobs_controller.rb
+0
-1
app/models/job.rb
+1
-1
app/views/cities/_city_international.html.erb
+0
-0
app/views/cities/_city_vietnam.html.erb
+0
-0
app/views/cities/index.html.erb
+2
-2
app/views/industries/_all_industry.html.erb
+0
-0
app/views/industries/index.html.erb
+1
-1
app/views/layouts/_show_city.html.erb
+0
-0
app/views/layouts/_show_industry.html.erb
+0
-0
app/views/layouts/_show_job.html.erb
+0
-0
app/views/top_pages/index.html.erb
+3
-3
lib/src/crawler.rb
+0
-0
No files found.
app/controllers/jobs_controller.rb
View file @
dee59177
...
@@ -2,7 +2,6 @@ class JobsController < ApplicationController
...
@@ -2,7 +2,6 @@ class JobsController < ApplicationController
before_action
:use_variables
before_action
:use_variables
def
index
def
index
@jobs_list
=
Job
.
all_job
.
page
(
params
[
:page
]).
per
(
20
)
@jobs_list
=
Job
.
all_job
.
page
(
params
[
:page
]).
per
(
20
)
end
end
...
...
app/models/job.rb
View file @
dee59177
...
@@ -20,7 +20,7 @@ class Job < ApplicationRecord
...
@@ -20,7 +20,7 @@ class Job < ApplicationRecord
scope
:all_job
,
->
{
all
.
order
(
created_at: :desc
)
}
scope
:all_job
,
->
{
all
.
order
(
created_at: :desc
)
}
def
convert_job
def
convert_job
self
.
converted_name
=
Convert
.
to_convert
(
"
#{
title
}
"
)
converted_name
=
Convert
.
to_convert
(
"
#{
title
}
"
)
end
end
def
company_name
def
company_name
...
...
app/views/cities/_cit
ies
_international.html.erb
→
app/views/cities/_cit
y
_international.html.erb
View file @
dee59177
File moved
app/views/cities/_cit
ies
_vietnam.html.erb
→
app/views/cities/_cit
y
_vietnam.html.erb
View file @
dee59177
File moved
app/views/cities/index.html.erb
View file @
dee59177
...
@@ -14,13 +14,13 @@
...
@@ -14,13 +14,13 @@
<div
class=
"city-banner rounded vietnam-area"
>
Việt Nam
</div>
<div
class=
"city-banner rounded vietnam-area"
>
Việt Nam
</div>
<div
class=
"city-vietnam"
>
<div
class=
"city-vietnam"
>
<div
class=
"row"
>
<div
class=
"row"
>
<%=
render
partial:
"cit
ies
_vietnam"
,
collection:
@cities_vietnam
,
as: :city
%>
<%=
render
partial:
"cit
y
_vietnam"
,
collection:
@cities_vietnam
,
as: :city
%>
</div>
</div>
</div>
</div>
<div
class=
"city-banner rounded international-area"
>
International
</div>
<div
class=
"city-banner rounded international-area"
>
International
</div>
<div
class=
"city-international"
>
<div
class=
"city-international"
>
<div
class=
"row"
>
<div
class=
"row"
>
<%=
render
partial:
"cit
ies
_international"
,
collection:
@cities_international
,
as: :city
%>
<%=
render
partial:
"cit
y
_international"
,
collection:
@cities_international
,
as: :city
%>
</div>
</div>
</div>
</div>
</div>
</div>
app/views/industries/_all_industr
ies
.html.erb
→
app/views/industries/_all_industr
y
.html.erb
View file @
dee59177
File moved
app/views/industries/index.html.erb
View file @
dee59177
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"all-industries"
>
<div
class=
"all-industries"
>
<div
class=
"industry-banner rounded"
>
Industry List
</div>
<div
class=
"industry-banner rounded"
>
Industry List
</div>
<div
class=
"row"
>
<div
class=
"row"
>
<%=
render
partial:
"all_industr
ies
"
,
collection:
@industries
,
as: :industry
%>
<%=
render
partial:
"all_industr
y
"
,
collection:
@industries
,
as: :industry
%>
</div>
</div>
</div>
</div>
</div>
</div>
app/views/layouts/_show_cit
ies
.html.erb
→
app/views/layouts/_show_cit
y
.html.erb
View file @
dee59177
File moved
app/views/layouts/_show_industr
ies
.html.erb
→
app/views/layouts/_show_industr
y
.html.erb
View file @
dee59177
File moved
app/views/layouts/_show_job
s
.html.erb
→
app/views/layouts/_show_job.html.erb
View file @
dee59177
File moved
app/views/top_pages/index.html.erb
View file @
dee59177
...
@@ -9,12 +9,12 @@
...
@@ -9,12 +9,12 @@
<%=
render
'layouts/search_bar'
%>
<%=
render
'layouts/search_bar'
%>
</div>
</div>
<div
class=
"job-list"
>
<div
class=
"job-list"
>
<%=
render
partial:
"layouts/show_job
s
"
,
collection:
@jobs
,
as: :job
%>
<%=
render
partial:
"layouts/show_job"
,
collection:
@jobs
,
as: :job
%>
</div>
</div>
<div
class=
"city-banner rounded"
>
City
</div>
<div
class=
"city-banner rounded"
>
City
</div>
<div
class=
"row"
>
<div
class=
"row"
>
<%=
render
partial:
"layouts/show_cit
ies
"
,
collection:
@jobs_of_cities
,
as: :city
%>
<%=
render
partial:
"layouts/show_cit
y
"
,
collection:
@jobs_of_cities
,
as: :city
%>
</div>
</div>
<div
class=
"all-city"
>
<div
class=
"all-city"
>
<%=
link_to
cities_path
do
%>
<%=
link_to
cities_path
do
%>
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
</div>
</div>
<div
class=
"industry-banner rounded"
>
Industry
</div>
<div
class=
"industry-banner rounded"
>
Industry
</div>
<div
class=
"row"
>
<div
class=
"row"
>
<%=
render
partial:
"layouts/show_industr
ies
"
,
collection:
@jobs_of_industries
,
as: :industry
%>
<%=
render
partial:
"layouts/show_industr
y
"
,
collection:
@jobs_of_industries
,
as: :industry
%>
</div>
</div>
<div
class=
"all-industry"
>
<div
class=
"all-industry"
>
<%=
link_to
industries_path
do
%>
<%=
link_to
industries_path
do
%>
...
...
lib/src/crawler.rb
View file @
dee59177
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