Merge branch 'oxa/release.fic' of https://github.com/Microsoft/edx-theme into oxa/d2r
This commit is contained in:
Коммит
83e7fb695c
|
@ -12,7 +12,7 @@ from openedx.core.djangoapps.site_configuration import helpers as configuration_
|
||||||
<%
|
<%
|
||||||
my_course_org_filter = configuration_helpers.get_value('course_org_filter')
|
my_course_org_filter = configuration_helpers.get_value('course_org_filter')
|
||||||
%>
|
%>
|
||||||
% if course.display_org_with_default in my_course_org_filter:
|
% if my_course_org_filter == course.display_org_with_default:
|
||||||
<%block name="headextra">
|
<%block name="headextra">
|
||||||
## OG (Open Graph) title and description added below to give social media info to display
|
## OG (Open Graph) title and description added below to give social media info to display
|
||||||
## (https://developers.facebook.com/docs/opengraph/howtos/maximizing-distribution-media-content#tags)
|
## (https://developers.facebook.com/docs/opengraph/howtos/maximizing-distribution-media-content#tags)
|
||||||
|
|
|
@ -14,7 +14,7 @@ from openedx.core.djangoapps.site_configuration import helpers as configuration_
|
||||||
<%
|
<%
|
||||||
my_course_org_filter = configuration_helpers.get_value('course_org_filter')
|
my_course_org_filter = configuration_helpers.get_value('course_org_filter')
|
||||||
%>
|
%>
|
||||||
% if course.display_org_with_default in my_course_org_filter:
|
% if my_course_org_filter == course.display_org_with_default:
|
||||||
<%
|
<%
|
||||||
include_special_exams = settings.FEATURES.get('ENABLE_SPECIAL_EXAMS', False) and (course.enable_proctored_exams or course.enable_timed_exams)
|
include_special_exams = settings.FEATURES.get('ENABLE_SPECIAL_EXAMS', False) and (course.enable_proctored_exams or course.enable_timed_exams)
|
||||||
%>
|
%>
|
||||||
|
|
|
@ -16,7 +16,7 @@ from openedx.core.djangoapps.site_configuration import helpers as configuration_
|
||||||
<%
|
<%
|
||||||
my_course_org_filter = configuration_helpers.get_value('course_org_filter')
|
my_course_org_filter = configuration_helpers.get_value('course_org_filter')
|
||||||
%>
|
%>
|
||||||
% if course.display_org_with_default in my_course_org_filter:
|
% if my_course_org_filter == course.display_org_with_default:
|
||||||
<%block name="pagetitle">${_("{course_number} Course Info").format(course_number=course.display_number_with_default)}</%block>
|
<%block name="pagetitle">${_("{course_number} Course Info").format(course_number=course.display_number_with_default)}</%block>
|
||||||
|
|
||||||
<%block name="headextra">
|
<%block name="headextra">
|
||||||
|
|
|
@ -12,7 +12,7 @@ from openedx.core.djangoapps.site_configuration import helpers as configuration_
|
||||||
<%
|
<%
|
||||||
my_course_org_filter = configuration_helpers.get_value('course_org_filter')
|
my_course_org_filter = configuration_helpers.get_value('course_org_filter')
|
||||||
%>
|
%>
|
||||||
% if course.display_org_with_default in my_course_org_filter and user.is_authenticated():
|
% if my_course_org_filter == course.display_org_with_default and user.is_authenticated():
|
||||||
<%block name="headextra">
|
<%block name="headextra">
|
||||||
## OG (Open Graph) title and description added below to give social media info to display
|
## OG (Open Graph) title and description added below to give social media info to display
|
||||||
## (https://developers.facebook.com/docs/opengraph/howtos/maximizing-distribution-media-content#tags)
|
## (https://developers.facebook.com/docs/opengraph/howtos/maximizing-distribution-media-content#tags)
|
||||||
|
|
|
@ -14,7 +14,7 @@ from openedx.core.djangoapps.site_configuration import helpers as configuration_
|
||||||
<%
|
<%
|
||||||
my_course_org_filter = configuration_helpers.get_value('course_org_filter')
|
my_course_org_filter = configuration_helpers.get_value('course_org_filter')
|
||||||
%>
|
%>
|
||||||
% if course.display_org_with_default in my_course_org_filter and user.is_authenticated():
|
% if my_course_org_filter == course.display_org_with_default:
|
||||||
<%
|
<%
|
||||||
include_special_exams = settings.FEATURES.get('ENABLE_SPECIAL_EXAMS', False) and (course.enable_proctored_exams or course.enable_timed_exams)
|
include_special_exams = settings.FEATURES.get('ENABLE_SPECIAL_EXAMS', False) and (course.enable_proctored_exams or course.enable_timed_exams)
|
||||||
%>
|
%>
|
||||||
|
|
|
@ -16,7 +16,7 @@ from openedx.core.djangoapps.site_configuration import helpers as configuration_
|
||||||
<%
|
<%
|
||||||
my_course_org_filter = configuration_helpers.get_value('course_org_filter')
|
my_course_org_filter = configuration_helpers.get_value('course_org_filter')
|
||||||
%>
|
%>
|
||||||
% if course.display_org_with_default in my_course_org_filter and user.is_authenticated():
|
% if my_course_org_filter == course.display_org_with_default and user.is_authenticated():
|
||||||
<%block name="pagetitle">${_("{course_number} Course Info").format(course_number=course.display_number_with_default)}</%block>
|
<%block name="pagetitle">${_("{course_number} Course Info").format(course_number=course.display_number_with_default)}</%block>
|
||||||
|
|
||||||
<%block name="headextra">
|
<%block name="headextra">
|
||||||
|
|
|
@ -64,7 +64,7 @@ from third_party_auth import provider, pipeline
|
||||||
|
|
||||||
$('#login-form').on('ajax:success', function(event, json, xhr) {
|
$('#login-form').on('ajax:success', function(event, json, xhr) {
|
||||||
if(json.success) {
|
if(json.success) {
|
||||||
var nextUrl = "${login_redirect_url}";
|
var nextUrl = "${login_redirect_url | u}";
|
||||||
if (json.redirect_url) {
|
if (json.redirect_url) {
|
||||||
nextUrl = json.redirect_url; // Most likely third party auth completion. This trumps 'nextUrl' above.
|
nextUrl = json.redirect_url; // Most likely third party auth completion. This trumps 'nextUrl' above.
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,7 @@ import calendar
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#register-form').on('ajax:success', function(event, json, xhr) {
|
$('#register-form').on('ajax:success', function(event, json, xhr) {
|
||||||
var nextUrl = "${login_redirect_url}";
|
var nextUrl = "${login_redirect_url | u}";
|
||||||
if (json.redirect_url) {
|
if (json.redirect_url) {
|
||||||
nextUrl = json.redirect_url; // Most likely third party auth completion. This trumps 'nextUrl' above.
|
nextUrl = json.redirect_url; // Most likely third party auth completion. This trumps 'nextUrl' above.
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче