Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
f01b36b5
Commit
f01b36b5
authored
Nov 18, 2013
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test for i4x on returned pages.
STUD-941
parent
729f2e3b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
9 deletions
+16
-9
cms/djangoapps/contentstore/tests/test_contentstore.py
+0
-0
cms/static/js/models/course_info.js
+1
-4
cms/templates/asset_index.html
+1
-1
cms/templates/course_info.html
+0
-1
cms/templates/settings.html
+1
-1
cms/templates/widgets/segment-io.html
+13
-2
No files found.
cms/djangoapps/contentstore/tests/test_contentstore.py
View file @
f01b36b5
This diff is collapsed.
Click to expand it.
cms/static/js/models/course_info.js
View file @
f01b36b5
...
...
@@ -5,12 +5,9 @@ define(["backbone"], function(Backbone) {
url
:
''
,
defaults
:
{
"courseId"
:
""
,
// the location url
"updates"
:
null
,
// UpdateCollection
"handouts"
:
null
// HandoutCollection
},
idAttribute
:
"courseId"
}
});
return
CourseInfo
;
});
cms/templates/asset_index.html
View file @
f01b36b5
...
...
@@ -187,7 +187,7 @@ require(["domReady", "jquery", "gettext", "js/models/asset", "js/collections/ass
<a
href=
"#"
class=
"close-button"
><i
class=
"icon-remove-sign"
></i>
<span
class=
"sr"
>
${_('close')}
</span></a>
<div
class=
"modal-body"
>
<h1
class=
"title"
>
${_("Upload New File")}
</h1>
<p
class=
"file-name"
>
</a>
<p
class=
"file-name"
>
<div
class=
"progress-bar"
>
<div
class=
"progress-fill"
></div>
</div>
...
...
cms/templates/course_info.html
View file @
f01b36b5
...
...
@@ -33,7 +33,6 @@ require(["domReady!", "jquery", "js/collections/course_update", "js/models/modul
var
editor
=
new
CourseInfoEditView
({
el
:
$
(
'.main-wrapper'
),
model
:
new
CourseInfoModel
({
courseId
:
'${context_course.location}'
,
updates
:
course_updates
,
base_asset_url
:
'${base_asset_url}'
,
handouts
:
course_handouts
...
...
cms/templates/settings.html
View file @
f01b36b5
...
...
@@ -87,7 +87,7 @@ require(["domReady!", "jquery", "js/models/settings/course_details", "js/views/s
<div
class=
"note note-promotion note-promotion-courseURL has-actions"
>
<h3
class=
"title"
>
${_("Course Summary Page")}
<span
class=
"tip"
>
${_("(for student enrollment and access)")}
</span></h3>
<div
class=
"copy"
>
<p><a
class=
"link-courseURL"
rel=
"external"
href=
"https:${utils.get_lms_link_for_about_page(course_location)}"
/
>
https:${utils.get_lms_link_for_about_page(course_location)}
</a></p>
<p><a
class=
"link-courseURL"
rel=
"external"
href=
"https:${utils.get_lms_link_for_about_page(course_location)}"
>
https:${utils.get_lms_link_for_about_page(course_location)}
</a></p>
</div>
<ul
class=
"list-actions"
>
...
...
cms/templates/widgets/segment-io.html
View file @
f01b36b5
<
%!
from
xmodule
.
modulestore
.
django
import
loc_mapper
%
>
% if context_course:
<
%
ctx_loc =
context_course.location
locator =
loc_mapper().translate_location(ctx_loc.course_id,
ctx_loc
,
False
,
True
)
%
>
% endif
% if settings.MITX_FEATURES.get('SEGMENT_IO'):
<!-- begin Segment.io -->
<script
type=
"text/javascript"
>
// if inside course, inject the course location into the JS namespace
%
if
context_course
:
var
course_location_analytics
=
"${context_course.location
}"
;
var
course_location_analytics
=
"${locator
}"
;
%
endif
var
analytics
=
analytics
||
[];
analytics
.
load
=
function
(
e
){
var
t
=
document
.
createElement
(
"script"
);
t
.
type
=
"text/javascript"
,
t
.
async
=!
0
,
t
.
src
=
(
"https:"
===
document
.
location
.
protocol
?
"https://"
:
"http://"
)
+
"d2dq2ahtl5zl1z.cloudfront.net/analytics.js/v1/"
+
e
+
"/analytics.min.js"
;
var
n
=
document
.
getElementsByTagName
(
"script"
)[
0
];
n
.
parentNode
.
insertBefore
(
t
,
n
);
var
r
=
function
(
e
){
return
function
(){
analytics
.
push
([
e
].
concat
(
Array
.
prototype
.
slice
.
call
(
arguments
,
0
)))}},
i
=
[
"identify"
,
"track"
,
"trackLink"
,
"trackForm"
,
"trackClick"
,
"trackSubmit"
,
"pageview"
,
"ab"
,
"alias"
,
"ready"
];
for
(
var
s
=
0
;
s
<
i
.
length
;
s
++
)
analytics
[
i
[
s
]]
=
r
(
i
[
s
])};
...
...
@@ -22,7 +33,7 @@
<!-- dummy segment.io -->
<script
type=
"text/javascript"
>
%
if
context_course
:
var
course_location_analytics
=
"${
context_course.location
}"
;
var
course_location_analytics
=
"${
locator
}"
;
%
endif
var
analytics
=
{
"track"
:
function
()
{}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment