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
bb43f3b5
Commit
bb43f3b5
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
b44e228c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
2 deletions
+38
-2
app/controllers/jobs_controller.rb
+0
-1
app/models/job.rb
+1
-1
app/views/cities/_city_international.html.erb
+13
-0
app/views/cities/_city_vietnam.html.erb
+12
-0
app/views/industries/_all_industry.html.erb
+12
-0
No files found.
app/controllers/jobs_controller.rb
View file @
bb43f3b5
...
...
@@ -2,7 +2,6 @@ class JobsController < ApplicationController
before_action
:use_variables
def
index
@jobs_list
=
Job
.
all_job
.
page
(
params
[
:page
]).
per
(
20
)
end
...
...
app/models/job.rb
View file @
bb43f3b5
...
...
@@ -20,7 +20,7 @@ class Job < ApplicationRecord
scope
:all_job
,
->
{
limit
(
20
).
order
(
created_at: :desc
)
}
def
convert_job
self
.
converted_name
=
Convert
.
to_convert
(
"
#{
title
}
"
)
converted_name
=
Convert
.
to_convert
(
"
#{
title
}
"
)
end
def
company_name
...
...
app/views/cities/_city_international.html.erb
0 → 100644
View file @
bb43f3b5
<div
class=
"col-3 remove-decoration"
>
<%=
link_to
city_jobs_path
(
converted_name:
city
.
converted_name
)
do
%>
<div
class=
"border border-dark rounded vn-name"
>
<div>
<strong>
<%=
city
.
name
%>
</strong>
</div>
<div>
<%=
city
.
jobs
.
count
%>
</div>
</div>
<%
end
%>
</div>
app/views/cities/_city_vietnam.html.erb
0 → 100644
View file @
bb43f3b5
<div
class=
"col-3 remove-decoration"
>
<%=
link_to
city_jobs_path
(
converted_name:
city
.
convert_name
)
do
%>
<div
class=
"border border-dark rounded international-name"
>
<div>
<strong>
<%=
city
.
name
%>
</strong>
</div>
<div>
<%=
city
.
jobs
.
count
%>
</div>
</div>
<%
end
%>
</div>
app/views/industries/_all_industry.html.erb
0 → 100644
View file @
bb43f3b5
<div
class=
"col-3 remove-decoration"
>
<%=
link_to
industry_jobs_path
(
converted_name:
industry
.
converted_name
)
do
%>
<div
class=
"border border-dark rounded industry-details"
>
<div>
<strong>
<%=
industry
.
name
%>
</strong>
</div>
<div>
<%=
industry
.
jobs
.
count
%>
</div>
</div>
<%
end
%>
</div>
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