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 @@ ...@@ -401,10 +401,10 @@
&.required { &.required {
label { label {
font-weight: 600; font-weight: 700;
a { a {
font-weight: 600 !important; font-weight: 700 !important;
} }
} }
......
...@@ -354,6 +354,19 @@ ...@@ -354,6 +354,19 @@
} }
} }
} }
section.unauth-tos p {
font-weight: bold;
a {
font-weight: bold;
text-decoration: underline;
&:hover {
text-decoration: none;
}
}
}
} }
.course-sidebar { .course-sidebar {
......
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
</a> </a>
% if sneakpeek_allowed and not regularly_registered: % if sneakpeek_allowed and not regularly_registered:
<a href="#" class="course_sneakpeek"</a> <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> </a>
% endif % endif
<div id="register_error"></div> <div id="register_error"></div>
...@@ -233,6 +233,15 @@ ...@@ -233,6 +233,15 @@
<div class="inner-wrapper"> <div class="inner-wrapper">
${get_course_about_section(course, "overview")} ${get_course_about_section(course, "overview")}
</div> </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> </section>
% if not self.carnegie_theme_enabled(): % if not self.carnegie_theme_enabled():
...@@ -311,10 +320,8 @@ ...@@ -311,10 +320,8 @@
</section> </section>
</section> </section>
%endif %endif
</section> </section>
% endif % endif
</section> </section>
</section> </section>
......
...@@ -194,8 +194,10 @@ ${fragment.foot_html()} ...@@ -194,8 +194,10 @@ ${fragment.foot_html()}
</div> </div>
% if course and user.is_authenticated() and not UserProfile.has_registered(user): % if course and user.is_authenticated() and not UserProfile.has_registered(user):
<section class="unauth-tos"> <section class="unauth-tos">
${_("By exploring and using these course materials, you are implicitly agreeing to our")} ${_("By exploring the course, you are agreeing to our")}
<a href="${marketing_link('TOS')}">${_("Terms of Service and Honor Code")}</a> . <a href="${marketing_link('TOS')}">${_("Terms of Service")}</a> and
<a href="${marketing_link('TOS')}#privacy">${_("Privacy Policy")}</a> .
${_("Please read them carefully.")}
</section> </section>
% endif % endif
</section> </section>
......
...@@ -264,9 +264,11 @@ ...@@ -264,9 +264,11 @@
<div class="field required checkbox" id="field-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" /> <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( <label for="tos-yes">${_('I agree to the {link_start1}Terms of Service{link_end} and {link_start2}Privacy Policy{link_end}').format(
link_start='<a href="{url}" class="new-vp">'.format(url=marketing_link('TOS')), link_start1='<a href="{url}" class="new-vp">'.format(url=marketing_link('TOS')),
link_end='</a>')}</label> link_end='</a>',
link_start2='<a href="{url}#privacy" class="new-vp">'.format(url=marketing_link('TOS')),
)}</label>
</div> </div>
% endif % 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