Change third party auth login failure code to a 401, to detect authentication success with no linked account. If already authenticated, redirect immediately to the dashboard. Use "Location" header correctly for 302 redirects from student views. Add utility functions for simulating a running third-party auth pipeline. Add a utility function for checking whether third party auth is enabled. Respect default values sent by the server
32 lines
973 B
HTML
32 lines
973 B
HTML
<%! from django.utils.translation import ugettext as _ %>
|
|
<%! import third_party_auth %>
|
|
<%namespace name='static' file='/static_content.html'/>
|
|
|
|
<%inherit file="../main.html" />
|
|
|
|
<%block name="pagetitle">${_("Student Profile")}</%block>
|
|
|
|
<%block name="js_extra">
|
|
<script type="text/javascript" src="${static.url('js/vendor/underscore-min.js')}"></script>
|
|
<script type="text/javascript" src="${static.url('js/vendor/backbone-min.js')}"></script>
|
|
<%static:js group='student_profile'/>
|
|
</%block>
|
|
|
|
<%block name="header_extras">
|
|
% for template_name in ["profile", "languages"]:
|
|
<script type="text/template" id="${template_name}-tpl">
|
|
<%static:include path="student_profile/${template_name}.underscore" />
|
|
</script>
|
|
% endfor
|
|
</%block>
|
|
|
|
<h1>Student Profile</h1>
|
|
|
|
<p>This is a placeholder for the student's profile page.</p>
|
|
|
|
<div id="profile-container"></div>
|
|
|
|
% if third_party_auth.is_enabled():
|
|
<%include file="third_party_auth.html" />
|
|
% endif
|