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.
Description
This PR enables the customization of sock links in studio. Currently the sock links are hard coded in sock_links.html and two of them are redirecting to a 404 error page. This PR makes them configurable by adding the sock links in the settings and then using them in the
sock_links.html
Useful information to include:
Before
After
1) When
SHOW_SOCK_LINKS_BTN = False
2) Customized links
changes.
Supporting information
Issue: openedx/platform-roadmap#325
Testing instructions
SHOW_SOCK_LINKS_BTN = False
. Now go to studio home and you will not see theLooking for help with studio?
dropdown.SOCK_LINKS = [ { 'href': 'http://docs.edx.org', 'sr_mouseover_text': 'Access documentation on http://docs.edx.org', 'text': 'edX Documentation', 'condition': True }, { 'href': 'https://open.edx.org', 'sr_mouseover_text': 'Access the Open edX Portal', 'text': 'Open edX Portal', 'condition': True }, { 'href': 'https://www.edx.org/course/overview-creating-edx-course-edx-edx101#.VO4eaLPF-n1', 'sr_mouseover_text': 'Enroll in edX101: Overview of Creating an edX Course', 'text': 'Enroll in edX101', 'condition': True }, { 'href': 'https://www.edx.org/course/creating-course-edx-studio-edx-studiox', 'sr_mouseover_text': 'Enroll in StudioX: Creating a Course with edX Studio', 'text': 'Enroll in StudioX', 'condition': True } ]
You will see the customized links on your studio home like this
Deadline
None