Signing in brings you to your dashboard instead of the courses page with a find courses button when not enrolled.
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
<%! 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>
|
||||
|
||||
Reference in New Issue
Block a user