-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New feature for lti module. Open in new window. #1185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
a03c5be
New feature for lti module.
auraz 67463da
Updated Jasmine tests as per Anton's and Alex's suggestions.
a950bb7
Oops. Forgot to delete one more template.
1fe33a0
Updating LTI template.
f9b64ca
Add display_name to lti template
auraz 134eab8
Adding fix for failing Python unit test.
3c6591e
Addressing comments by auraz and singingwolfboy.
e2fb2ae
Fixing template bug.
068d0ce
Added back check in JS for empty or default URL.
2877345
styling for LTI in a new window block
06a85e6
Minor styling tweaks. Added Changelog entry.
e76e862
Fix attribute target.
polesye File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../../../common/static/sass/_mixins-inherited.scss |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,36 +1,31 @@ | ||
| <div id="lti_id" class="lti"> | ||
| <div class="lti-wrapper"> | ||
| <div id="lti_id" class="lti" data-open_in_a_new_page="true"> | ||
|
|
||
| <form | ||
| action="http://www.example.com" | ||
| name="ltiLaunchForm" | ||
| class="ltiLaunchForm" | ||
| method="post" | ||
| target="ltiLaunchFrame" | ||
| enctype="application/x-www-form-urlencoded" | ||
| > | ||
| <input name="launch_presentation_return_url" value="" /> | ||
| <input name="lti_version" value="LTI-1p0" /> | ||
| <input name="user_id" value="student" /> | ||
| <input name="oauth_nonce" value="28347958723982798572" /> | ||
| <input name="oauth_timestamp" value="2389479832" /> | ||
| <input name="oauth_consumer_key" value="" /> | ||
| <input name="lis_result_sourcedid" value="" /> | ||
| <input name="oauth_signature_method" value="HMAC-SHA1" /> | ||
| <input name="oauth_version" value="1.0" /> | ||
| <input name="role" value="student" /> | ||
| <input name="lis_outcome_service_url" value="" /> | ||
| <input name="oauth_signature" value="89ru3289r3ry283y3r82ryr38yr" /> | ||
| <input name="lti_message_type" value="basic-lti-launch-request" /> | ||
| <input name="oauth_callback" value="about:blank" /> | ||
| <form | ||
| action="" | ||
| name="ltiLaunchForm" | ||
| class="ltiLaunchForm" | ||
| method="post" | ||
| target="_blank" | ||
| enctype="application/x-www-form-urlencoded" | ||
| > | ||
| <input name="launch_presentation_return_url" value="" /> | ||
| <input name="lti_version" value="LTI-1p0" /> | ||
| <input name="user_id" value="student" /> | ||
| <input name="oauth_nonce" value="28347958723982798572" /> | ||
| <input name="oauth_timestamp" value="2389479832" /> | ||
| <input name="oauth_consumer_key" value="" /> | ||
| <input name="lis_result_sourcedid" value="" /> | ||
| <input name="oauth_signature_method" value="HMAC-SHA1" /> | ||
| <input name="oauth_version" value="1.0" /> | ||
| <input name="role" value="student" /> | ||
| <input name="lis_outcome_service_url" value="" /> | ||
| <input name="oauth_signature" value="89ru3289r3ry283y3r82ryr38yr" /> | ||
| <input name="lti_message_type" value="basic-lti-launch-request" /> | ||
| <input name="oauth_callback" value="about:blank" /> | ||
|
|
||
| <input type="submit" value="Press to Launch" /> | ||
| </form> | ||
|
|
||
| <h3 class="error_message"> | ||
| Please provide launch_url. Click "Edit", and fill in the | ||
| required fields. | ||
| </h3> | ||
|
|
||
| <iframe name="ltiLaunchFrame" class="ltiLaunchFrame" src=""></iframe> | ||
| <input type="submit" value="Press to Launch" /> | ||
| </form> | ||
|
|
||
| </div> | ||
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@valera-rozuvan this is already checked in template. No need to check it twice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case we need this test in order to know if we have to generate an
<a />or an<iframe />element.