# HG changeset patch # User Madhusudan.C.S # Date 1295293081 -19800 # Node ID 50c45258b00ea3fe2062f5cd207a503980ae8fce # Parent 870235dbac865e151c75cf090c32c391a0d447a9 Move the user login template code to its own template file, so it can be reused. diff -r 870235dbac86 -r 50c45258b00e pytask/templates/_right_sidebar.html --- a/pytask/templates/_right_sidebar.html Tue Jan 18 01:06:21 2011 +0530 +++ b/pytask/templates/_right_sidebar.html Tue Jan 18 01:08:01 2011 +0530 @@ -1,48 +1,8 @@ -{% load user_tags %} - - - -{% if user.is_authenticated %} - -{% else %} +{% comment %} + Currently this template only includes the user actions for logged + in and non-logged in users. This can be extended to include other, + side-wide actions on right sidemenu bar. +{% endcomment %} -
-
-
- - -
-
- - -
-

-
-
-
-
- - Register - -          - Forgot password? -
-
- -{% endif %} +{% include "_user_login.html" %} diff -r 870235dbac86 -r 50c45258b00e pytask/templates/_user_login.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pytask/templates/_user_login.html Tue Jan 18 01:08:01 2011 +0530 @@ -0,0 +1,47 @@ +{% load user_tags %} + +
+ {% if user.is_authenticated %} + + + {% else %} + +
+
+ {% csrf_token %} +
+ + +
+
+ + +
+

+
+
+ +
+
+ + Register + +          + Forgot password? +
+
+ {% endif %} +