Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lms/templates/courseware/course_about_sidebar_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
tweet_text = _("I just enrolled in {number} {title} through {account}: {url}").format(
number=course.number,
title=course.display_name_with_default_escaped,
account='https://lagunita.stanford.edu',
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()])
Expand All @@ -47,6 +47,9 @@
<a href="${tweet_action}" class="share">
<span class="icon fa fa-twitter" aria-hidden="true"></span><span class="sr">${_("Tweet that you've enrolled in this course")}</span>
</a>
<a href="${facebook_link}" class="share">
<span class="icon fa fa-thumbs-up" aria-hidden="true"></span><span class="sr">${_("Post a Facebook message to say you've enrolled in this course")}</span>
</a>
<a href="${email_subject}" class="share">
<span class="icon fa fa-envelope" aria-hidden="true"></span><span class="sr">${_("Email someone to say you've enrolled in this course")}</span>
</a>
Expand Down
26 changes: 7 additions & 19 deletions lms/templates/register-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@
from django.utils.translation import ugettext as _
from django_countries import countries
from student.models import UserProfile
from microsite_configuration import microsite
%>
<%def name="theme_enabled()"><% return settings.FEATURES.get("USE_CUSTOM_THEME", False) %></%def>
<%def name="is_microsite()"><% return microsite.is_request_in_microsite() %></%def>
<%def name="stanford_theme_enabled()"><% return theme_enabled() and not is_microsite() %></%def>
<%namespace name='static' file='static_content.html'/>

<input type="hidden" name="csrfmiddlewaretoken" value="${ csrf_token }">

Expand Down Expand Up @@ -234,7 +229,7 @@ <h2 class="sr">${_("Additional Personal Information")}</h2>
% endif
</ol>
</div>
<%static:optional_include_mako file="register_extra.html" is_theming_enabled="True" />

<div class="group group-form group-form-accountacknowledgements">
<h2 class="sr">${_("Account Acknowledgements")}</h2>

Expand All @@ -244,26 +239,19 @@ <h2 class="sr">${_("Account Acknowledgements")}</h2>
% if has_extauth_info is UNDEFINED or ask_for_tos :
<div class="field required checkbox" id="field-tos">
<input id="tos-yes" type="checkbox" name="terms_of_service" value="true" required aria-required="true" />
<label for="tos-yes">${_('I agree to the {link_start1}Terms of Service{link_end} and {link_start2}Privacy Policy{link_end}').format(
link_start1='<a href="{url}" class="new-vp" tabindex="-1">'.format(url=marketing_link('TOS')),
link_end='</a>',
link_start2='<a href="{url}" class="new-vp" tabindex="-1">'.format(url=marketing_link('PRIVACY')),
)}</label>
<label for="tos-yes">${_('I agree to the {link_start}Terms of Service{link_end}').format(
link_start='<a href="{url}" class="new-vp" tabindex="-1">'.format(url=marketing_link('TOS')),
link_end='</a>')}</label>
</div>
% endif

% if settings.REGISTRATION_EXTRA_FIELDS['honor_code'] != 'hidden':
## If the stanford theme isn't enabled, check if we have an Honor Code link in our marketing map
% if stanford_theme_enabled() or marketing_link('HONOR') and marketing_link('HONOR') != '#':
## check if we have an Honor Code link in our marketing map
% if marketing_link('HONOR') and marketing_link('HONOR') != '#':
<div class="field ${settings.REGISTRATION_EXTRA_FIELDS['honor_code']} checkbox" id="field-honorcode">
<input id="honorcode-yes" type="checkbox" name="honor_code" value="true" />
<%
## TODO: provide a better way to override these links
self.register_honor_link = marketing_link('HONOR')
if self.register_honor_link:
honor_code_path = self.register_honor_link
else:
honor_code_path = marketing_link('HONOR')
honor_code_path = marketing_link('HONOR')
%>
<label for="honorcode-yes">${_('I agree to the {link_start}Honor Code{link_end}').format(
link_start='<a href="{url}" class="new-vp" tabindex="-1">'.format(url=honor_code_path),
Expand Down
7 changes: 1 addition & 6 deletions lms/templates/register-shib.html
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,7 @@ <h3 class="message-title">${_("The following errors occurred while processing yo
<div class="field required checkbox" id="field-honorcode">
<input id="honorcode-yes" type="checkbox" name="honor_code" value="true" />
<%
## TODO: provide a better way to override these links
self.register_honor_link = marketing_link('TOS') + '#honor'
if self.register_honor_link:
honor_code_path = self.register_honor_link
else:
honor_code_path = marketing_link('HONOR')
honor_code_path = marketing_link('HONOR')
%>
<label for="honorcode-yes">${_('I agree to the {link_start}Honor Code{link_end}').format(
link_start='<a href="{url}" class="new-vp">'.format(url=honor_code_path),
Expand Down