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