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
ec67bf4b
Commit
ec67bf4b
authored
Sep 06, 2013
by
Diana Huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only show start date on receipt if it's in the future.
parent
60844125
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
lms/djangoapps/verify_student/views.py
+1
-1
lms/templates/shoppingcart/verified_cert_receipt.html
+7
-1
No files found.
lms/djangoapps/verify_student/views.py
View file @
ec67bf4b
...
...
@@ -52,7 +52,7 @@ class VerifyView(View):
if
course_id
in
request
.
session
.
get
(
"donation_for_course"
,
{}):
chosen_price
=
request
.
session
[
"donation_for_course"
][
course_id
]
else
:
chosen_price
=
verify_mode
.
min_price
.
format
(
"{:g}"
)
chosen_price
=
verify_mode
.
min_price
context
=
{
"progress_state"
:
progress_state
,
"user_full_name"
:
request
.
user
.
profile
.
name
,
...
...
lms/templates/shoppingcart/verified_cert_receipt.html
View file @
ec67bf4b
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%!
from
student
.
views
import
course_from_id
%
>
<
%!
from
datetime
import
datetime
%
>
<
%!
import
pytz
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
block
name=
"bodyclass"
>
register verification-process step-confirmation
</
%
block>
...
...
@@ -105,10 +107,14 @@
% for item in order_items:
<tr>
<td>
${item.line_desc}
</td>
<td>
${_("Starts: {start_date}").format(start_date=course.start_date_text)}
<td>
%if course.start > datetime.today().replace(tzinfo=pytz.utc):
${_("Starts: {start_date}").format(start_date=course.start_date_text)}
%else:
<ul
class=
"list-actions"
>
<li
class=
"action action-course"
><a
href=
"${reverse('course_root', kwargs={'course_id': item.course_id})}"
>
${_("Go to Course")}
</a></li>
</ul>
%endif
</td>
</tr>
% endfor
...
...
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