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
2
Merge Requests
2
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
Thanh Hung Pham
veNJOB
Commits
5293c7ae
Commit
5293c7ae
authored
Jul 24, 2017
by
Thanh Hung Pham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix comment - use .try(:name) method
parent
346c6529
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
7 deletions
+7
-7
app/views/jobs/applied_jobs.html.erb
+1
-1
app/views/jobs/detail.html.erb
+2
-2
app/views/jobs/favorited_jobs.html.erb
+1
-1
app/views/jobs/history_jobs.html.erb
+1
-1
app/views/jobs/show.html.erb
+1
-1
app/views/static_pages/home.html.erb
+1
-1
No files found.
app/views/jobs/applied_jobs.html.erb
View file @
5293c7ae
...
...
@@ -16,7 +16,7 @@
<tr>
<td>
<%=
link_to
apply
.
job
.
name
,
jobs_detail_path
(
id:
apply
.
job
.
id
)
%>
</td>
<td>
<%=
truncate
(
apply
.
job
.
description
,
length:
250
)
%>
</td>
<td>
<%=
apply
.
job
.
city
.
name
unless
apply
.
job
.
city
.
nil?
%>
</td>
<td>
<%=
apply
.
job
.
city
.
try
(
:name
)
%>
</td>
<td>
<%=
apply
.
job
.
salary
%>
</td>
<td>
<%=
apply
.
applied_at
.
strftime
(
'%F'
)
%>
</td>
<td>
</td>
...
...
app/views/jobs/detail.html.erb
View file @
5293c7ae
...
...
@@ -5,11 +5,11 @@
<div
class=
"col-md-9 col-md-offset-1"
>
<div
class=
"row"
>
Company:
<%=
link_to
@job
.
company
.
name
,
jobs_show_path
(
company_id:
@job
.
company
.
id
)
unless
@job
.
company
.
nil?
%>
<%=
link_to
@job
.
company
.
try
(
:name
)
,
jobs_show_path
(
company_id:
@job
.
company
.
id
)
unless
@job
.
company
.
nil?
%>
</div>
<div
class=
"row"
>
Location:
<%=
link_to
@job
.
city
.
name
,
jobs_show_path
(
city_id:
@job
.
city
.
id
)
unless
@job
.
city
.
nil?
%>
<%=
link_to
@job
.
city
.
try
(
:name
)
,
jobs_show_path
(
city_id:
@job
.
city
.
id
)
unless
@job
.
city
.
nil?
%>
</div>
<div
class=
"row"
>
Salary:
...
...
app/views/jobs/favorited_jobs.html.erb
View file @
5293c7ae
...
...
@@ -15,7 +15,7 @@
<tr>
<td>
<%=
link_to
favorite
.
job
.
name
,
jobs_detail_path
(
id:
favorite
.
job
.
id
)
%>
</td>
<td>
<%=
truncate
(
favorite
.
job
.
description
,
length:
250
)
%>
</td>
<td>
<%=
favorite
.
job
.
city
.
name
unless
favorite
.
job
.
city
.
nil?
%>
</td>
<td>
<%=
favorite
.
job
.
city
.
try
(
:name
)
%>
</td>
<td>
<%=
favorite
.
job
.
salary
%>
</td>
<td>
<%=
link_to
'Remove'
,
'#'
,
class:
'favorite_remove'
%>
...
...
app/views/jobs/history_jobs.html.erb
View file @
5293c7ae
...
...
@@ -14,7 +14,7 @@
<tr>
<td>
<%=
link_to
history
.
job
.
name
,
jobs_detail_path
(
id:
history
.
job
.
id
)
%>
</td>
<td>
<%=
truncate
(
history
.
job
.
description
,
length:
250
)
%>
</td>
<td>
<%=
history
.
job
.
city
.
name
unless
history
.
job
.
city
.
nil?
%>
</td>
<td>
<%=
history
.
job
.
city
.
try
(
:name
)
%>
</td>
<td>
<%=
history
.
job
.
salary
%>
</td>
</tr>
<%-
end
-%>
...
...
app/views/jobs/show.html.erb
View file @
5293c7ae
...
...
@@ -31,7 +31,7 @@
<tr>
<td>
<%=
link_to
job
.
name
,
jobs_detail_path
(
id:
job
.
id
)
%>
</td>
<td>
<%=
truncate
(
job
.
description
,
length:
250
)
%>
</td>
<td>
<%=
job
.
city
.
name
unless
job
.
city
.
nil?
%>
</td>
<td>
<%=
job
.
city
.
try
(
:name
)
%>
</td>
<td>
<%=
job
.
salary
%>
</td>
<td>
<%-
if
Favorite
.
where
(
user:
current_user
,
job:
job
).
blank?
-%>
...
...
app/views/static_pages/home.html.erb
View file @
5293c7ae
...
...
@@ -27,7 +27,7 @@
<tr>
<td>
<%=
job
.
name
%>
</td>
<td>
<%=
job
.
salary
%>
</td>
<td>
<%=
job
.
city
.
name
unless
job
.
city
.
nil?
%>
</td>
<td>
<%=
job
.
city
.
try
(
:name
)
%>
</td>
<td>
<%=
truncate
(
job
.
description
,
length:
250
)
%>
</td>
</tr>
<%-
end
-%>
...
...
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