Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
venjob_nth
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
Ngô Trung Hưng
venjob_nth
Commits
29876198
Commit
29876198
authored
Aug 03, 2020
by
Ngô Trung Hưng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use collection in render partial
parent
7dc4d2fa
Pipeline
#779
failed with stages
in 0 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
34 deletions
+23
-34
app/views/city/_block_city_jobs.html.erb
+11
-8
app/views/city/index.html.erb
+2
-14
app/views/industry/_block_industry.html.erb
+8
-6
app/views/industry/index.html.erb
+2
-6
No files found.
app/views/city/_block_city_jobs.html.erb
View file @
29876198
<div
class=
"box_cityjobs"
>
<%
unless
city
.
jobs
.
count
<
1
%>
<div
class=
"box_cityjobs_name"
>
<div
class=
"col-lg-3 col-md-4"
>
<%=
link_to
city
.
name
,
'#'
,
class:
'cityjobs_link'
%>
<div
class=
"box_cityjobs"
>
<div
class=
"box_cityjobs_name"
>
<%=
link_to
city
.
name
,
'#'
,
class:
'cityjobs_link'
%>
</div>
<div
class=
"box_cityjobs_count"
>
<span>
<%=
city
.
jobs
.
count
%>
Công việc
</span>
</div>
</div>
</div>
</div>
<div
class=
"box_cityjobs_count"
>
<%
end
%>
<span>
<%=
city
.
jobs
.
count
%>
Công việc
</span>
</div>
</div>
\ No newline at end of file
app/views/city/index.html.erb
View file @
29876198
...
@@ -32,13 +32,7 @@
...
@@ -32,13 +32,7 @@
</div>
</div>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"row"
>
<%
@list_cities_domestic
.
each
do
|
city
|
%>
<%=
render
partial:
'block_city_jobs'
,
collection:
@list_cities_domestic
,
as: :city
%>
<%
unless
city
.
jobs
.
count
<
1
%>
<div
class=
"col-lg-3 col-md-4"
>
<%=
render
'block_city_jobs'
,
city:
city
%>
</div>
<%
end
%>
<%
end
%>
</div>
</div>
</div>
</div>
<div
class=
"col-lg-12"
>
<div
class=
"col-lg-12"
>
...
@@ -48,13 +42,7 @@
...
@@ -48,13 +42,7 @@
</div>
</div>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"row"
>
<%
@list_cities_international
.
each
do
|
city
|
%>
<%=
render
partial:
'block_city_jobs'
,
collection:
@list_cities_international
,
as: :city
%>
<%
unless
city
.
jobs
.
count
<
1
%>
<div
class=
"col-lg-3 col-md-4"
>
<%=
render
'block_city_jobs'
,
city:
city
%>
</div>
<%
end
%>
<%
end
%>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
app/views/industry/_block_industry.html.erb
View file @
29876198
<div
class=
"box_cityjobs"
>
<div
class=
"col-lg-3 col-md-4"
>
<div
class=
"box_cityjobs_name"
>
<div
class=
"box_cityjobs"
>
<%=
link_to
industry
.
name
,
'#'
,
class:
'cityjobs_link'
%>
<div
class=
"box_cityjobs_name"
>
</div>
<%=
link_to
industry
.
name
,
'#'
,
class:
'cityjobs_link'
%>
<div
class=
"box_cityjobs_count"
>
</div>
<span>
<%=
industry
.
jobs
.
count
%>
Công việc
</span>
<div
class=
"box_cityjobs_count"
>
<span>
<%=
industry
.
jobs
.
count
%>
Công việc
</span>
</div>
</div>
</div>
</div>
</div>
app/views/industry/index.html.erb
View file @
29876198
...
@@ -8,12 +8,8 @@
...
@@ -8,12 +8,8 @@
</div>
</div>
</div>
</div>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"row"
>
<%
@industries
.
each
do
|
industry
|
%>
<%=
render
partial:
'block_industry'
,
collection:
@industries
,
as: :industry
%>
<div
class=
"col-lg-3 col-md-4"
>
<%=
render
'block_industry'
,
industry:
industry
%>
</div>
<%
end
%>
</div>
</div>
</div>
</div>
</div>
</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