user_edit_my_account.html
190 lines
| 7.1 KiB
| text/html
|
HtmlLexer
r547 | ## -*- coding: utf-8 -*- | |||
<%inherit file="/base/base.html"/> | ||||
<%def name="title()"> | ||||
r619 | ${_('My account')} ${c.rhodecode_user.username} - ${c.rhodecode_name} | |||
r547 | </%def> | |||
<%def name="breadcrumbs_links()"> | ||||
${_('My Account')} | ||||
</%def> | ||||
<%def name="page_nav()"> | ||||
${self.menu('admin')} | ||||
</%def> | ||||
<%def name="main()"> | ||||
<div class="box box-left"> | ||||
<!-- box / title --> | ||||
<div class="title"> | ||||
${self.breadcrumbs()} | ||||
</div> | ||||
<!-- end box / title --> | ||||
r888 | <div> | |||
r547 | ${h.form(url('admin_settings_my_account_update'),method='put')} | |||
<div class="form"> | ||||
r718 | ||||
<div class="field"> | ||||
<div class="gravatar_box"> | ||||
<div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(c.user.email)}"/></div> | ||||
<p> | ||||
r1629 | %if c.use_gravatar: | |||
<strong>${_('Change your avatar at')} <a href="http://gravatar.com">gravatar.com</a></strong> | ||||
<br/>${_('Using')} ${c.user.email} | ||||
%else: | ||||
<br/>${c.user.email} | ||||
%endif | ||||
r718 | </p> | |||
</div> | ||||
</div> | ||||
r1116 | <div class="field"> | |||
<div class="label"> | ||||
<label>${_('API key')}</label> ${c.user.api_key} | ||||
</div> | ||||
</div> | ||||
r547 | <div class="fields"> | |||
<div class="field"> | ||||
<div class="label"> | ||||
<label for="username">${_('Username')}:</label> | ||||
</div> | ||||
<div class="input"> | ||||
r699 | ${h.text('username',class_="medium")} | |||
r547 | </div> | |||
</div> | ||||
<div class="field"> | ||||
<div class="label"> | ||||
<label for="new_password">${_('New password')}:</label> | ||||
</div> | ||||
<div class="input"> | ||||
r1366 | ${h.password('new_password',class_="medium",autocomplete="off")} | |||
r547 | </div> | |||
</div> | ||||
r1597 | ||||
<div class="field"> | ||||
<div class="label"> | ||||
<label for="password_confirmation">${_('New password confirmation')}:</label> | ||||
</div> | ||||
<div class="input"> | ||||
${h.password('password_confirmation',class_="medium",autocomplete="off")} | ||||
</div> | ||||
</div> | ||||
r547 | <div class="field"> | |||
<div class="label"> | ||||
r697 | <label for="name">${_('First Name')}:</label> | |||
r547 | </div> | |||
<div class="input"> | ||||
r699 | ${h.text('name',class_="medium")} | |||
r547 | </div> | |||
</div> | ||||
<div class="field"> | ||||
<div class="label"> | ||||
r697 | <label for="lastname">${_('Last Name')}:</label> | |||
r547 | </div> | |||
<div class="input"> | ||||
r699 | ${h.text('lastname',class_="medium")} | |||
r547 | </div> | |||
</div> | ||||
<div class="field"> | ||||
<div class="label"> | ||||
<label for="email">${_('Email')}:</label> | ||||
</div> | ||||
<div class="input"> | ||||
r699 | ${h.text('email',class_="medium")} | |||
r547 | </div> | |||
</div> | ||||
<div class="buttons"> | ||||
Augusto Herrmann
|
r1472 | ${h.submit('save',_('Save'),class_="ui-button")} | ||
${h.reset('reset',_('Reset'),class_="ui-button")} | ||||
r547 | </div> | |||
</div> | ||||
</div> | ||||
${h.end_form()} | ||||
</div> | ||||
</div> | ||||
<div class="box box-right"> | ||||
<!-- box / title --> | ||||
<div class="title"> | ||||
r1650 | <h5> | |||
r1653 | <input class="q_filter_box" id="q_filter" size="15" type="text" name="filter" value="${_('quick filter...')}"/> | |||
r1650 | ${_('My repositories')} | |||
r766 | </h5> | |||
%if h.HasPermissionAny('hg.admin','hg.create.repository')(): | ||||
<ul class="links"> | ||||
<li> | ||||
<span>${h.link_to(_('ADD REPOSITORY'),h.url('admin_settings_create_repository'))}</span> | ||||
</li> | ||||
</ul> | ||||
%endif | ||||
r547 | </div> | |||
<!-- end box / title --> | ||||
<div class="table"> | ||||
<table> | ||||
r663 | <thead> | |||
<tr> | ||||
<th class="left">${_('Name')}</th> | ||||
<th class="left">${_('revision')}</th> | ||||
<th colspan="2" class="left">${_('action')}</th> | ||||
</thead> | ||||
r547 | <tbody> | |||
%if c.user_repos: | ||||
%for repo in c.user_repos: | ||||
<tr> | ||||
<td> | ||||
r1045 | %if repo['dbrepo']['repo_type'] =='hg': | |||
r1701 | <img class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="${h.url('/images/icons/hgicon.png')}"/> | |||
r1045 | %elif repo['dbrepo']['repo_type'] =='git': | |||
r1701 | <img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="${h.url('/images/icons/giticon.png')}"/> | |||
r647 | %else: | |||
%endif | ||||
r1045 | %if repo['dbrepo']['private']: | |||
r1701 | <img class="icon" alt="${_('private')}" src="${h.url('/images/icons/lock.png')}"/> | |||
r547 | %else: | |||
r1701 | <img class="icon" alt="${_('public')}" src="${h.url('/images/icons/lock_open.png')}"/> | |||
r547 | %endif | |||
r1171 | ${h.link_to(repo['name'], h.url('summary_home',repo_name=repo['name']),class_="repo_name")} | |||
r1045 | %if repo['dbrepo_fork']: | |||
<a href="${h.url('summary_home',repo_name=repo['dbrepo_fork']['repo_name'])}"> | ||||
r547 | <img class="icon" alt="${_('public')}" | |||
r1045 | title="${_('Fork of')} ${repo['dbrepo_fork']['repo_name']}" | |||
r1469 | src="${h.url('/images/icons/arrow_divide.png')}"/></a> | |||
r547 | %endif | |||
</td> | ||||
r1469 | <td><span class="tooltip" title="${repo['last_change']}">${("r%s:%s") % (repo['rev'],h.short_id(repo['tip']))}</span></td> | |||
<td><a href="${h.url('repo_settings_home',repo_name=repo['name'])}" title="${_('edit')}"><img class="icon" alt="${_('private')}" src="${h.url('/images/icons/application_form_edit.png')}"/></a></td> | ||||
r547 | <td> | |||
r1171 | ${h.form(url('repo_settings_delete', repo_name=repo['name']),method='delete')} | |||
${h.submit('remove_%s' % repo['name'],'',class_="delete_icon action_button",onclick="return confirm('Confirm to delete this repository');")} | ||||
r547 | ${h.end_form()} | |||
</td> | ||||
</tr> | ||||
%endfor | ||||
%else: | ||||
r1597 | <div style="padding:5px 0px 10px 0px;"> | |||
r547 | ${_('No repositories yet')} | |||
%if h.HasPermissionAny('hg.admin','hg.create.repository')(): | ||||
r1756 | ${h.link_to(_('create one now'),h.url('admin_settings_create_repository'),class_="ui-btn")} | |||
r547 | %endif | |||
r1597 | </div> | |||
r547 | %endif | |||
</tbody> | ||||
</table> | ||||
</div> | ||||
</div> | ||||
r1653 | <script type="text/javascript"> | |||
var nodes = YUQ('div.table tr td a.repo_name'); | ||||
var target = 'q_filter'; | ||||
var func = function(node){ | ||||
return node.parentNode.parentNode; | ||||
} | ||||
q_filter(target,nodes,func); | ||||
</script> | ||||
Augusto Herrmann
|
r1472 | </%def> | ||