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
Nguyen Ngoc Nghia
VeNJOB
Commits
220a6675
Commit
220a6675
authored
Feb 18, 2020
by
nnnghia98
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removing some code
parent
da6e89c7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 additions
and
6 deletions
+1
-6
app/helpers/job_helper.rb
+0
-4
app/services/solr_service.rb
+0
-1
app/views/jobs/index.html.erb
+1
-1
No files found.
app/helpers/job_helper.rb
View file @
220a6675
module
JobHelper
def
view_jobs_count
(
count
)
params
[
:city_id
]
?
count
:
(
params
[
:industry_id
]
?
count
:
count
)
end
def
view_search_result
params
[
:city_id
]
?
"City:
#{
@jobs
[
0
][
"city"
]
}
"
:
(
params
[
:industry_id
]
?
"Industry:
#{
@jobs
[
0
][
"industry"
]
}
"
:
params
[
:search
])
...
...
app/services/solr_service.rb
View file @
220a6675
require
"rsolr"
require
'benchmark'
class
SolrService
def
initialize
(
search_keyword
)
...
...
app/views/jobs/index.html.erb
View file @
220a6675
...
...
@@ -3,7 +3,7 @@
<%=
submit_tag
"Search"
,
class:
"btn btn-primary mb-2"
%>
<%
end
%>
<h3>
Total:
<%=
view_jobs_count
(
@jobs_count
)
%>
</h3>
<h3>
Total:
<%=
@jobs_count
%>
</h3>
<h3>
Result for:
<%=
view_search_result
%>
</h3>
<%=
paginate
@jobs
%>
...
...
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