Add the ability to override non-standard verified mode names

This commit is contained in:
Diana Huang
2014-08-04 15:28:51 -04:00
parent 604bfabb88
commit 3d942503c2
2 changed files with 7 additions and 1 deletions

View File

@@ -70,6 +70,7 @@ class ChooseModeView(View):
]
context["currency"] = modes["verified"].currency.upper()
context["min_price"] = modes["verified"].min_price
context["verified_name"] = modes["verified"].name
return render_to_response("course_modes/choose.html", context)

View File

@@ -66,7 +66,12 @@ $(document).ready(function() {
<div class="register-choice register-choice-certificate">
<div class="wrapper-copy">
<span class="deco-ribbon"></span>
<h4 class="title">${_("Certificate of Achievement (ID Verified)")}</h4>
%if verified_name == "Verified Certificate":
<h4 class="title">${_("Certificate of Achievement (ID Verified)")}</h4>
%else:
<h4 class="title">${verified_name}</h4>
%endif
%if upgrade:
<div class="copy">