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
Hoang Nam Nguyen
Venjob
Commits
44f4d89b
Commit
44f4d89b
authored
Oct 05, 2017
by
Hoang Nam Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'finish applied_job_page'
parent
74cb245e
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
47 additions
and
4 deletions
+47
-4
app/controllers/users_controller.rb
+3
-0
app/views/job/_search.html.erb
+3
-2
app/views/job/index.html.erb
+3
-1
app/views/users/_my_jobs.html.erb
+27
-0
app/views/users/my_jobs.html.erb
+9
-0
app/views/users/my_page.html.erb
+1
-1
config/application.rb
+1
-0
No files found.
app/controllers/users_controller.rb
View file @
44f4d89b
...
...
@@ -46,6 +46,9 @@ class UsersController < ApplicationController
end
def
my_jobs
@user
=
current_user
@job
=
@user
.
applies
@job_pages
=
::
Kaminari
.
paginate_array
(
@user
.
applies
).
page
(
params
[
:page
]).
per
(
20
)
end
private
...
...
app/views/job/_search.html.erb
View file @
44f4d89b
<div
class=
"container mt-5"
>
<div
class=
"row mb-5"
>
<div
class=
"search_list titlejob col-md-10"
>
<%=
link_to
job
[
'job_name'
].
join
(
','
),
job_detail_path
(
job
[
'job_id'
]),
class:
'search_list_jobs_title'
%>
<%
unless
job
[
'short_description'
].
nil?
%>
<li
class=
"detail_description"
>
...
...
@@ -23,7 +22,9 @@
</div>
<div
class=
"col-md-2 mt-2"
>
<%=
link_to
'Favorite'
,
'#'
,
{
class:
'btn btn-success'
}
%>
<%=
link_to
''
,
class:
'btn btn-success'
do
%>
<i
class=
"fa fa-heartbeat"
></i>
Favorite
<%
end
%>
</div>
</div>
...
...
app/views/job/index.html.erb
View file @
44f4d89b
...
...
@@ -2,7 +2,9 @@
<%=
form_tag
job_index_path
,
method: :get
do
%>
<div
class=
"row search_field mt-5"
>
<%=
search_field_tag
's'
,
nil
,
placeholder:
'Search...'
,
class:
'col-10 form-control'
%>
<%=
submit_tag
'Search'
,
id:
"search_button"
,
class:
'col-1 btn btn-success form-control ml-3 '
%>
<%=
button_tag
(
type:
"submit"
,
class:
"col-1 btn btn-success form-control ml-3"
,
id:
"search_button"
)
do
%>
<i
class=
"fa fa-search"
>
Search
</i>
<%
end
%>
</div>
<%
end
%>
...
...
app/views/users/_my_jobs.html.erb
0 → 100644
View file @
44f4d89b
<div
class=
"container mt-5"
>
<div
class=
"row mb-5 ml-5"
>
<div
class=
"search_list titlejob col-md-10"
>
<%=
link_to
apply
.
job
.
job_title
,
job_detail_path
(
apply
.
job
.
id
),
class:
'search_list_jobs_title'
%>
<%
unless
apply
.
job
.
short_description
.
nil?
%>
<li
class=
"detail_description"
>
<%=
truncate
apply
.
job
.
short_description
,
length:
250
%>
<%=
link_to
'read more'
,
job_detail_path
(
apply
.
job
.
id
)
%>
</li>
</li>
<%
end
%>
<div
class=
"row ml-0"
>
<li
class=
"detail_description col-md-5"
>
<%=
apply
.
job
.
cities
.
map
(
&
:location
).
join
(
','
)
%>
</li>
<%
unless
apply
.
job
.
salary
.
nil?
%>
<li
class=
" detail_description float-right text-success col-md-5"
>
<%=
apply
.
job
.
salary
%>
</li>
<%
end
-%>
</div>
</div>
</div>
</div>
\ No newline at end of file
app/views/users/my_jobs.html.erb
View file @
44f4d89b
<%=
provide
(
:title
,
"Applied jobs"
)
%>
<h1
class=
"text-center mt-5 text-danger"
>
Applied Jobs
</h1>
<div
class=
"mt-4"
>
<%=
paginate
@job_pages
,
theme:
'twitter-bootstrap-4'
%>
<%=
render
partial:
"my_jobs"
,
collection:
@job
,
as: :apply
%>
<%=
paginate
@job_pages
,
theme:
'twitter-bootstrap-4'
%>
</div>
\ No newline at end of file
app/views/users/my_page.html.erb
View file @
44f4d89b
...
...
@@ -59,7 +59,7 @@
</div>
<div
class=
"col-md-3"
>
<%=
link_to
'#'
,
class:
'btn btn-danger'
do
%>
<%=
link_to
my_jobs_path
(
@user
.
id
)
,
class:
'btn btn-danger'
do
%>
<i
class=
"fa fa-list-ol"
></i>
MyJobs
<%
end
%>
</div>
...
...
config/application.rb
View file @
44f4d89b
...
...
@@ -14,6 +14,7 @@ module VenJob
config
.
active_job
.
queue_adapter
=
:sidekiq
require
'carrierwave'
require
'carrierwave/orm/activerecord'
config
.
time_zone
=
'Hanoi'
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
...
...
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