user_profile.mako
66 lines
| 2.1 KiB
| application/x-mako
|
MakoHtmlLexer
r1282 | <%namespace name="base" file="/base/base.mako"/> | ||
<div class="panel panel-default user-profile"> | |||
<div class="panel-heading"> | |||
r2610 | <h3 class="panel-title">${_('User Profile')}</h3> | ||
r3587 | %if c.is_super_admin: | ||
r2114 | ${h.link_to(_('Edit'), h.route_path('user_edit', user_id=c.user.user_id), class_='panel-edit')} | ||
r1282 | %endif | ||
</div> | |||
r3687 | <div class="panel-body user-profile-content fields"> | ||
<div class="field"> | |||
<div class="label"> | |||
r1282 | ${_('Photo')}: | ||
</div> | |||
r3687 | <div class="input"> | ||
<div class="text-as-placeholder"> | |||
r1282 | %if c.visual.use_gravatar: | ||
${base.gravatar(c.user.email, 100)} | |||
%else: | |||
r3686 | ${base.gravatar(c.user.email, 100)} | ||
r1282 | %endif | ||
r3687 | </div> | ||
r1282 | </div> | ||
</div> | |||
r3687 | <div class="field"> | ||
<div class="label"> | |||
r1282 | ${_('Username')}: | ||
</div> | |||
r3687 | <div class="input"> | ||
<div class="text-as-placeholder"> | |||
${c.user.username} | |||
</div> | |||
r1282 | </div> | ||
</div> | |||
r3687 | <div class="field"> | ||
<div class="label"> | |||
r1282 | ${_('First name')}: | ||
</div> | |||
r3687 | <div class="input"> | ||
<div class="text-as-placeholder"> | |||
${c.user.first_name} | |||
</div> | |||
r1282 | </div> | ||
</div> | |||
r3687 | <div class="field"> | ||
<div class="label"> | |||
r1282 | ${_('Last name')}: | ||
</div> | |||
r3687 | <div class="input"> | ||
<div class="text-as-placeholder"> | |||
${c.user.last_name} | |||
</div> | |||
r1282 | </div> | ||
</div> | |||
r3687 | <div class="field"> | ||
<div class="label"> | |||
r1282 | ${_('Email')}: | ||
</div> | |||
r3687 | <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> |