44 lines
1.7 KiB
HTML
44 lines
1.7 KiB
HTML
<%page expression_filter="h" />
|
|
<%!
|
|
from django.conf import settings
|
|
from django.utils.translation import ugettext as _
|
|
%>
|
|
<%namespace file="sock_links_extra.html" import="get_sock_links_extra" />
|
|
|
|
<%def name="get_sock_links()">
|
|
<%
|
|
partner_email = settings.PARTNER_SUPPORT_EMAIL
|
|
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
|
|
}, {
|
|
'href': 'mailto:{email}'.format(email=partner_email),
|
|
'sr_mouseover_text': _('Send an email to {email}').format(email=partner_email),
|
|
'text': _('Contact Us'),
|
|
'condition': bool(partner_email)
|
|
}
|
|
]
|
|
links_extra = get_sock_links_extra()
|
|
links += links_extra
|
|
return links
|
|
%>
|
|
</%def>
|