Let users edit account settings #291
authorwilliambratches <williambratches@gmail.com>
Tue, 25 Feb 2014 23:48:55 +0000 (18:48 -0500)
committerwilliambratches <williambratches@gmail.com>
Tue, 25 Feb 2014 23:48:55 +0000 (18:48 -0500)
karmaworld/apps/users/views.py
karmaworld/templates/header.html
karmaworld/urls.py

index 7d60078157f3a5a3aa919767b96e179c081f8215..b2f17b64b290a1804729f81e99ff36aa398a481d 100644 (file)
@@ -31,3 +31,6 @@ class ProfileView(TemplateView, MultipleObjectMixin):
 
         return super(ProfileView, self).get_context_data(**kwargs)
 
+class ControlView(TemplateView):
+    template_name = 'control_panel.html'
+
index 53dc51f2876fc41f60dbb6f9ac3abfdbd4e41802..23b12509892dd696fa3b9f41001616810252590a 100644 (file)
@@ -41,6 +41,7 @@
         <div id="user_dropdown_container">
           <ul id="user_dropdown">
             <li><a href="{% url 'accounts_profile' %}">Dashboard</a></li>
+            <li><a href="{% url 'control_panel' %}">Control Panel</a></li>
             <li><a href="{% url 'account_logout' %}">Log Out</a></li>
           </ul>
         </div>
index e6044b94b077accdcbf1021372413426d0e3e30b..c50f514ef5fdf0ae490685ac3dcd7007b2fe096f 100644 (file)
@@ -20,6 +20,7 @@ from karmaworld.apps.notes.views import RawNoteDetailView
 from karmaworld.apps.moderation import moderator
 from karmaworld.apps.document_upload.views import save_fp_upload
 from karmaworld.apps.users.views import ProfileView
+from karmaworld.apps.users.views import ControlView
 
 # See: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#hooking-adminsite-instances-into-your-urlconf
 
@@ -64,6 +65,7 @@ urlpatterns = patterns('',
     # All Auth
     url(r'^accounts/', include('allauth.urls')),
     url(r'^accounts/profile/', ProfileView.as_view(), name='accounts_profile'),
+    url(r'^accounts/control_panel', ControlView.as_view(), name='control_panel'),
 
     # Media handling
     url(r'^media/(?P<path>.*)$', 'django.views.static.serve',