my_account_profile.mako
86 lines
| 3.1 KiB
| application/x-mako
|
MakoHtmlLexer
r1282 | <%namespace name="base" file="/base/base.mako"/> | ||
r4025 | <%namespace name="dt" file="/data_table/_dt_elements.mako"/> | ||
r1282 | <div class="panel panel-default user-profile"> | ||
<div class="panel-heading"> | |||
<h3 class="panel-title">${_('My Profile')}</h3> | |||
r1892 | <a href="${h.route_path('my_account_edit')}" class="panel-edit">${_('Edit')}</a> | ||
r1282 | </div> | ||
Liviu
|
r3685 | <div class="panel-body fields"> | |
r4240 | %if c.extern_type != 'rhodecode': | ||
<% readonly = "readonly" %> | |||
<% disabled = " disabled" %> | |||
<div class="alert-warning" style="margin:0px 0px 20px 0px; padding: 10px"> | |||
<strong>${_('This user was created from external source (%s). Editing some of the settings is limited.' % c.extern_type)}</strong> | |||
</div> | |||
<div style="margin:-10px 0px 20px 0px;"> | |||
${_('For VCS access please generate')} | |||
<a href="${h.route_path('my_account_auth_tokens', _query={'token_role':'token_role_vcs'})}">Authentication Token</a> or <a href="${h.route_path('my_account_ssh_keys_generate')}">SSH Key</a>. | |||
</div> | |||
%endif | |||
Liviu
|
r3685 | <div class="field"> | |
<div class="label"> | |||
r1282 | ${_('Photo')}: | ||
</div> | |||
Liviu
|
r3685 | <div class="input"> | |
<div class="text-as-placeholder"> | |||
%if c.visual.use_gravatar: | |||
${base.gravatar(c.user.email, 100)} | |||
%else: | |||
r3686 | ${base.gravatar(c.user.email, 100)} | ||
Liviu
|
r3685 | %endif | |
</div> | |||
r1282 | </div> | ||
</div> | |||
Liviu
|
r3685 | <div class="field"> | |
<div class="label"> | |||
r1282 | ${_('Username')}: | ||
</div> | |||
Liviu
|
r3685 | <div class="input"> | |
<div class="text-as-placeholder"> | |||
${c.user.username} | |||
</div> | |||
r1282 | </div> | ||
</div> | |||
Liviu
|
r3685 | <div class="field"> | |
<div class="label"> | |||
r1282 | ${_('First Name')}: | ||
</div> | |||
Liviu
|
r3685 | <div class="input"> | |
<div class="text-as-placeholder"> | |||
${c.user.first_name} | |||
</div> | |||
r1282 | </div> | ||
</div> | |||
Liviu
|
r3685 | <div class="field"> | |
<div class="label"> | |||
r1282 | ${_('Last Name')}: | ||
</div> | |||
Liviu
|
r3685 | <div class="input"> | |
<div class="text-as-placeholder"> | |||
${c.user.last_name} | |||
</div> | |||
r1282 | </div> | ||
</div> | |||
Liviu
|
r3685 | <div class="field"> | |
<div class="label"> | |||
r4025 | ${_('Description')}: | ||
</div> | |||
<div class="input"> | |||
<div class="text-as-placeholder"> | |||
${dt.render_description(c.user.description, c.visual.stylify_metatags)} | |||
</div> | |||
</div> | |||
</div> | |||
<div class="field"> | |||
<div class="label"> | |||
r1282 | ${_('Email')}: | ||
</div> | |||
Liviu
|
r3685 | <div class="input"> | |
<div class="text-as-placeholder"> | |||
${c.user.email or _('Missing email, please update your user email address.')} | |||
</div> | |||
r1282 | </div> | ||
</div> | |||
</div> | |||
</div> |