Commit e9d006e3 by Matthew Mongeau

Signing in brings you to your dashboard instead of the courses page with a find…

Signing in brings you to your dashboard instead of the courses page with a find courses button when not enrolled.
parent 3a54916b
......@@ -85,7 +85,11 @@
</article>
% endfor
% else:
<p>You are not enrolled in any courses. <a href="${reverse('courses')}">Find some here</a>.</p>
<div class="find-courses-wrapper">
<section class="find-courses">
<a href="${reverse('courses')}" class="find-courses">Find Courses</a>
</section>
</div>
% endif
<article class="my-course">
......
<%! from django.core.urlresolvers import reverse %>
<%namespace name='static' file='static_content.html'/>
<section class="modal login-modal">
......@@ -59,7 +60,7 @@
submit_data,
function(json) {
if(json.success) {
location.href="/courses";
location.href="${reverse('dashboard')}";
} else if($('#login_error').length == 0) {
$('#login_form').prepend('<div id="login_error">Email or password is incorrect.</div>');
} else {
......
......@@ -39,7 +39,7 @@
<div class="divider"></div>
<ol class="user-options">
<li><a href="#">Account Settings</a></li>
<li><a href="${reverse('help_edx')}">Help</a></li>
<li><a href="${reverse('help')}">Help</a></li>
<li><a href="${reverse('logout')}">Log Out</a></li>
</ol>
</li>
......
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