user_edit.html
56 lines
| 2.2 KiB
| text/html
|
HtmlLexer
r547 | ## -*- coding: utf-8 -*- | |||
<%inherit file="/base/base.html"/> | ||||
<%def name="title()"> | ||||
Bradley M. Kuhn
|
r4116 | ${_('%s user settings') % c.user.username} | ||
%if c.rhodecode_name: | ||||
· ${c.rhodecode_name} | ||||
%endif | ||||
r547 | </%def> | |||
<%def name="breadcrumbs_links()"> | ||||
r1888 | ${h.link_to(_('Admin'),h.url('admin_home'))} | |||
» | ||||
${h.link_to(_('Users'),h.url('users'))} | ||||
r547 | » | |||
Bradley M. Kuhn
|
r4116 | ${c.user.username} | ||
r547 | </%def> | |||
<%def name="page_nav()"> | ||||
Mads Kiilerich
|
r3197 | ${self.menu('admin')} | ||
r547 | </%def> | |||
<%def name="main()"> | ||||
Bradley M. Kuhn
|
r4116 | <div class="box"> | ||
r547 | <div class="title"> | |||
r1888 | ${self.breadcrumbs()} | |||
r547 | </div> | |||
Bradley M. Kuhn
|
r4116 | |||
##main | ||||
<div style="width: 150px; float:left"> | ||||
<ul class="nav nav-pills nav-stacked"> | ||||
<li> | ||||
<div class="gravatar_box" style="height: 26px"> | ||||
<div class="gravatar" style="float: left"> | ||||
<img alt="gravatar" src="${h.gravatar_url(c.user.email)}"/> | ||||
</div> | ||||
<div class="truncate" style="margin:10px 0px 10px 0px; color:#5f5f5f; float:left; width: 100px"> | ||||
<strong>${c.user.username}</strong> | ||||
</div> | ||||
r1116 | </div> | |||
Bradley M. Kuhn
|
r4116 | </li> | ||
<li class="${'active' if c.active=='profile' else ''}"><a href="${h.url('edit_user', id=c.user.user_id)}">${_('Profile')}</a></li> | ||||
<li class="${'active' if c.active=='api_keys' else ''}"><a href="${h.url('edit_user_api_keys', id=c.user.user_id)}">${_('API keys')}</a></li> | ||||
<li class="${'active' if c.active=='advanced' else ''}"><a href="${h.url('edit_user_advanced', id=c.user.user_id)}">${_('Advanced')}</a></li> | ||||
<li class="${'active' if c.active=='perms' else ''}"><a href="${h.url('edit_user_perms', id=c.user.user_id)}">${_('Default permissions')}</a></li> | ||||
<li class="${'active' if c.active=='emails' else ''}"><a href="${h.url('edit_user_emails', id=c.user.user_id)}">${_('Emails')}</a></li> | ||||
<li class="${'active' if c.active=='ips' else ''}"><a href="${h.url('edit_user_ips', id=c.user.user_id)}">${_('Ip whitelist')}</a></li> | ||||
</ul> | ||||
r2330 | </div> | |||
r2478 | ||||
Bradley M. Kuhn
|
r4116 | <div style="width:750px; float:left; padding: 10px 0px 0px 20px;margin: 0px 0px 0px 10px; border-left: 1px solid #DDDDDD"> | ||
<%include file="/admin/users/user_edit_${c.active}.html"/> | ||||
r2330 | </div> | |||
</div> | ||||
r3125 | ||||
Thayne Harbaugh
|
r991 | </%def> | ||