".format(
+ obj.title, obj.company.name
+ ),
+ settings.SLACK_JOBS_CHANNEL,
)
diff --git a/jobs/forms.py b/jobs/forms.py
index 750b8b4..0db78e6 100644
--- a/jobs/forms.py
+++ b/jobs/forms.py
@@ -5,11 +5,17 @@
class CompanyForm(ModelForm):
class Meta:
model = Company
- exclude = ['user']
+ exclude = ["user"]
class JobForm(ModelForm):
class Meta:
model = Job
- exclude = ['user', 'company', 'is_approved', 'is_sponsored']
-
+ exclude = [
+ "tags",
+ "user",
+ "company",
+ "is_approved",
+ "is_sponsored",
+ "is_active",
+ ]
diff --git a/jobs/static/jobs/js/src/jobs.js b/jobs/static/jobs/js/src/jobs.js
index c0c664d..95971aa 100644
--- a/jobs/static/jobs/js/src/jobs.js
+++ b/jobs/static/jobs/js/src/jobs.js
@@ -2,10 +2,30 @@ var React = require('react/addons')
var superagent = require('superagent')
var marked = require('marked')
var cn = require('classnames')
+var moment = require('moment')
require('velocity-animate')
require('velocity-animate/velocity.ui')
+moment.locale('en', {
+ relativeTime: {
+ future: 'in %s',
+ past: '%s',
+ s: '1s',
+ ss: '%ss',
+ m: '1m',
+ mm: '%dm',
+ h: '1h',
+ hh: '%dh',
+ d: '1d',
+ dd: '%dd',
+ M: '1M',
+ MM: '%dM',
+ y: '1Y',
+ yy: '%dY'
+ }
+})
+
var Job = React.createClass({
toggleDetails: function (e) {
e.preventDefault()
@@ -39,6 +59,9 @@ var Job = React.createClass({
Posted by {this.props.user.name}
+
+ 📌 {moment(this.props.created_at).fromNow()}
+
)
}
@@ -68,7 +91,7 @@ var Content = React.createClass({
/>
diff --git a/jobs/templates/jobs/post.html b/jobs/templates/jobs/post.html
index d131159..86bd027 100644
--- a/jobs/templates/jobs/post.html
+++ b/jobs/templates/jobs/post.html
@@ -22,7 +22,7 @@ Job
{{ job_form.as_p }}
-
diff --git a/landing/models.py b/landing/models.py
index 9504e74..2d62b2e 100644
--- a/landing/models.py
+++ b/landing/models.py
@@ -1,14 +1,15 @@
from ckeditor.fields import RichTextField
-from django.db import models
from model_utils.models import SoftDeletableModel
+from django.db import models
+
class Section(SoftDeletableModel):
name = models.CharField(max_length=255)
content = RichTextField()
order = models.PositiveIntegerField(default=0)
- def __unicode(self):
+ def __unicode__(self):
return self.name
def __str__(self):
diff --git a/landing/static/landing/assets/css/mail.css b/landing/static/landing/assets/css/mail.css
new file mode 100644
index 0000000..f9265eb
--- /dev/null
+++ b/landing/static/landing/assets/css/mail.css
@@ -0,0 +1,20 @@
+#mc_embed_signup {
+ background: transparent;
+ color: white;
+ clear: left;
+ width: 50%;
+ margin: auto;
+}
+
+#mce-EMAIL {
+ color: black;
+}
+
+div.mce_inline_error {
+ margin-left: 20px;
+ background-color: transparent !important;
+}
+
+#mce-success-response, #mce-error-response {
+ color: white !important;
+}
diff --git a/landing/static/landing/assets/img/Python_for_Beginner_Programmers.png b/landing/static/landing/assets/img/Python_for_Beginner_Programmers.png
new file mode 100644
index 0000000..a8932ad
Binary files /dev/null and b/landing/static/landing/assets/img/Python_for_Beginner_Programmers.png differ
diff --git a/landing/static/landing/assets/img/icon/icon-logo.svg b/landing/static/landing/assets/img/icon/icon-logo.svg
index 09da3c5..9bd435c 100644
--- a/landing/static/landing/assets/img/icon/icon-logo.svg
+++ b/landing/static/landing/assets/img/icon/icon-logo.svg
@@ -1,6 +1 @@
-
+
\ No newline at end of file
diff --git a/landing/static/landing/assets/img/logo/codev.png b/landing/static/landing/assets/img/logo/codev.png
new file mode 100644
index 0000000..02a7651
Binary files /dev/null and b/landing/static/landing/assets/img/logo/codev.png differ
diff --git a/landing/static/landing/assets/img/people/ciara.jpg b/landing/static/landing/assets/img/people/ciara.jpg
new file mode 100644
index 0000000..3ac0678
Binary files /dev/null and b/landing/static/landing/assets/img/people/ciara.jpg differ
diff --git a/landing/static/landing/assets/img/python_hour/python_hour_1.png b/landing/static/landing/assets/img/python_hour/python_hour_1.png
new file mode 100644
index 0000000..0e8ce2a
Binary files /dev/null and b/landing/static/landing/assets/img/python_hour/python_hour_1.png differ
diff --git a/landing/static/landing/assets/img/python_hour/python_hour_2.png b/landing/static/landing/assets/img/python_hour/python_hour_2.png
new file mode 100644
index 0000000..57158c0
Binary files /dev/null and b/landing/static/landing/assets/img/python_hour/python_hour_2.png differ
diff --git a/landing/static/landing/assets/img/python_hour/python_hour_3.png b/landing/static/landing/assets/img/python_hour/python_hour_3.png
new file mode 100644
index 0000000..9de618a
Binary files /dev/null and b/landing/static/landing/assets/img/python_hour/python_hour_3.png differ
diff --git a/landing/templates/landing/index.html b/landing/templates/landing/index.html
index 324dc84..ae1fd8b 100644
--- a/landing/templates/landing/index.html
+++ b/landing/templates/landing/index.html
@@ -14,6 +14,8 @@
+
+
+ {% include "landing/python_hour.html" %}
+
+
+

+
+

{% include "landing/code_of_conduct.html" %}
+
+ {% include "landing/mailing_list.html" %}
+