-
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
Conversation
|
@polesye I tried going with the Underscore templates, but I was not successful. It will take a lot of time for me to implement such a solution. In the end I went with jQuery and modifying our element on the fly. Maybe this is not optimal, but it does reduce the number of fixtures to 1. ^_^ |
lms/templates/lti.html
Outdated
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.
I'm worried this wording is confusing to students and the plain link style is easy to miss in a vertical, so I think we need a bit more here. I would change it to:
<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>
where [LTI Display Name] is the text that the Studio user puts into the display name input.
In addition, it needs some styling to make it a bigger element in the vertical with a clear button, similar to discussions:
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 please add this styling
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.
This is checked in template, do not check it twice.
|
@valera-rozuvan Please add styling pointed by Frances |
lms/templates/lti.html
Outdated
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.
Shouldn't "External resource" be translated?
|
@singingwolfboy I have addressed your template translation comments. |
|
@auraz I have removed check for empty and default URL in JavaScript (lti module, not Jasmine test). |
|
@frrrances I am having trouble identifying the styles I need in order to make the link stand out more. My HTML code is: Can you please suggest? |
|
@auraz I have actually added back the check for URL. If it is empty or default - then we must make sure that JS part does not try to make a form submit. I know that the check is in the template. But that check only adds or removes iframe or link. |
|
@valera-rozuvan I made pushed some changes to the sass and adjusted the html a little for the LTI in an external window. Let me know if that helps or if you need me to make adjustments. thanks! |
|
@frrrances I like your changes. I have just tweaked them a bit to make the link and the text on the same level, and more in the center. @Lyla-Fischer @singingwolfboy @frrrances Am I good to merge? |
|
looks good to me! 👍 |
Add ability to display LTI module in a new window. Iframe will be still supported. Fix python test Update acceptance tests Fix in acceptance tests, they are stable now Fix Acceptance tests. Adding Jasmine tests for LTI. Fixing Jasmine tests. Adding the rest of Jasmine tests.
Removed JS check for empty url and default url. In template added i18n support for several strings.
Made it so that the link and the text are on the same level, and in the center of the block.
New feature for lti module. Open in new window.
…anslations-for-multilingual-support Fix translation for cert name in dashboard openedx#1185
…ail-templates-for-multilingual-support Fix email templates for multilingual support openedx#1185

Add ability to display LTI module in a new window. Iframe will be still supported. The flag which determines what functionality is used can be set from the Edit dialog in Studio per individual LTI.
Python tests, acceptance tests, and Jasmine tests were updated.
Reviewers:
@frrrances
@Lyla-Fischer
@singingwolfboy