Skip to content
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
wants to merge 38 commits into from
Closed
Show file tree
Hide file tree
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 May 7, 2018
e861b0f
Overall styling for detail page with static data
CuriousLearner May 13, 2018
485941e
Merge branch 'master' into fix-958
mbeacom May 14, 2018
bf64a0e
Fix eslint, stylelint, and isort
mbeacom May 14, 2018
11af0de
WIP job detail view
CuriousLearner May 19, 2018
c6b7d57
Make Job detail view fetch data from API
CuriousLearner May 19, 2018
58afbac
Fix linting + more dynamic render on job details page
CuriousLearner May 19, 2018
6156a07
WIP job creation
CuriousLearner May 25, 2018
786d983
Fix skills to be fetched from keywords
CuriousLearner May 27, 2018
b28e6ad
Fix header in create job page
CuriousLearner May 28, 2018
0605382
Fix posted_at date in job detail view
CuriousLearner May 28, 2018
3fbac5f
Fix migrations for jobs app
CuriousLearner Jun 3, 2018
db12ca6
Fix job listing css
CuriousLearner Jun 6, 2018
667ef36
Fix job_type display in serailizer and add filters
CuriousLearner Jun 9, 2018
edd057b
fix filter in job listing API
CuriousLearner Jun 9, 2018
91ec077
Attach filters fron frontend to APIs
CuriousLearner Jun 9, 2018
c05ab15
Fix skill rendering in listing page
CuriousLearner Jun 9, 2018
a8555d1
Merge branch 'master' into fix-958
CuriousLearner Jun 9, 2018
ca00c42
Fix lint issue
CuriousLearner Jun 9, 2018
09d6ff0
Remove unnecessary code
CuriousLearner Jun 10, 2018
fa4b8a6
Fix migrations
CuriousLearner Jun 10, 2018
ec43824
Fix profile_keywords_helper
CuriousLearner Jun 10, 2018
950db5a
Fix linting issues
CuriousLearner Jun 10, 2018
b16c06e
Merge branch 'master' of https://github.com/gitcoinco/web into fix-958
CuriousLearner Jun 15, 2018
0c48160
Fix CSS for New Jobs posting page
CuriousLearner Jun 19, 2018
848d4e0
Address reviews
CuriousLearner Jul 4, 2018
9de99ac
Remove search button from job listing
CuriousLearner Jul 5, 2018
d207c80
Fix create job template
CuriousLearner Jul 5, 2018
5233ba6
Fix create job form
CuriousLearner Jul 5, 2018
4a11527
linter
owocki Jul 9, 2018
633f1bd
Address reviews
CuriousLearner Jul 28, 2018
f86ad21
Merge branch 'fix-958' of github.com:CuriousLearner/web into fix-958
CuriousLearner Aug 5, 2018
ffa5c52
minor code fixes
CuriousLearner Aug 5, 2018
7dc1efc
Merge upstream master
CuriousLearner Aug 5, 2018
83db70c
Address reviews
CuriousLearner Aug 12, 2018
cc4c3da
Merge branch 'master' of https://github.com/gitcoinco/web into fix-958
CuriousLearner Aug 12, 2018
5feec00
Fix migrations
CuriousLearner Aug 12, 2018
5ea25f1
Fix migrations
CuriousLearner Aug 12, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
'gitcoinbot',
'external_bounties',
'dataviz',
'jobs',
'impersonate',
]

Expand Down
8 changes: 8 additions & 0 deletions app/app/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import external_bounties.views
import faucet.views
import gitcoinbot.views
import jobs.views
import linkshortener.views
import marketing.views
import marketing.webhookviews
Expand All @@ -46,6 +47,7 @@
import tdi.views
from dashboard.router import router as dbrouter
from external_bounties.router import router as ebrouter
from jobs.routers import router as job_router

from .sitemaps import sitemaps

Expand All @@ -58,6 +60,7 @@
url(r'^api/v0.1/faucet/save/?', faucet.views.save_faucet, name='save_faucet'),
url(r'^api/v0.1/', include(dbrouter.urls)),
url(r'^api/v0.1/', include(ebrouter.urls)),
url(r'^api/v0.1/', include(job_router.urls)),
url(r'^actions/api/v0.1/', include(dbrouter.urls)), # same as active, but not cached in cluodfront

# dashboard views
Expand Down Expand Up @@ -364,6 +367,11 @@

# gitcoinbot
url(settings.GITHUB_EVENT_HOOK_URL, gitcoinbot.views.payload, name='payload'),

# Job urls goes below
path('jobs', jobs.views.list_jobs, name='job-list-template'),
path('jobs/<int:pk>/', jobs.views.job_detail, name='job-detail-template'),
path('jobs/new/', jobs.views.create_job, name='job-create-template'),
url(r'^impersonate/', include('impersonate.urls')),
]

Expand Down
206 changes: 206 additions & 0 deletions app/assets/v2/css/jobs.css
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;
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we replace px and em with -> rem

48 changes: 48 additions & 0 deletions app/assets/v2/js/pages/job_details.js
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();
});
Loading