# HG changeset patch # User anoop # Date 1266596184 -19800 # Node ID ab8918e654aeb28b2484abcd259912214f8e51d2 # Parent 2b09336352b546be090b7c6901bb4fef3e42134b added forgot password in template. diff -r 2b09336352b5 -r ab8918e654ae taskapp/views/user.py --- a/taskapp/views/user.py Thu Feb 18 19:39:54 2010 +0530 +++ b/taskapp/views/user.py Fri Feb 19 21:46:24 2010 +0530 @@ -61,6 +61,7 @@ raise Http404 return render_to_response('user/my_profile.html', {'edit_profile':edit_profile,'profile':profile}) +@login_required def edit_my_profile(request): """ enables the user to edit his/her user profile """ if str(request.user) == 'AnonymousUser': diff -r 2b09336352b5 -r ab8918e654ae templates/base.html --- a/templates/base.html Thu Feb 18 19:39:54 2010 +0530 +++ b/templates/base.html Fri Feb 19 21:46:24 2010 +0530 @@ -3,5 +3,11 @@ {% block title %}PyTasks{% endblock %} -

PyTasks


{% block content %}This is the default content{% endblock %} +

PyTasks

+back +{% if user.is_authenticated %} + | logout +{% endif %} +

+{% block content %}This is the default content{% endblock %} diff -r 2b09336352b5 -r ab8918e654ae templates/registration/login.html --- a/templates/registration/login.html Thu Feb 18 19:39:54 2010 +0530 +++ b/templates/registration/login.html Fri Feb 19 21:46:24 2010 +0530 @@ -4,4 +4,5 @@ {{ form.as_p }} +Forgot password? {% endblock %} diff -r 2b09336352b5 -r ab8918e654ae templates/user/my_profile.html --- a/templates/user/my_profile.html Thu Feb 18 19:39:54 2010 +0530 +++ b/templates/user/my_profile.html Fri Feb 19 21:46:24 2010 +0530 @@ -10,7 +10,7 @@

{{ profile }}'s Profile


{% if edit_profile %} - edit profile + edit profile | change password
{% endif %} {% if profile.aboutme %}