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
1fe33a0f
Commit
1fe33a0f
authored
Oct 03, 2013
by
Valera Rozuvan
Committed by
polesye
Oct 14, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating LTI template.
parent
a950bb73
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
6 deletions
+18
-6
jscover.log
+0
-0
jscover.log.1
+0
-0
jscover.log.2
+0
-0
jscover.log.3
+0
-0
lms/templates/lti.html
+18
-6
No files found.
jscover.log
0 → 100644
View file @
1fe33a0f
jscover.log.1
0 → 100644
View file @
1fe33a0f
jscover.log.2
0 → 100644
View file @
1fe33a0f
jscover.log.3
0 → 100644
View file @
1fe33a0f
lms/templates/lti.html
View file @
1fe33a0f
<
%!
import
json
%
>
<
%!
import
json
%
>
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<div
id=
"${element_id}"
class=
"${element_class}"
data-open_in_a_new_page=
"${json.dumps(open_in_a_new_page)}"
>
<div
id=
"${element_id}"
class=
"${element_class}"
data-open_in_a_new_page=
"${json.dumps(open_in_a_new_page)}"
>
## This form will be hidden.
## This form will be hidden.
## If open_in_a_new_page is false then, once available on the client, the
LTI
## If open_in_a_new_page is false then, once available on the client, the
##
module JavaScript will trigget
a "submit" on the form, and the
##
LTI module JavaScript will trigger
a "submit" on the form, and the
## result will be rendered to the below iFrame.
## result will be rendered to the below iFrame.
## If open_in_a_new_page is true, then link will be shown, and by clicking
on it,
## If open_in_a_new_page is true, then link will be shown, and by clicking
## LTI will pop up in new window.
##
on it,
LTI will pop up in new window.
<form
<form
action=
"${launch_url}"
action=
"${launch_url}"
name=
"ltiLaunchForm-${element_id}"
name=
"ltiLaunchForm-${element_id}"
...
@@ -28,7 +32,15 @@
...
@@ -28,7 +32,15 @@
% if launch_url and launch_url != 'http://www.example.com':
% if launch_url and launch_url != 'http://www.example.com':
% if open_in_a_new_page:
% if open_in_a_new_page:
<a
href=
"#"
class=
'link_lti_new_window'
>
${_(u'Click to view LTI in new window')}
</a>
<p>
<span
class=
"description"
>
[LTI Display Name] (External resource)
</span>
<a
href=
"#"
class=
'link_lti_new_window'
>
<i
class=
"icon-external-link"
></i>
${_('View resource in a new window')}
</a>
</p>
% else:
% else:
## The result of the form submit will be rendered here.
## The result of the form submit will be rendered here.
<iframe
<iframe
...
...
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