show latest jobs, top industries, top cities
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
Step 1. Fetch and check out the branch for this merge request
git fetch origin git checkout -b id1-top-page origin/id1-top-page
Step 2. Review the changes locally
Step 3. Merge the branch and fix any conflicts that come up
git checkout master git merge --no-ff id1-top-page
Step 4. Push the result of the merge to GitLab
git push origin master
Note that pushing to GitLab requires write access to this repository.
Tip: You can also checkout merge requests locally by following these guidelines.
| 1 | class HomeController < ApplicationController | |
| 2 | def index | |
| 3 | @total_jobs = Job.count | |
Please
register
or
sign in
to reply
|
||
| 1 | class HomeController < ApplicationController | |
| 2 | def index | |
| 3 | @total_jobs = Job.count | |
| 4 | @locations = Location.all | |
| 5 | @industries = Industry.all | |
| 6 | @jobs = Job.order(created_at: :desc).limit(6) | |
|
||
| 1 | class HomeController < ApplicationController | |
| 2 | def index | |
| 3 | @total_jobs = Job.count | |
| 4 | @locations = Location.all | |
| 5 | @industries = Industry.all | |
| 6 | @jobs = Job.order(created_at: :desc).limit(6) | |
| 7 | @top_cities = list_top_of(@locations, 9) | |
| 8 | @top_industries = list_top_of(@industries, 9) | |
| 9 | end | |
| 10 | ||
| 11 | private | |
| 12 | ||
| 13 | def list_top_of(list_object, number) | |
|
||
| 1 | <% location = Location.find_by(id: object[0]) %> | |
| 2 | <div class="col-4 my-2"> | |
|
||
resolved all discussions
resolved all discussions
added 2 commits
added 2 commits
| 1 | class HomeController < ApplicationController | |
| 2 | def index | |
| 3 | @total_jobs = Job.count | |
| 4 | @locations = Location.all | |
| 5 | @industries = Industry.all | |
| 6 | @jobs = Job.order(created_at: :desc).limit(Job::NUMBER_LATEST_JOB) | |
| 7 | @top_cities = Location.top_locations(9) | |
|
||
| 1 | <nav class='navbar navbar-expand-lg navbar-light sticky-top'> | |
|
||
resolved all discussions
resolved all discussions
| 1 | <div class='banner_top'> | |
| 2 | <%= image_tag 'venjob-banner',class: 'banner_img'%> | |
| 3 | <div class='overlay'></div> | |
| 4 | <div class='box_seach text-center'> | |
| 5 | <h3>We have <%= @total_jobs %> jobs for you</h3> | |
| 6 | <%= render 'shared/searchbar' %> | |
| 7 | </div> | |
| 8 | </div> | |
| 9 | <div id='latest-job' class='my-4 text-center'> | |
| 10 | <h1>Latest Job</h1> | |
|
||
added 1 commit
added 1 commit
resolved all discussions
resolved all discussions
mentioned in commit 4e70cfdf
mentioned in commit 4e70cfdf
merged
merged