Commits

Ben Bangert  committed c24f962

Added password reset template

  • Participants
  • Parent commits e1b042f

Comments (0)

Files changed (4)

File kai/config/routing.py

     map.connect('buildbot', '/buildbot/{action}', controller='buildbot')
     
     # Doc url's
-    map.connect('doc_upload', '/docs/upload', controller='docs',
-                action='upload')
-    map.connect('doc_upload_image', '/docs/upload_image', controller='docs',
-                action='upload_image')
-    map.connect('doc_delete', '/docs/delete_revision/{project}/{version}', 
-                controller='docs', action='delete_revision')
+    map.connect('doc_upload', '/docs/upload', controller='docs', action='upload')
+    map.connect('doc_upload_image', '/docs/upload_image', controller='docs', action='upload_image')
+    map.connect('doc_delete', '/docs/delete_revision/{project}/{version}', controller='docs', action='delete_revision')
     map.redirect('/docs/{version}', '/docs/en/{version}/')
-    map.connect('doc_home', '/docs/{language}/{version}/', controller='docs', 
-                action='view', url='index', language='en',
+    map.connect('doc_home', '/docs/{language}/{version}/', controller='docs', action='view', url='index', language='en',
                 version=globs.doc_version)
-    map.connect('doc_view', '/docs/{language}/{version}/{url:.*}',
-                controller='docs', action='view', language='en', 
+    map.connect('doc_view', '/docs/{language}/{version}/{url:.*}', controller='docs', action='view', language='en', 
                 version=globs.doc_version)
     
     map.connect('wiki', 'http://wiki.pylonshq.com/', _static=True)

File kai/templates/accounts/change_password.mako

+<%!
+    from kai.model.forms import change_password_form
+%>
+<div class="yui-b content">
+    <h1>${_('Reset Password')}</h1>
+    
+    <p>${_("Enter a new password, to reset your login password.")}</p>
+    
+    ${change_password_form(action=url('reset_password', token=c.token)) | n}
+</div>
+<%def name="title()">${parent.title()} - ${_('Reset Password')}</%def>
+<%inherit file="../layout.mako" />

File kai/templates/email/lost_password.mako

-Hello,
+${_('Hello,')}
 
-A request has been made to reset your password. You can change your password 
-by following this link:
+${_("""A request has been made to reset your password. You can change your password 
+by following this link:""")}
 ${url('reset_password', token=c.password_token, qualified=True)}
 
-If you did not request us to reset and email you your password, please ignore
-this email.
+${_("""If you did not request us to reset and email you your password, please ignore
+this email.""")}
 
-Regards,
-PylonsHQ
+${_("""Regards,
+PylonsHQ""")}

File kai/templates/email/register.mako

-Welcome to PylonsHQ!
+${_("Welcome to PylonsHQ!")}
 
-Thanks for signing up. To finish activating your account, you will need
+${_("""Thanks for signing up. To finish activating your account, you will need
 to verify your email address. Please click on the link below to confirm
-your email address.
+your email address.""")}
 
 ${url('verify_email', token=c.email_token, qualified=True)}
 
-If you're unable to click on the link, copy and paste the entire url
-into the address window of your web browser.
+${_("""If you're unable to click on the link, copy and paste the entire url
+into the address window of your web browser.""")}
 
 - PylonsHQ