<%namespace name='static' file='../static_content.html'/> <%! from django.utils.translation import ugettext as _ from django.core.urlresolvers import reverse from django.conf import settings %>
% if static.get_value('course_about_show_social_links', True):
## TODO: this should probably be an overrideable block, ## or something allowing themes to do whatever they ## want here (and on this whole page, really). <% site_domain = static.get_value('site_domain', settings.SITE_NAME) platform_name = static.get_platform_name() ## Translators: This text will be automatically posted to the student's ## Twitter account. {url} should appear at the end of the text. tweet_text = _("I just enrolled in {number} {title} through {account}: {url}").format( number=course.number, title=course.display_name_with_default_escaped, account=static.get_value('course_about_twitter_account', settings.PLATFORM_TWITTER_ACCOUNT), url=u"http://{domain}{path}".format( domain=site_domain, path=reverse('about_course', args=[course.id.to_deprecated_string()]) ) ).replace(u" ", u"+") tweet_action = u"http://twitter.com/intent/tweet?text={tweet_text}".format(tweet_text=tweet_text) facebook_link = static.get_value('course_about_facebook_link', settings.PLATFORM_FACEBOOK_ACCOUNT) email_subject = u"mailto:?subject={subject}&body={body}".format( subject=_("Take a course with {platform} online").format(platform=platform_name), body=_("I just enrolled in {number} {title} through {platform} {url}").format( number=course.number, title=course.display_name_with_default_escaped, platform=platform_name, url=u"http://{domain}{path}".format( domain=site_domain, path=reverse('about_course', args=[course.id.to_deprecated_string()]), ) ) ).replace(u" ", u"%20") %>
% endif