Commit b84f71f9 by Giulio Gratta Committed by Sef Kloninger

Changes to Unauthenticated Access of courses

- Changed wording of footer in courseware
- Added footer to about page referenced to "Explore Course" button to make the course content "Click-Wrapped"
parent e9e6a776
......@@ -401,10 +401,10 @@
&.required {
label {
font-weight: 600;
font-weight: 700;
a {
font-weight: 600 !important;
font-weight: 700 !important;
}
}
......
......@@ -354,6 +354,19 @@
}
}
}
section.unauth-tos p {
font-weight: bold;
a {
font-weight: bold;
text-decoration: underline;
&:hover {
text-decoration: none;
}
}
}
}
.course-sidebar {
......
......@@ -189,7 +189,7 @@
</a>
% if sneakpeek_allowed and not regularly_registered:
<a href="#" class="course_sneakpeek"</a>
<span class="sneakpeek">${_("Explore Course")}</span>
<span class="sneakpeek" title="${_("By exploring the course, you are agreeing to our Terms of Service. Please read them carefully.")}">${_("Explore Course")} *</span>
</a>
% endif
<div id="register_error"></div>
......@@ -233,6 +233,15 @@
<div class="inner-wrapper">
${get_course_about_section(course, "overview")}
</div>
% if sneakpeek_allowed and not regularly_registered:
<section class="unauth-tos" id="unauth-tos">
<p>
* ${_("By exploring the course, you are agreeing to our")}
<a href="${marketing_link('TOS')}">${_("Terms of Service")}</a> and <a href="${marketing_link('TOS')}#privacy">${_("Privacy Policy")}</a>.
${_("Please read them carefully.")}
</p>
</section>
% endif
</section>
% if not self.carnegie_theme_enabled():
......@@ -311,10 +320,8 @@
</section>
</section>
%endif
</section>
% endif
</section>
</section>
......
......@@ -194,8 +194,10 @@ ${fragment.foot_html()}
</div>
% if course and user.is_authenticated() and not UserProfile.has_registered(user):
<section class="unauth-tos">
${_("By exploring and using these course materials, you are implicitly agreeing to our")}
<a href="${marketing_link('TOS')}">${_("Terms of Service and Honor Code")}</a> .
${_("By exploring the course, you are agreeing to our")}
<a href="${marketing_link('TOS')}">${_("Terms of Service")}</a> and
<a href="${marketing_link('TOS')}#privacy">${_("Privacy Policy")}</a> .
${_("Please read them carefully.")}
</section>
% endif
</section>
......
......@@ -264,9 +264,11 @@
<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_start}Terms of Service{link_end}').format(
link_start='<a href="{url}" class="new-vp">'.format(url=marketing_link('TOS')),
link_end='</a>')}</label>
<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">'.format(url=marketing_link('TOS')),
link_end='</a>',
link_start2='<a href="{url}#privacy" class="new-vp">'.format(url=marketing_link('TOS')),
)}</label>
</div>
% endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment