Commit 1e5d7bd3 by Giulio Gratta

adding unauthenticated use footer

parent 3a4a1e94
...@@ -272,3 +272,20 @@ section.foldit { ...@@ -272,3 +272,20 @@ section.foldit {
} }
} }
section.unauth-tos {
position: relative;
margin: 30px auto 0 auto;
background-color: $black;
color: $white;
border-radius: 5px;
padding: 15px;
font-weight: bold;
text-align: center;
}
section.unauth-tos a {
padding: 5px;
background-color: $white;
border-radius: 5px;
font-weight: bold;
}
<%! from django.utils.translation import ugettext as _ %> <%!
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext as _
from student.models import UserProfile
%>
<%inherit file="/main.html" /> <%inherit file="/main.html" />
<%namespace name='static' file='/static_content.html'/> <%namespace name='static' file='/static_content.html'/>
<%block name="bodyclass">courseware ${course.css_class}</%block> <%block name="bodyclass">courseware ${course.css_class}</%block>
...@@ -188,6 +192,12 @@ ${fragment.foot_html()} ...@@ -188,6 +192,12 @@ ${fragment.foot_html()}
${fragment.body_html()} ${fragment.body_html()}
</section> </section>
</div> </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> .
</section>
% endif
</section> </section>
% if course.show_calculator: % if course.show_calculator:
......
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