summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/models.py2
-rw-r--r--yaksh/templates/yaksh/quizzes_user.html4
2 files changed, 3 insertions, 3 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index 2e759ee..c8a4d4d 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -722,7 +722,7 @@ class Course(models.Model):
percent = round((count / len(modules)))
return percent
- def days_remain_to_start(self):
+ def days_before_start(self):
""" Get the days remaining for the start of the course """
if timezone.now() < self.start_enroll_time:
remaining_days = (self.start_enroll_time - timezone.now()).days + 1
diff --git a/yaksh/templates/yaksh/quizzes_user.html b/yaksh/templates/yaksh/quizzes_user.html
index 05af528..49f8d2d 100644
--- a/yaksh/templates/yaksh/quizzes_user.html
+++ b/yaksh/templates/yaksh/quizzes_user.html
@@ -63,9 +63,9 @@ No Courses to display
{% endif %}
</div>
<div class="col-md-4">
- {% if course.days_remain_to_start != 0 %}
+ {% if course.days_before_start != 0 %}
<span class="label label-info" style="font-size: 15px">
- {{course.days_remain_to_start}} day(s) to start
+ {{course.days_before_start}} day(s) to start
</span>
{% endif %}
</div>