diff --git a/lms/djangoapps/student/views.py b/lms/djangoapps/student/views.py index ceb2b48cc1..9214bc4223 100644 --- a/lms/djangoapps/student/views.py +++ b/lms/djangoapps/student/views.py @@ -44,6 +44,12 @@ def index(request): # TODO: Clean up how 'error' is done. return render_to_response('index.html', {'csrf': csrf_token }) +@ensure_csrf_cookie +def dashboard(request): + user = request.user + csrf_token = csrf(request)['csrf_token'] + return render_to_response('dashboard.html', {'csrf': csrf_token}) + # Need different levels of logging @ensure_csrf_cookie def login_user(request, error=""): diff --git a/lms/templates/dashboard.html b/lms/templates/dashboard.html new file mode 100644 index 0000000000..c77d443080 --- /dev/null +++ b/lms/templates/dashboard.html @@ -0,0 +1,145 @@ +<%inherit file="main.html" /> +<%include file="navigation.html" args="active_page='dashboard'" /> + +<%namespace name='static' file='static_content.html'/> + +
+
+ + + +
+ + + + + + + +
+ +
+
diff --git a/lms/templates/guest_navigation.html b/lms/templates/guest_navigation.html index da131841eb..6f3aa78187 100644 --- a/lms/templates/guest_navigation.html +++ b/lms/templates/guest_navigation.html @@ -8,7 +8,7 @@
  • How It Works
    1. -
    2. Log In
    3. +
    4. Log In
    5. Sign Up
      diff --git a/lms/templates/navigation.html b/lms/templates/navigation.html index c94ce0b24a..04852aa055 100644 --- a/lms/templates/navigation.html +++ b/lms/templates/navigation.html @@ -8,7 +8,7 @@

      ${ settings.COURSE_TITLE }

      1. - + Neil deGrasse Tyson diff --git a/lms/urls.py b/lms/urls.py index 2bf512b2fe..6064e72d09 100644 --- a/lms/urls.py +++ b/lms/urls.py @@ -12,6 +12,7 @@ if settings.DEBUG: urlpatterns = ('', url(r'^$', 'student.views.index'), # Main marketing page, or redirect to courseware + url(r'^dashboard$', 'student.views.dashboard'), url(r'^course_info$', 'student.views.course_info'), url(r'^courses$', 'student.views.courses'), url(r'^change_email$', 'student.views.change_email_request'),