Show More
@@ -1,48 +1,74 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 | <%inherit file="base.mako"/> |
|
2 | <%inherit file="base.mako"/> | |
3 |
|
3 | |||
|
4 | ||||
4 | <%def name="subject()" filter="n,trim"> |
|
5 | <%def name="subject()" filter="n,trim"> | |
5 | ${_('[mention]') if mention else ''} ${_('%(user)s commented on a commit of %(repo_name)s') % { |
|
6 | <% | |
6 | 'user': h.person(user), |
|
7 | data = { | |
7 | 'repo_name': repo_name |
|
8 | 'user': h.person(user), | |
8 | } } |
|
9 | 'comment_file': comment_file, | |
|
10 | 'comment_line': comment_line, | |||
|
11 | 'repo_name': repo_name, | |||
|
12 | 'commit_id': h.show_id(commit), | |||
|
13 | } | |||
|
14 | %> | |||
|
15 | ${_('[mention]') if mention else ''} \ | |||
|
16 | ||||
|
17 | % if comment_file: | |||
|
18 | ${_('%(user)s commented on commit `%(commit_id)s` (file: `%(comment_file)s`)') % data} ${_('in the %(repo_name)s repository') % data} | |||
|
19 | % else: | |||
|
20 | ${_('%(user)s commented on commit `%(commit_id)s`') % data |n} ${_('in the %(repo_name)s repository') % data} | |||
|
21 | % endif | |||
|
22 | ||||
9 | </%def> |
|
23 | </%def> | |
10 |
|
24 | |||
11 | <%def name="body_plaintext()" filter="n,trim"> |
|
25 | <%def name="body_plaintext()" filter="n,trim"> | |
12 | ${self.subject()} |
|
26 | ${self.subject()} | |
13 |
|
27 | |||
14 | * ${_('Comment link')}: ${commit_comment_url} |
|
28 | * ${_('Comment link')}: ${commit_comment_url} | |
15 |
|
29 | |||
16 | * ${_('Commit')}: ${h.show_id(commit)} |
|
30 | * ${_('Commit')}: ${h.show_id(commit)} | |
17 |
|
31 | |||
18 | %if comment_file: |
|
32 | %if comment_file: | |
19 | * ${_('File: %(comment_file)s on line %(comment_line)s') % {'comment_file': comment_file, 'comment_line': comment_line}} |
|
33 | * ${_('File: %(comment_file)s on line %(comment_line)s') % {'comment_file': comment_file, 'comment_line': comment_line}} | |
20 | %endif |
|
34 | %endif | |
21 |
|
35 | |||
22 | --- |
|
36 | --- | |
23 |
|
37 | |||
24 | ${comment_body|n} |
|
38 | ${comment_body|n} | |
25 |
|
39 | |||
26 |
|
40 | |||
27 | %if status_change: |
|
41 | %if status_change: | |
28 | ${_('Commit status was changed to')}: *${status_change}* |
|
42 | ${_('Commit status was changed to')}: *${status_change}* | |
29 | %endif |
|
43 | %endif | |
30 |
|
44 | |||
31 | ${self.plaintext_footer()} |
|
45 | ${self.plaintext_footer()} | |
32 | </%def> |
|
46 | </%def> | |
33 |
|
47 | |||
|
48 | ||||
|
49 | <% | |||
|
50 | data = { | |||
|
51 | 'user': h.person(user), | |||
|
52 | 'comment_file': comment_file, | |||
|
53 | 'comment_line': comment_line, | |||
|
54 | 'repo': commit_target_repo, | |||
|
55 | 'repo_name': repo_name, | |||
|
56 | 'commit_id': h.show_id(commit), | |||
|
57 | } | |||
|
58 | %> | |||
34 | <table style="text-align:left;vertical-align:middle;"> |
|
59 | <table style="text-align:left;vertical-align:middle;"> | |
35 |
<tr><td colspan="2" style="width:100%;padding-bottom:15px;border-bottom:1px solid #dbd9da;"> |
|
60 | <tr><td colspan="2" style="width:100%;padding-bottom:15px;border-bottom:1px solid #dbd9da;"> | |
36 | % if comment_file: |
|
61 | % if comment_file: | |
37 | ${_('%(user)s commented on %(comment_file)s on line %(comment_line)s</a> in the %(repo)s repository') % {'user': h.person(user), 'comment_file': comment_file, 'comment_line': comment_line, 'repo': commit_target_repo} |n}</h4> |
|
62 | <h4><a href="${commit_comment_url}" style="color:#427cc9;text-decoration:none;cursor:pointer">${_('%(user)s commented on commit `%(commit_id)s` (file:`%(comment_file)s`)') % data}</a> ${_('in the %(repo)s repository') % data |n}</h4> | |
38 | % else: |
|
63 | % else: | |
39 | ${_('%(user)s commented on a commit</a> in the %(repo)s repository') % {'user': h.person(user), 'repo': commit_target_repo} |n} |
|
64 | <h4><a href="${commit_comment_url}" style="color:#427cc9;text-decoration:none;cursor:pointer">${_('%(user)s commented on commit `%(commit_id)s`') % data |n}</a> ${_('in the %(repo)s repository') % data |n}</h4> | |
40 | % endif |
|
65 | % endif | |
41 |
|
|
66 | </td></tr> | |
42 | <tr><td style="padding-right:20px;padding-top:15px;">${_('Commit')}</td><td style="padding-top:15px;"><a href="${commit_comment_url}" style="color:#427cc9;text-decoration:none;cursor:pointer">${h.show_id(commit)}</a></td></tr> |
|
67 | <tr><td style="padding-right:20px;padding-top:15px;">${_('Commit')}</td><td style="padding-top:15px;"><a href="${commit_comment_url}" style="color:#427cc9;text-decoration:none;cursor:pointer">${h.show_id(commit)}</a></td></tr> | |
43 | <tr><td style="padding-right:20px;">${_('Description')}</td><td>${h.urlify_commit_message(commit.message, repo_name)}</td></tr> |
|
68 | <tr><td style="padding-right:20px;">${_('Description')}</td><td>${h.urlify_commit_message(commit.message, repo_name)}</td></tr> | |
44 | %if status_change: |
|
69 | ||
45 | <tr><td style="padding-right:20px;">${_('Status')}<td/>${_('The commit status was changed to')} ${status_change}.</td></tr> |
|
70 | % if status_change: | |
46 | %endif |
|
71 | <tr><td style="padding-right:20px;">${_('Status')}</td><td>${_('The commit status was changed to')}: ${status_change}.</td></tr> | |
47 | <tr><td style="padding-right:20px;">${_('Comment')}</td><td style="line-height:1.2em;">${h.render(comment_body, renderer=renderer_type, mentions=True)}</td></tr> |
|
72 | % endif | |
48 | </table> No newline at end of file |
|
73 | <tr><td style="padding-right:20px;">${(_('Comment on line: %(comment_line)s') if comment_file else _('Comment')) % data}</td><td style="line-height:1.2em;">${h.render(comment_body, renderer=renderer_type, mentions=True)}</td></tr> | |
|
74 | </table> |
@@ -1,31 +1,31 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 | <%inherit file="base.mako"/> |
|
2 | <%inherit file="base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="subject()" filter="n,trim"> |
|
4 | <%def name="subject()" filter="n,trim"> | |
5 | RhodeCode Password reset |
|
5 | RhodeCode Password reset | |
6 | </%def> |
|
6 | </%def> | |
7 |
|
7 | |||
8 | ## plain text version of the email. Empty by default |
|
8 | ## plain text version of the email. Empty by default | |
9 | <%def name="body_plaintext()" filter="n,trim"> |
|
9 | <%def name="body_plaintext()" filter="n,trim"> | |
10 | Hi ${user.username}, |
|
10 | Hi ${user.username}, | |
11 |
|
11 | |||
12 | There was a request to reset your password using the email address ${email} on ${h.format_date(date)} |
|
12 | There was a request to reset your password using the email address ${email} on ${h.format_date(date)} | |
13 |
|
13 | |||
14 | *If you didn't do this, please contact your RhodeCode administrator.* |
|
14 | *If you didn't do this, please contact your RhodeCode administrator.* | |
15 |
|
15 | |||
16 | You can continue, and generate new password by clicking following URL: |
|
16 | You can continue, and generate new password by clicking following URL: | |
17 | ${password_reset_url} |
|
17 | ${password_reset_url} | |
18 |
|
18 | |||
19 | ${self.plaintext_footer()} |
|
19 | ${self.plaintext_footer()} | |
20 | </%def> |
|
20 | </%def> | |
21 |
|
21 | |||
22 | ## BODY GOES BELOW |
|
22 | ## BODY GOES BELOW | |
23 | <p> |
|
23 | <p> | |
24 | Hello ${user.username}, |
|
24 | Hello ${user.username}, | |
25 | </p><p> |
|
25 | </p><p> | |
26 | There was a request to reset your password using the email address ${email} on ${h.format_date(date)} |
|
26 | There was a request to reset your password using the email address ${email} on ${h.format_date(date)} | |
27 | <br/> |
|
27 | <br/> | |
28 | <strong>If you did not request a password reset, please contact your RhodeCode administrator.</strong> |
|
28 | <strong>If you did not request a password reset, please contact your RhodeCode administrator.</strong> | |
29 | </p><p> |
|
29 | </p><p> | |
30 | ${_('<a href="%(url)s">Generate new password here</a>.') % {'url': password_reset_url} |n} |
|
30 | <a href="${password_reset_url}">${_('Generate new password here')}.</a> | |
31 | </p> No newline at end of file |
|
31 | </p> |
@@ -1,30 +1,30 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 | <%inherit file="base.mako"/> |
|
2 | <%inherit file="base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="subject()" filter="n,trim"> |
|
4 | <%def name="subject()" filter="n,trim"> | |
5 | Your new RhodeCode password |
|
5 | Your new RhodeCode password | |
6 | </%def> |
|
6 | </%def> | |
7 |
|
7 | |||
8 | ## plain text version of the email. Empty by default |
|
8 | ## plain text version of the email. Empty by default | |
9 | <%def name="body_plaintext()" filter="n,trim"> |
|
9 | <%def name="body_plaintext()" filter="n,trim"> | |
10 | Hi ${user.username}, |
|
10 | Hi ${user.username}, | |
11 |
|
11 | |||
12 | There was a request to reset your password using the email address ${email} on ${h.format_date(date)} |
|
12 | There was a request to reset your password using the email address ${email} on ${h.format_date(date)} | |
13 |
|
13 | |||
14 | *If you didn't do this, please contact your RhodeCode administrator.* |
|
14 | *If you didn't do this, please contact your RhodeCode administrator.* | |
15 |
|
15 | |||
16 | You can continue, and generate new password by clicking following URL: |
|
16 | You can continue, and generate new password by clicking following URL: | |
17 | ${password_reset_url} |
|
17 | ${password_reset_url} | |
18 |
|
18 | |||
19 | ${self.plaintext_footer()} |
|
19 | ${self.plaintext_footer()} | |
20 | </%def> |
|
20 | </%def> | |
21 |
|
21 | |||
22 | ## BODY GOES BELOW |
|
22 | ## BODY GOES BELOW | |
23 | <p> |
|
23 | <p> | |
24 | Hello ${user.username}, |
|
24 | Hello ${user.username}, | |
25 | </p><p> |
|
25 | </p><p> | |
26 | Below is your new access password for RhodeCode. |
|
26 | Below is your new access password for RhodeCode. | |
27 | <br/> |
|
27 | <br/> | |
28 | <strong>If you didn't request a new password, please contact your RhodeCode administrator.</strong> |
|
28 | <strong>If you didn't request a new password, please contact your RhodeCode administrator.</strong> | |
29 | </p> |
|
29 | </p> | |
30 |
<p>password: <input value='${new_password}' |
|
30 | <p>password: <input value='${new_password}'/></p> |
@@ -1,60 +1,96 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 | <%inherit file="base.mako"/> |
|
2 | <%inherit file="base.mako"/> | |
3 |
|
3 | |||
|
4 | ||||
4 | <%def name="subject()" filter="n,trim"> |
|
5 | <%def name="subject()" filter="n,trim"> | |
5 | ${_('[mention]') if mention else ''} ${_('%(user)s commented on pull request #%(pr_id)s: "%(pr_title)s"') % { |
|
6 | <% | |
6 | 'user': h.person(user), |
|
7 | data = { | |
7 | 'pr_title': pull_request.title, |
|
8 | 'user': h.person(user), | |
8 | 'pr_id': pull_request.pull_request_id |
|
9 | 'pr_title': pull_request.title, | |
9 | } |n} |
|
10 | 'pr_id': pull_request.pull_request_id, | |
|
11 | 'status': status_change, | |||
|
12 | 'comment_file': comment_file, | |||
|
13 | 'comment_line': comment_line, | |||
|
14 | } | |||
|
15 | %> | |||
|
16 | ||||
|
17 | ${_('[mention]') if mention else ''} \ | |||
|
18 | ||||
|
19 | % if comment_file: | |||
|
20 | ${_('%(user)s commented on pull request #%(pr_id)s "%(pr_title)s" (file: `%(comment_file)s`)') % data |n} | |||
|
21 | % else: | |||
|
22 | % if status_change: | |||
|
23 | ${_('%(user)s commented on pull request #%(pr_id)s "%(pr_title)s" (status: %(status)s)') % data |n} | |||
|
24 | % else: | |||
|
25 | ${_('%(user)s commented on pull request #%(pr_id)s "%(pr_title)s"') % data |n} | |||
|
26 | % endif | |||
|
27 | ||||
|
28 | % endif | |||
10 | </%def> |
|
29 | </%def> | |
11 |
|
30 | |||
12 | <%def name="body_plaintext()" filter="n,trim"> |
|
31 | <%def name="body_plaintext()" filter="n,trim"> | |
|
32 | <% | |||
|
33 | data = { | |||
|
34 | 'user': h.person(user), | |||
|
35 | 'pr_title': pull_request.title, | |||
|
36 | 'pr_id': pull_request.pull_request_id, | |||
|
37 | 'status': status_change, | |||
|
38 | 'comment_file': comment_file, | |||
|
39 | 'comment_line': comment_line, | |||
|
40 | } | |||
|
41 | %> | |||
13 | ${self.subject()} |
|
42 | ${self.subject()} | |
14 |
|
43 | |||
15 | * ${_('Comment link')}: ${pr_comment_url} |
|
44 | * ${_('Comment link')}: ${pr_comment_url} | |
16 |
|
45 | |||
17 | * ${_('Source repository')}: ${pr_source_repo_url} |
|
46 | * ${_('Source repository')}: ${pr_source_repo_url} | |
18 |
|
47 | |||
19 | %if comment_file: |
|
48 | %if comment_file: | |
20 | * ${_('File: %(comment_file)s on line %(comment_line)s') % {'comment_file': comment_file, 'comment_line': comment_line}} |
|
49 | * ${_('File: %(comment_file)s on line %(comment_line)s') % {'comment_file': comment_file, 'comment_line': comment_line}} | |
21 | %endif |
|
50 | %endif | |
22 |
|
51 | |||
23 | --- |
|
52 | --- | |
24 |
|
53 | |||
|
54 | %if status_change and not closing_pr: | |||
|
55 | ${_('%(user)s submitted pull request #%(pr_id)s status: *%(status)s*') % data} | |||
|
56 | %elif status_change and closing_pr: | |||
|
57 | ${_('%(user)s submitted pull request #%(pr_id)s status: *%(status)s and closed*') % data} | |||
|
58 | %endif | |||
|
59 | ||||
25 | ${comment_body|n} |
|
60 | ${comment_body|n} | |
26 |
|
61 | |||
27 |
|
62 | |||
28 | %if status_change and not closing_pr: |
|
|||
29 | ${_('Pull request status was changed to')}: *${status_change}* |
|
|||
30 | %elif status_change and closing_pr: |
|
|||
31 | ${_('Pull request was closed with status')}: *${status_change}* |
|
|||
32 | %endif |
|
|||
33 |
|
||||
34 | ${self.plaintext_footer()} |
|
63 | ${self.plaintext_footer()} | |
35 | </%def> |
|
64 | </%def> | |
36 |
|
65 | |||
|
66 | ||||
|
67 | <% | |||
|
68 | data = { | |||
|
69 | 'user': h.person(user), | |||
|
70 | 'pr_title': pull_request.title, | |||
|
71 | 'pr_id': pull_request.pull_request_id, | |||
|
72 | 'status': status_change, | |||
|
73 | 'comment_file': comment_file, | |||
|
74 | 'comment_line': comment_line, | |||
|
75 | } | |||
|
76 | %> | |||
37 | <table style="text-align:left;vertical-align:middle;"> |
|
77 | <table style="text-align:left;vertical-align:middle;"> | |
38 |
<tr><td colspan="2" style="width:100%;padding-bottom:15px;border-bottom:1px solid #dbd9da;"> |
|
78 | <tr><td colspan="2" style="width:100%;padding-bottom:15px;border-bottom:1px solid #dbd9da;"> | |
39 | % if comment_file: |
|
79 | <h4><a href="${pr_comment_url}" style="color:#427cc9;text-decoration:none;cursor:pointer"> | |
40 | ${_('%(user)s commented on %(comment_file)s on pull request #%(pr_id)s: "%(pr_title)s".') % {'user': h.person(user), 'comment_file': comment_file, 'pr_title': pull_request.title, 'pr_id': pull_request.pull_request_id} |n} |
|
80 | ||
41 | % elif status_change and not closing_pr: |
|
81 | % if comment_file: | |
42 | ${_('%(user)s changed the status of pull request #%(pr_id)s "%(pr_title)s" to %(status)s.') % {'user': h.person(user),'pr_title': pull_request.title,'pr_id': pull_request.pull_request_id, 'status': status_change} |n} |
|
82 | ${_('%(user)s commented on pull request #%(pr_id)s "%(pr_title)s" (file:`%(comment_file)s`)') % data |n} | |
43 | %elif status_change and closing_pr: |
|
83 | % else: | |
44 | ${_('%(user)s closed pull request #%(pr_id)s "%(pr_title)s" with status %(status)s.') % {'user': h.person(user),'pr_title': pull_request.title,'pr_id': pull_request.pull_request_id, 'status': status_change} |n} |
|
84 | ${_('%(user)s commented on pull request #%(pr_id)s "%(pr_title)s"') % data |n} | |
45 | %else: |
|
85 | % endif | |
46 | ${_('%(user)s commented in pull request #%(pr_id)s "%(pr_title)s".') % {'user': h.person(user),'pr_title': pull_request.title,'pr_id': pull_request.pull_request_id} |n} |
|
86 | </a> | |
47 | % endif |
|
87 | %if status_change and not closing_pr: | |
48 | </a></h4></td></tr> |
|
88 | , ${_('submitted pull request status: %(status)s') % data} | |
|
89 | %elif status_change and closing_pr: | |||
|
90 | , ${_('submitted pull request status: %(status)s and closed') % data} | |||
|
91 | %endif | |||
|
92 | </h4> | |||
|
93 | </td></tr> | |||
49 | <tr><td style="padding-right:20px;padding-top:15px;">${_('Source')}</td><td style="padding-top:15px;"><a style="color:#427cc9;text-decoration:none;cursor:pointer" href="${pr_source_repo_url}">${pr_source_repo.repo_name}</a></td></tr> |
|
94 | <tr><td style="padding-right:20px;padding-top:15px;">${_('Source')}</td><td style="padding-top:15px;"><a style="color:#427cc9;text-decoration:none;cursor:pointer" href="${pr_source_repo_url}">${pr_source_repo.repo_name}</a></td></tr> | |
50 | % if comment_file: |
|
95 | <tr><td style="padding-right:20px;">${(_('Comment on line: %(comment_line)s') if comment_file else _('Comment')) % data}</td><td style="line-height:1.2em;">${h.render(comment_body, renderer=renderer_type, mentions=True)}</td></tr> | |
51 | <tr><td style="padding-right:20px;">${_('File')}</td><td>${_('%(comment_file)s on line %(comment_line)s') % {'comment_file': comment_file, 'comment_line': comment_line}}</td></tr> |
|
|||
52 | %endif |
|
|||
53 | %if status_change and not closing_pr: |
|
|||
54 | <tr><td style="padding-right:20px;">${_('Status')}</td><td>${_('The commit status was changed to')} ${status_change}</td></tr> |
|
|||
55 | %elif status_change and closing_pr: |
|
|||
56 | <tr><td style="padding-right:20px;">${_('Status')}</td><td>${_('Pull request was closed with status')}: ${status_change}</td></tr> |
|
|||
57 | %endif |
|
|||
58 | <tr><td style="padding-right:20px;">${_('Comment')}</td><td style="line-height:1.2em;">${h.render(comment_body, renderer=renderer_type, mentions=True)}</td></tr> |
|
|||
59 | </table> |
|
96 | </table> | |
60 |
|
@@ -1,78 +1,78 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 | <%inherit file="base/root.html"/> |
|
2 | <%inherit file="base/root.html"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('Create an Account')} |
|
5 | ${_('Create an Account')} | |
6 | %if c.rhodecode_name: |
|
6 | %if c.rhodecode_name: | |
7 | · ${h.branding(c.rhodecode_name)} |
|
7 | · ${h.branding(c.rhodecode_name)} | |
8 | %endif |
|
8 | %endif | |
9 | </%def> |
|
9 | </%def> | |
10 | <style>body{background-color:#eeeeee;}</style> |
|
10 | <style>body{background-color:#eeeeee;}</style> | |
11 |
|
11 | |||
12 | <div class="loginbox"> |
|
12 | <div class="loginbox"> | |
13 | <div class="header"> |
|
13 | <div class="header"> | |
14 | <div id="header-inner" class="title"> |
|
14 | <div id="header-inner" class="title"> | |
15 | <div id="logo"> |
|
15 | <div id="logo"> | |
16 | <div class="logo-wrapper"> |
|
16 | <div class="logo-wrapper"> | |
17 | <a href="${h.url('home')}"><img src="${h.asset('images/rhodecode-logo-white-216x60.png')}" alt="RhodeCode"/></a> |
|
17 | <a href="${h.url('home')}"><img src="${h.asset('images/rhodecode-logo-white-216x60.png')}" alt="RhodeCode"/></a> | |
18 | </div> |
|
18 | </div> | |
19 | %if c.rhodecode_name: |
|
19 | %if c.rhodecode_name: | |
20 | <div class="branding"> ${h.branding(c.rhodecode_name)}</div> |
|
20 | <div class="branding"> ${h.branding(c.rhodecode_name)}</div> | |
21 | %endif |
|
21 | %endif | |
22 | </div> |
|
22 | </div> | |
23 | </div> |
|
23 | </div> | |
24 | </div> |
|
24 | </div> | |
25 |
|
25 | |||
26 | <div class="loginwrapper"> |
|
26 | <div class="loginwrapper"> | |
27 | <div class="left-column"> |
|
27 | <div class="left-column"> | |
28 | <img class="sign-in-image" src="${h.asset('images/sign-in.png')}" alt="RhodeCode"/> |
|
28 | <img class="sign-in-image" src="${h.asset('images/sign-in.png')}" alt="RhodeCode"/> | |
29 | </div> |
|
29 | </div> | |
30 |
|
30 | |||
31 | <div id="register" class="right-column"> |
|
31 | <div id="register" class="right-column"> | |
32 | <%include file="/base/flash_msg.html"/> |
|
32 | <%include file="/base/flash_msg.html"/> | |
33 | <!-- login --> |
|
33 | <!-- login --> | |
34 | <div class="sign-in-title"> |
|
34 | <div class="sign-in-title"> | |
35 | <h1>${_('Reset your Password')}</h1> |
|
35 | <h1>${_('Reset your Password')}</h1> | |
36 | <h4>${h.link_to(_("Go to the login page to sign in."), request.route_path('login'))}</h4> |
|
36 | <h4>${h.link_to(_("Go to the login page to sign in."), request.route_path('login'))}</h4> | |
37 | </div> |
|
37 | </div> | |
38 | <div class="inner form"> |
|
38 | <div class="inner form"> | |
39 | ${h.form(request.route_path('reset_password'), needs_csrf_token=False)} |
|
39 | ${h.form(request.route_path('reset_password'), needs_csrf_token=False)} | |
40 | <label for="email">${_('Email Address')}:</label> |
|
40 | <label for="email">${_('Email Address')}:</label> | |
41 | ${h.text('email', defaults.get('email'))} |
|
41 | ${h.text('email', defaults.get('email'))} | |
42 | %if 'email' in errors: |
|
42 | %if 'email' in errors: | |
43 | <span class="error-message">${errors.get('email')}</span> |
|
43 | <span class="error-message">${errors.get('email')}</span> | |
44 | <br /> |
|
44 | <br /> | |
45 | %endif |
|
45 | %endif | |
46 |
|
46 | |||
47 | %if captcha_active: |
|
47 | %if captcha_active: | |
48 | <div class="login-captcha" |
|
48 | <div class="login-captcha" | |
49 | <label for="email">${_('Captcha')}:</label> |
|
49 | <label for="email">${_('Captcha')}:</label> | |
50 | ${h.hidden('recaptcha_field')} |
|
50 | ${h.hidden('recaptcha_field')} | |
51 | <div id="recaptcha"></div> |
|
51 | <div id="recaptcha"></div> | |
52 | %if 'recaptcha_field' in errors: |
|
52 | %if 'recaptcha_field' in errors: | |
53 | <span class="error-message">${errors.get('recaptcha_field')}</span> |
|
53 | <span class="error-message">${errors.get('recaptcha_field')}</span> | |
54 | <br /> |
|
54 | <br /> | |
55 | %endif |
|
55 | %endif | |
56 | </div> |
|
56 | </div> | |
57 | %endif |
|
57 | %endif | |
58 |
|
58 | |||
59 | ${h.submit('send', _('Send password reset email'), class_="btn sign-in")} |
|
59 | ${h.submit('send', _('Send password reset email'), class_="btn sign-in")} | |
60 |
<div class="activation_msg">${_('Password reset link will be sen |
|
60 | <div class="activation_msg">${_('Password reset link will be sent to matching email address')}</div> | |
61 |
|
61 | |||
62 | ${h.end_form()} |
|
62 | ${h.end_form()} | |
63 | </div> |
|
63 | </div> | |
64 | </div> |
|
64 | </div> | |
65 | </div> |
|
65 | </div> | |
66 | </div> |
|
66 | </div> | |
67 |
|
67 | |||
68 | %if captcha_active: |
|
68 | %if captcha_active: | |
69 | <script type="text/javascript" src="https://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script> |
|
69 | <script type="text/javascript" src="https://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script> | |
70 | %endif |
|
70 | %endif | |
71 | <script type="text/javascript"> |
|
71 | <script type="text/javascript"> | |
72 | $(document).ready(function(){ |
|
72 | $(document).ready(function(){ | |
73 | $('#email').focus(); |
|
73 | $('#email').focus(); | |
74 | %if captcha_active: |
|
74 | %if captcha_active: | |
75 | Recaptcha.create("${captcha_public_key}", "recaptcha", {theme: "white"}); |
|
75 | Recaptcha.create("${captcha_public_key}", "recaptcha", {theme: "white"}); | |
76 | %endif |
|
76 | %endif | |
77 | }); |
|
77 | }); | |
78 | </script> |
|
78 | </script> |
General Comments 0
You need to be logged in to leave comments.
Login now