diff --git a/lms/djangoapps/verify_student/models.py b/lms/djangoapps/verify_student/models.py index 5e735c04f9..fbc9cdc015 100644 --- a/lms/djangoapps/verify_student/models.py +++ b/lms/djangoapps/verify_student/models.py @@ -44,6 +44,7 @@ from xmodule.modulestore.django import modulestore from xmodule.modulestore.exceptions import ItemNotFoundError from xmodule_django.models import CourseKeyField +from microsite_configuration.templatetags.microsite import platform_name log = logging.getLogger(__name__) @@ -319,7 +320,7 @@ class PhotoVerification(StatusModel): if attempt.created_at < cls._earliest_allowed_date(): return ( 'expired', - _("Your {platform_name} verification has expired.").format(platform_name=settings.PLATFORM_NAME) + _("Your {platform_name} verification has expired.").format(platform_name=platform_name()) ) # If someone is denied their original verification attempt, they can try to reverify. diff --git a/lms/templates/dashboard.html b/lms/templates/dashboard.html index a54bb972dd..b7738fd989 100644 --- a/lms/templates/dashboard.html +++ b/lms/templates/dashboard.html @@ -7,6 +7,7 @@ import third_party_auth from third_party_auth import pipeline from microsite_configuration import microsite from django.core.urlresolvers import reverse +from microsite_configuration import microsite import json %> @@ -175,7 +176,7 @@ import json % endif - <%include file='dashboard/_dashboard_status_verification.html' /> + <%include file="${microsite.get_template_path('dashboard/_dashboard_status_verification.html')}" /> diff --git a/lms/templates/dashboard/_dashboard_status_verification.html b/lms/templates/dashboard/_dashboard_status_verification.html index 160a2ef93e..029474f10c 100644 --- a/lms/templates/dashboard/_dashboard_status_verification.html +++ b/lms/templates/dashboard/_dashboard_status_verification.html @@ -2,6 +2,7 @@ <%! from django.utils.translation import ugettext as _ from django.core.urlresolvers import reverse +from microsite_configuration.templatetags.microsite import platform_name %> %if verification_status == 'approved': @@ -39,7 +40,7 @@ from django.core.urlresolvers import reverse %if verification_status in ['must_reverify', 'expired']: