This commit is contained in:
Kabir Khan 2017-11-01 11:39:25 -07:00
Родитель b76bb3588a f3b44dea57
Коммит 83e7fb695c
8 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -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.
} }