Skip to content

Commit b7cf280

Browse files
authored
Merge pull request #18 from Xpirix/incomplete_courses_coming_soon
Increase courses coming soon limit to six months
2 parents ab3ae22 + 1b1b031 commit b7cf280

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

django_project/certification/templates/certifying_organisation/includes/coming-soon.html

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,27 @@ <h2>Courses coming soon</h2>
33
<p>
44
Below, you will find a comprehensive list
55
of upcoming courses scheduled to take place
6-
over the next three months. These courses
6+
over the next six months. These courses
77
are designed to provide valuable learning
88
opportunities and enhance your skills in
99
various areas of expertise.
1010
Stay tuned and plan ahead to make the most of these offerings.
1111
</p>
1212

13+
<div class="container rich tips">
14+
<div class="icon">💁</div>
15+
<div class="cont coloring-2">
16+
<h5>
17+
Want to showcase your courses here?
18+
</h5>
19+
<p>
20+
Are you a certifying organisation looking to feature your upcoming courses?
21+
Simply log in to your <strong>organisation dashboard</strong> and <strong>create a course. </strong>
22+
Please note that only courses <strong>within the next six months</strong> will be displayed here.
23+
</p>
24+
</div>
25+
</div>
26+
1327
<div class="columns is-multiline is-centered">
1428
{% for course in upcoming_courses %}
1529
<div class="column is-flex is-half-tablet">

django_project/certification/views/homepage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ class UpcomingCourseListView(ListView):
1010
context_object_name = 'upcoming_courses'
1111

1212
def get_queryset(self):
13-
"""Return courses with start_date in the future and within the next 3 months."""
14-
three_months_from_now = now() + timedelta(days=90)
13+
"""Return courses with start_date in the future and within the next 6 months."""
14+
three_months_from_now = now() + timedelta(days=180)
1515
return Course.objects.filter(
1616
start_date__gte=now(),
1717
start_date__lte=three_months_from_now

0 commit comments

Comments
 (0)