Show More
@@ -1,54 +1,60 b'' | |||||
1 | <%namespace name="base" file="/base/base.mako"/> |
|
1 | <%namespace name="base" file="/base/base.mako"/> | |
2 |
|
2 | |||
3 | <div class="panel panel-default"> |
|
3 | <div class="panel panel-default"> | |
4 | <div class="panel-heading"> |
|
4 | <div class="panel-heading"> | |
5 | <h3 class="panel-title">${_('Account Emails')}</h3> |
|
5 | <h3 class="panel-title">${_('Account Emails')}</h3> | |
6 | </div> |
|
6 | </div> | |
7 |
|
7 | |||
8 | <div class="panel-body"> |
|
8 | <div class="panel-body"> | |
9 | <div class="emails_wrap"> |
|
9 | <div class="emails_wrap"> | |
10 | <table class="rctable account_emails"> |
|
10 | <table class="rctable account_emails"> | |
11 | <tr> |
|
11 | <tr> | |
12 | <td class="td-user"> |
|
12 | <td class="td-user"> | |
13 | ${base.gravatar(c.user.email, 16)} |
|
13 | ${base.gravatar(c.user.email, 16)} | |
14 | <span class="user email">${c.user.email}</span> |
|
14 | <span class="user email">${c.user.email}</span> | |
15 | </td> |
|
15 | </td> | |
16 | <td class="td-tags"> |
|
16 | <td class="td-tags"> | |
17 | <span class="tag tag1">${_('Primary')}</span> |
|
17 | <span class="tag tag1">${_('Primary')}</span> | |
18 | </td> |
|
18 | </td> | |
19 | </tr> |
|
19 | </tr> | |
20 | %if c.user_email_map: |
|
20 | %if c.user_email_map: | |
21 | %for em in c.user_email_map: |
|
21 | %for em in c.user_email_map: | |
22 | <tr> |
|
22 | <tr> | |
23 | <td class="td-user"> |
|
23 | <td class="td-user"> | |
24 | ${base.gravatar(em.email, 16)} |
|
24 | ${base.gravatar(em.email, 16)} | |
25 | <span class="user email">${em.email}</span> |
|
25 | <span class="user email">${em.email}</span> | |
26 | </td> |
|
26 | </td> | |
27 | <td class="td-action"> |
|
27 | <td class="td-action"> | |
28 | ${h.secure_form(h.route_path('my_account_emails_delete'), request=request)} |
|
28 | ${h.secure_form(h.route_path('my_account_emails_delete'), request=request)} | |
29 | ${h.hidden('del_email_id',em.email_id)} |
|
29 | ${h.hidden('del_email_id',em.email_id)} | |
30 | <button class="btn btn-link btn-danger" type="submit" id="${'remove_email_%s'.format(em.email_id)}" |
|
30 | <button class="btn btn-link btn-danger" type="submit" id="${'remove_email_%s'.format(em.email_id)}" | |
31 | onclick="return confirm('${_('Confirm to delete this email: {}').format(em.email)}');"> |
|
31 | onclick="return confirm('${_('Confirm to delete this email: {}').format(em.email)}');"> | |
32 | ${_('Delete')} |
|
32 | ${_('Delete')} | |
33 | </button> |
|
33 | </button> | |
34 | ${h.end_form()} |
|
34 | ${h.end_form()} | |
35 | </td> |
|
35 | </td> | |
36 | </tr> |
|
36 | </tr> | |
37 | %endfor |
|
37 | %endfor | |
38 | %else: |
|
38 | %else: | |
39 | <tr class="noborder"> |
|
39 | <tr class="noborder"> | |
40 | <td colspan="3"> |
|
40 | <td colspan="3"> | |
41 | <div class="td-email"> |
|
41 | <div class="td-email"> | |
42 | ${_('No additional emails specified')} |
|
42 | ${_('No additional emails specified')} | |
43 | </div> |
|
43 | </div> | |
44 | </td> |
|
44 | </td> | |
45 | </tr> |
|
45 | </tr> | |
46 | %endif |
|
46 | %endif | |
47 | </table> |
|
47 | </table> | |
48 | </div> |
|
48 | </div> | |
49 |
|
49 | |||
|
50 | % if c.user.extern_type != 'rhodecode': | |||
|
51 | <p>${_('Your user account details are managed by an external source. Details cannot be managed here.')} | |||
|
52 | <br/>${_('Source type')}: <strong>${c.user.extern_type}</strong> | |||
|
53 | </p> | |||
|
54 | % else: | |||
50 | <div> |
|
55 | <div> | |
51 | ${c.form.render() | n} |
|
56 | ${c.form.render() | n} | |
52 | </div> |
|
57 | </div> | |
|
58 | % endif | |||
53 | </div> |
|
59 | </div> | |
54 | </div> |
|
60 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now