Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
35ebdfdc
Commit
35ebdfdc
authored
Oct 28, 2013
by
Diana Huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better handling of the expiration date.
LMS-1127
parent
17f3970f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
7 deletions
+1
-7
common/djangoapps/student/tests/tests.py
+1
-1
lms/templates/dashboard/dashboard_course_listing.html
+0
-6
No files found.
common/djangoapps/student/tests/tests.py
View file @
35ebdfdc
...
...
@@ -243,7 +243,7 @@ class DashboardTest(TestCase):
course_id
=
self
.
course
.
id
,
mode_slug
=
'verified'
,
mode_display_name
=
'Verified'
,
expiration_date
=
datetime
.
now
(
pytz
.
UTC
)
+
timedelta
(
days
=
1
)
expiration_date
=
(
datetime
.
now
(
pytz
.
UTC
)
+
timedelta
(
days
=
1
))
.
date
(
)
)
enrollment
=
CourseEnrollment
.
enroll
(
self
.
user
,
self
.
course
.
id
)
course_mode_info
=
complete_course_mode_info
(
self
.
course
.
id
,
enrollment
)
...
...
lms/templates/dashboard/dashboard_course_listing.html
View file @
35ebdfdc
...
...
@@ -120,12 +120,6 @@
<a
class=
"action action-upgrade"
href=
"${reverse('course_modes_choose', kwargs={'course_id': course.id})}?upgrade=True"
>
<span
class=
"wrapper-copy"
>
<span
class=
"copy"
>
${_("Upgrade to Verified Track")}
</span>
%if course_mode_info['days_for_upsell']:
<span
class=
"copy-sub"
>
${_('{days} days left!').format(days=course_mode_info['days_for_upsell'])}
</span>
%endif
</span>
</a>
</li>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment