Show login modal if there's a next param to index, university index

* also replace the external-auth-related popping up of the signup form with jquery.
Presumably it takes care of the browser specific stuff.
This commit is contained in:
Victor Shnayder
2012-09-14 14:31:04 -04:00
parent 6472e0ebe3
commit a788db53e9
3 changed files with 11 additions and 24 deletions

View File

@@ -82,6 +82,8 @@ def index(request, extra_context={}, user=None):
domain=domain)
context = {'universities': universities, 'entries': entries}
context.update(extra_context)
if request.REQUEST.get('next', False):
context['show_login_immediately'] = True
return render_to_response('index.html', context)
def course_from_id(course_id):