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

Alerts for job posts based on filtersets [WIP] #435

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
23519c0
subscriptions [wip]
shreyas-satish Apr 5, 2018
620d045
working backend for job alerts
shreyas-satish Apr 9, 2018
3c457f0
simplify and cleanup
shreyas-satish Apr 9, 2018
df699d7
Using StateManager for JobApplication model (#432)
Apr 11, 2018
7e87088
turn off autocomplete for the filters form
shreyas-satish Apr 11, 2018
3681656
changed background job to 10 minutes, custom __init__ for Filterset, …
shreyas-satish Apr 11, 2018
75c8976
added user association. added timing for alerts. cleanup
shreyas-satish Apr 11, 2018
3583eb3
Merge branch 'job-alerts' into jobalerts
shreyas-satish Apr 12, 2018
661d6c7
added time check for alert sending. cleanup. set sitemap
shreyas-satish Apr 12, 2018
9903e76
Merge branch 'master' into jobalerts
shreyas-satish Apr 16, 2018
c085782
removed fail logging. versioned api endpoints. added cascade for jobp…
shreyas-satish Apr 17, 2018
dfe052e
make title and name in filterset nullable
shreyas-satish Apr 17, 2018
ed3a605
changed function name
shreyas-satish Apr 17, 2018
0f9e3ac
Merge branch 'master' into jobalerts
shreyas-satish Apr 17, 2018
9d0432d
user or anon_user
shreyas-satish Apr 17, 2018
20512a2
added frequency to subscription init
shreyas-satish Apr 17, 2018
da775ca
Add form to subscribe to email alerts for job posts.
vidya-ram Apr 19, 2018
30993bd
Sync with latest.
vidya-ram Apr 19, 2018
27c2104
use form for email_frequency
shreyas-satish Apr 21, 2018
0623088
Update UI of job alerts form.
vidya-ram Apr 23, 2018
1219f55
Update text of subscribe form. Remove the border.
vidya-ram Apr 23, 2018
7a818d0
Update alert mailer template.
vidya-ram Apr 26, 2018
f82ee05
Merge branch 'master' into jobalerts
vidya-ram Apr 26, 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
Prev Previous commit
Next Next commit
Update text of subscribe form. Remove the border.
vidya-ram committed Apr 23, 2018
commit 1219f556398f6b5dd944429e994380db8eca58fd
9 changes: 3 additions & 6 deletions hasjob/assets/sass/_header.sass
Original file line number Diff line number Diff line change
@@ -355,15 +355,12 @@ header
border-left-color: $color-title-has

#subscribe-jb-form
.subscribeform
background-image: url("~/static/img/form-border.png")
background-position: 100% 0
background-repeat: repeat-x
background-size: 40px 3px

.form-inline
.listwidget ul input
top: 6px

.no-left-padding .controls
padding: 0

.field-email
width: 100%
Original file line number Diff line number Diff line change
@@ -302,18 +302,15 @@ header {
border-top-color: #df5e0e;
border-left-color: #df5e0e; }

#subscribe-jb-form .subscribeform {
background-image: url("/static/img/form-border.png");
background-position: 100% 0;
background-repeat: repeat-x;
background-size: 40px 3px; }

#subscribe-jb-form .form-inline .listwidget ul input {
top: 6px; }

#subscribe-jb-form .form-inline .no-left-padding .controls {
padding: 0; }

#subscribe-jb-form .form-inline .field-email {
width: 100%; }

.input-group-btn > .btn {
border-bottom: 1px solid #ccc; }
.input-group-btn > .btn:hover, .input-group-btn > .btn:focus, .input-group-btn > .btn:active {
2 changes: 1 addition & 1 deletion hasjob/static/build/manifest.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"assets":{"vendor":"js/vendor.bf0fec291a76efe07fc5.js","app-css":"css/stylesheet-app-css.bf0fec291a76efe07fc5.css","app":"js/app.bf0fec291a76efe07fc5.js","manifest":"js/manifest.bf0fec291a76efe07fc5.js"}}
{"assets":{"vendor":"js/vendor.4ae34a71f5396f93a5f7.js","app-css":"css/stylesheet-app-css.4ae34a71f5396f93a5f7.css","app":"js/app.4ae34a71f5396f93a5f7.js","manifest":"js/manifest.4ae34a71f5396f93a5f7.js"}}
10 changes: 5 additions & 5 deletions hasjob/static/service-worker.js
Original file line number Diff line number Diff line change
@@ -8,19 +8,19 @@ const workboxSW = new self.WorkboxSW({

workboxSW.precache([
{
"url": "/static/build/css/stylesheet-app-css.bf0fec291a76efe07fc5.css",
"revision": "3f712cf67b9405201a4075648af9e04c"
"url": "/static/build/css/stylesheet-app-css.4ae34a71f5396f93a5f7.css",
"revision": "29bf4620ef5a019af29348f4fb6b14d7"
},
{
"url": "/static/build/js/app.bf0fec291a76efe07fc5.js",
"url": "/static/build/js/app.4ae34a71f5396f93a5f7.js",
"revision": "114869d8de2180fa11f38b774335c944"
},
{
"url": "/static/build/js/manifest.bf0fec291a76efe07fc5.js",
"url": "/static/build/js/manifest.4ae34a71f5396f93a5f7.js",
"revision": "fe684bf23b9518850a7a3dd90492001d"
},
{
"url": "/static/build/js/vendor.bf0fec291a76efe07fc5.js",
"url": "/static/build/js/vendor.4ae34a71f5396f93a5f7.js",
"revision": "12a1ca8d2cb2caab35d21438cb595e94"
}
]);
8 changes: 4 additions & 4 deletions hasjob/templates/index.html.jinja2
Original file line number Diff line number Diff line change
@@ -58,16 +58,16 @@
<div class="col-md-10 col-md-offset-1 col-xs-12 col-sm-12">
<div class="flash info subscribeform">
<h2>Subscribe to job alerts</h2>
<p>We will send you alerts that match the filtering criteria you've selected above.</p>
<p>Get an email alert when a new job matches your criteria:</p>
<form id="subscribe-jobalerts" class="form-group form-inline" action="/api/1/subscribe_to_job_alerts" method="post">
{{ subscription_form.hidden_tag() }}
{{ renderfield(subscription_form.email_frequency, style='horizlist', nolabel=true, css_class="no-left-padding") }}
{{ renderfield(subscription_form.email_frequency, style='horizlist', nolabel=true, css_class='no-left-padding') }}
{%- if g.user and g.user.email %}
<input class="jshidden" name="email" type="text" value="{{ g.user.email }}"/>
{%- else %}
{{ renderfield(subscription_form.email, autofocus=true, css_class="clearfix") }}
{{ renderfield(subscription_form.email, autofocus=true, css_class='clearfix') }}
{%- endif %}
{{ rendersubmit([(None, "Subscribe", 'btn-primary')]) }}
{{ rendersubmit([(None, "Subscribe", 'btn-primary')], style='') }}
<button name="close" class="close" id="close-subscribe-form" aria-label="Close"><i class="fa fa-times" aria-hidden="true"></i></button>
</form>
</div>