Skip to content

Commit e11647c

Browse files
Add post for social media channel coordinator
1 parent d84a0b7 commit e11647c

File tree

4 files changed

+44
-0
lines changed

4 files changed

+44
-0
lines changed

oshc/main/admin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ def approve_contest(self, request, queryset):
2929

3030
approve_contest.short_description = "Approve"
3131

32+
class jobsAdmin(admin.ModelAdmin):
33+
list_jobs = ('title', 'description')
3234

3335
admin.site.register(chatSession, chatSessionAdmin)
3436
admin.site.register(Journey, journeyAdmin)
3537
admin.site.register(Contest, contestAdmin)
38+
admin.site.register(Jobs, jobsAdmin)

oshc/main/templates/jobs.html

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{% extends 'base.html' %}
2+
{% load static %}
3+
{% block content %}
4+
<section class="timeline">
5+
<body>
6+
<ul>
7+
{% if Jobs %}
8+
{% for j in Jobs %}
9+
<li>
10+
<div> {{j.start_date}}<br>{{j.title}} </div>
11+
</li>
12+
<!-- more list items here -->
13+
{% endfor %}
14+
{% else %}
15+
<li>
16+
<div> Social Media Account Coordinators </div>
17+
<p> OSHC is looking for people who can handle the social media channels. Send
18+
an email or drop a ping in #oshc-social-media Slack channel if interested,
19+
please resort last on DMs. Few guidelines:
20+
- Few to no retweets
21+
- Organise chats
22+
- Post essential updates
23+
- You are free (aligning your posts about OSHC)
24+
25+
All applicants will be allowed to organise the channels for few days, based
26+
on your work you can continue to work as social media account coordinator.
27+
28+
You'll be paid for the time you work on the channels, if you prefer goodies
29+
or books please DM in Slack channel.
30+
</p>
31+
</li>
32+
{% endif %}
33+
</ul>
34+
</body>
35+
</section>
36+
{% endblock %}

oshc/main/urls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@
99
url(r'^add_contest/', views.add_contest, name="add_contest"),
1010
url(r'^submit_contest/', views.submit_contest, name="submit_contest"),
1111
url(r'^journey/', views.journey, name="journey"),
12+
url(r'^jobs/', views.jobs, name="jobs"),
1213
]

oshc/main/views.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,7 @@ def submit_contest(request):
4545
def journey(request):
4646
journey_list = Journey.objects.order_by('start_date')
4747
return render(request, 'journey.html', context={'Journey': journey_list})
48+
49+
50+
def jobs(request):
51+
return render(request, 'jobs.html')

0 commit comments

Comments
 (0)