-
-
Notifications
You must be signed in to change notification settings - Fork 776
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP on jobs board #1102
Closed
Closed
WIP on jobs board #1102
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
039133f
WIP on jobs board
CuriousLearner e861b0f
Overall styling for detail page with static data
CuriousLearner 485941e
Merge branch 'master' into fix-958
mbeacom bf64a0e
Fix eslint, stylelint, and isort
mbeacom 11af0de
WIP job detail view
CuriousLearner c6b7d57
Make Job detail view fetch data from API
CuriousLearner 58afbac
Fix linting + more dynamic render on job details page
CuriousLearner 6156a07
WIP job creation
CuriousLearner 786d983
Fix skills to be fetched from keywords
CuriousLearner b28e6ad
Fix header in create job page
CuriousLearner 0605382
Fix posted_at date in job detail view
CuriousLearner 3fbac5f
Fix migrations for jobs app
CuriousLearner db12ca6
Fix job listing css
CuriousLearner 667ef36
Fix job_type display in serailizer and add filters
CuriousLearner edd057b
fix filter in job listing API
CuriousLearner 91ec077
Attach filters fron frontend to APIs
CuriousLearner c05ab15
Fix skill rendering in listing page
CuriousLearner a8555d1
Merge branch 'master' into fix-958
CuriousLearner ca00c42
Fix lint issue
CuriousLearner 09d6ff0
Remove unnecessary code
CuriousLearner fa4b8a6
Fix migrations
CuriousLearner ec43824
Fix profile_keywords_helper
CuriousLearner 950db5a
Fix linting issues
CuriousLearner b16c06e
Merge branch 'master' of https://github.com/gitcoinco/web into fix-958
CuriousLearner 0c48160
Fix CSS for New Jobs posting page
CuriousLearner 848d4e0
Address reviews
CuriousLearner 9de99ac
Remove search button from job listing
CuriousLearner d207c80
Fix create job template
CuriousLearner 5233ba6
Fix create job form
CuriousLearner 4a11527
linter
owocki 633f1bd
Address reviews
CuriousLearner f86ad21
Merge branch 'fix-958' of github.com:CuriousLearner/web into fix-958
CuriousLearner ffa5c52
minor code fixes
CuriousLearner 7dc1efc
Merge upstream master
CuriousLearner 83db70c
Address reviews
CuriousLearner cc4c3da
Merge branch 'master' of https://github.com/gitcoinco/web into fix-958
CuriousLearner 5feec00
Fix migrations
CuriousLearner 5ea25f1
Fix migrations
CuriousLearner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,6 +92,7 @@ | |
'gitcoinbot', | ||
'external_bounties', | ||
'dataviz', | ||
'jobs', | ||
'impersonate', | ||
] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,206 @@ | ||
body { | ||
font-family: 'Muli', sans-serif; | ||
background: #FFFFFF; | ||
} | ||
|
||
h3, h4 { | ||
text-transform: none; | ||
} | ||
|
||
h4 { | ||
text-align: left; | ||
} | ||
|
||
#filter { | ||
color: #3e24fb; | ||
} | ||
|
||
#matches { | ||
font-family: 'Muli', sans-serif; | ||
font-weight: 300; | ||
padding-left: 10px; | ||
} | ||
|
||
.title { | ||
text-transform: capitalize; | ||
} | ||
|
||
.title-row { | ||
display: flex; | ||
margin-top: 2em; | ||
padding-bottom: 5px; | ||
border-bottom: 2px solid #3E24FB; | ||
} | ||
|
||
.body .row { | ||
margin-left: 0px; | ||
} | ||
|
||
.body .avatar { | ||
max-height: 50px; | ||
max-width: 50px; | ||
} | ||
|
||
.job-row { | ||
color: #000000; | ||
text-decoration: none; | ||
padding: 10px 20px 10px 4em; | ||
} | ||
|
||
.job-row:hover { | ||
background-color: #F9F9F9; | ||
} | ||
|
||
.job-row .avatar-container { | ||
text-align: right; | ||
margin-top: auto; | ||
margin-bottom: auto; | ||
} | ||
|
||
.job-row img { | ||
margin-top: 6px; | ||
margin-right: 20px; | ||
} | ||
|
||
.job-row .title { | ||
margin-bottom: 2px; | ||
} | ||
|
||
.job-company-detail { | ||
text-align: right; | ||
} | ||
|
||
.job-info { | ||
top: 4px; | ||
text-align: right; | ||
} | ||
|
||
.job-title { | ||
padding-top: 2em; | ||
} | ||
|
||
.job-header { | ||
padding-bottom: 6em; | ||
} | ||
|
||
#job-board-title { | ||
text-transform: uppercase; | ||
color: #00A55E; | ||
text-align: center; | ||
font-size: 3em; | ||
} | ||
|
||
.company-name, | ||
#exp-lang, | ||
#job-post-duration { | ||
color: #717171; | ||
} | ||
|
||
.job-detail { | ||
margin-top: 10px; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.job-type { | ||
color: #00A55E; | ||
text-transform: uppercase; | ||
flex-grow: 1; | ||
} | ||
|
||
.job-location { | ||
flex-grow: 1; | ||
color: #666666; | ||
} | ||
|
||
.flex-grow-8 { | ||
flex-grow: 8; | ||
} | ||
|
||
.job-type-loc { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
margin: 1em 0 1em 0; | ||
} | ||
|
||
.job-company-exp { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
margin: 1em 0 1em 0; | ||
padding-bottom: 2em; | ||
} | ||
|
||
.job-posted { | ||
flex-grow: 8; | ||
} | ||
|
||
.job-experience { | ||
flex-grow: 1; | ||
} | ||
|
||
.job-company { | ||
margin-right: 5px; | ||
font-weight: bold; | ||
color: #666666; | ||
} | ||
|
||
.job-skill { | ||
color: #666666; | ||
} | ||
|
||
.job-tags { | ||
margin: 1em 0 1em 0; | ||
} | ||
|
||
.tags { | ||
display: flex; | ||
} | ||
|
||
.box { | ||
padding: 14px; | ||
border: 1px solid #DBDBDB; | ||
border-radius: 3px; | ||
margin: 0; | ||
} | ||
|
||
.btn-white { | ||
border: 1px solid #979797; | ||
color: #0D0764; | ||
border-radius: 3px; | ||
position: relative; | ||
} | ||
|
||
.job-apply-btn { | ||
background-color: #0D0764; | ||
color: #FFFFFF; | ||
padding-left: 2em; | ||
padding-right:2em; | ||
margin-right: 1em; | ||
} | ||
|
||
.github-profile-btn { | ||
color: #0D0764; | ||
} | ||
|
||
.tag.keyword { | ||
min-width: 0; | ||
font-size: 11px; | ||
padding: 5px 10px; | ||
background-color: #F2F6F9; | ||
color: #6184AC; | ||
} | ||
|
||
@media (max-width: 768px) { | ||
|
||
.job-info { | ||
top: 10px; | ||
font-size: 10px; | ||
text-align: left; | ||
} | ||
|
||
.job-row { | ||
padding-left: 1em; | ||
padding-right: 2em; | ||
} | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* eslint block-scoped-var: "warn" */ | ||
/* eslint no-redeclare: "warn" */ | ||
|
||
var build_detail_page = function(result) { | ||
result['created_at'] = timeDifference(new Date(), new Date(result['created_at'])); | ||
var template = $.templates('#job_detail'); | ||
|
||
html = template.render(result); | ||
|
||
$('#rendered_job_detail').html(html); | ||
}; | ||
|
||
var pull_job_from_api = function() { | ||
var uri = '/api/v0.1/jobs/' + document.job_id + '/'; | ||
|
||
$.get(uri, function(result) { | ||
result = sanitizeAPIResults(result); | ||
var nonefound = true; | ||
|
||
if (result) { | ||
nonefound = false; | ||
build_detail_page(result); | ||
document.result = result; | ||
$('#rendered_job_detail').css('display', 'block'); | ||
} | ||
if (nonefound) { | ||
$('#rendered_job_detail').css('display', 'none'); | ||
// is there a pending issue or not? | ||
$('.nonefound').css('display', 'block'); | ||
} | ||
}).fail(function() { | ||
_alert({message: gettext('got an error. please try again, or contact [email protected]')}, 'error'); | ||
$('#rendered_job_detail').css('display', 'none'); | ||
}).always(function() { | ||
$('.loading').css('display', 'none'); | ||
}); | ||
}; | ||
|
||
var main = function() { | ||
setTimeout(function() { | ||
pull_job_from_api(); | ||
}, 100); | ||
}; | ||
|
||
|
||
window.addEventListener('load', function() { | ||
main(); | ||
}); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we replace
px
andem
with ->rem