From 14cd7d7763958357bf325f0641662b3f5dd418f6 Mon Sep 17 00:00:00 2001 From: louyihua Date: Tue, 19 Aug 2014 01:13:23 +0800 Subject: [PATCH] Translation & secure-aware changes to studio's settings page 1. Change the link of course's about page secure aware, which displays 'https' or 'http' prefix according to the current protocol. 2. Make the email in this page translatable. --- cms/templates/settings.html | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/cms/templates/settings.html b/cms/templates/settings.html index 0be08715ef..b0facad5de 100644 --- a/cms/templates/settings.html +++ b/cms/templates/settings.html @@ -7,6 +7,7 @@ <%! from django.utils.translation import ugettext as _ from contentstore import utils + import urllib %> <%block name="header_extras"> @@ -93,13 +94,26 @@ require(["domReady!", "jquery", "js/models/settings/course_details", "js/views/s

${_("Course Summary Page")} ${_("(for student enrollment and access)")}

-

https:${lms_link_for_about_page}

+ <% + link_for_about_page = ("https:" if is_secure else "http:") + lms_link_for_about_page + %> +

${link_for_about_page}