Files
@ ef3114b01c7c
Branch filter:
Location: kallithea/rhodecode/templates/admin/users/user_edit_my_account.html - annotation
ef3114b01c7c
6.9 KiB
text/html
fixed issues when urlify commit created empty links when link_ param was empty
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 | 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 a1ec653f5f95 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 f91d3f9b7230 1e757ac98988 1e757ac98988 6b40654afa1e 1e757ac98988 1e757ac98988 f91d3f9b7230 7df3855bf6c7 7df3855bf6c7 7df3855bf6c7 7df3855bf6c7 2196aa27954b 2196aa27954b 2196aa27954b 2196aa27954b 2196aa27954b f91d3f9b7230 7df3855bf6c7 7df3855bf6c7 f91d3f9b7230 716911af91e1 716911af91e1 716911af91e1 716911af91e1 f91d3f9b7230 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 52da7cba88a6 1e757ac98988 1e757ac98988 f91d3f9b7230 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 9c0f5d558789 1e757ac98988 1e757ac98988 f91d3f9b7230 019026a8cf67 019026a8cf67 019026a8cf67 019026a8cf67 019026a8cf67 019026a8cf67 019026a8cf67 019026a8cf67 f91d3f9b7230 1e757ac98988 1e757ac98988 540545d374fd 1e757ac98988 1e757ac98988 52da7cba88a6 1e757ac98988 1e757ac98988 f91d3f9b7230 1e757ac98988 1e757ac98988 540545d374fd 1e757ac98988 1e757ac98988 52da7cba88a6 1e757ac98988 1e757ac98988 f91d3f9b7230 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 52da7cba88a6 1e757ac98988 1e757ac98988 f91d3f9b7230 1e757ac98988 aaec08ad9daf aaec08ad9daf f91d3f9b7230 1e757ac98988 f91d3f9b7230 1e757ac98988 1e757ac98988 f91d3f9b7230 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 f91d3f9b7230 f91d3f9b7230 e0383813f3e2 03c242fbca9c 03c242fbca9c 03c242fbca9c 03c242fbca9c 03c242fbca9c f91d3f9b7230 f91d3f9b7230 f91d3f9b7230 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 6199b34d349b 6199b34d349b 6199b34d349b 6199b34d349b f91d3f9b7230 6199b34d349b 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 f48bce87475b b702d0d4b030 f48bce87475b b702d0d4b030 5e209dcd3821 f91d3f9b7230 f91d3f9b7230 3fc9183e05dd b702d0d4b030 1e757ac98988 b702d0d4b030 1e757ac98988 f91d3f9b7230 2ab211e0aecd 3fc9183e05dd 3fc9183e05dd 1e757ac98988 f91d3f9b7230 61006e29497e f91d3f9b7230 f91d3f9b7230 61006e29497e 61006e29497e 1e757ac98988 2ab211e0aecd 94e9e8605096 f91d3f9b7230 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 019026a8cf67 f91d3f9b7230 1e757ac98988 60a00fd76d58 1e757ac98988 019026a8cf67 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 b1e1dffd595c b1e1dffd595c b1e1dffd595c b1e1dffd595c b1e1dffd595c b1e1dffd595c b1e1dffd595c b1e1dffd595c f91d3f9b7230 | ## -*- coding: utf-8 -*-
<%inherit file="/base/base.html"/>
<%def name="title()">
${_('My account')} ${c.rhodecode_user.username} - ${c.rhodecode_name}
</%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 -->
<div>
${h.form(url('admin_settings_my_account_update'),method='put')}
<div class="form">
<div class="field">
<div class="gravatar_box">
<div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(c.user.email)}"/></div>
<p>
%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
</p>
</div>
</div>
<div class="field">
<div class="label">
<label>${_('API key')}</label> ${c.user.api_key}
</div>
</div>
<div class="fields">
<div class="field">
<div class="label">
<label for="username">${_('Username')}:</label>
</div>
<div class="input">
${h.text('username',class_="medium")}
</div>
</div>
<div class="field">
<div class="label">
<label for="new_password">${_('New password')}:</label>
</div>
<div class="input">
${h.password('new_password',class_="medium",autocomplete="off")}
</div>
</div>
<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>
<div class="field">
<div class="label">
<label for="name">${_('First Name')}:</label>
</div>
<div class="input">
${h.text('name',class_="medium")}
</div>
</div>
<div class="field">
<div class="label">
<label for="lastname">${_('Last Name')}:</label>
</div>
<div class="input">
${h.text('lastname',class_="medium")}
</div>
</div>
<div class="field">
<div class="label">
<label for="email">${_('Email')}:</label>
</div>
<div class="input">
${h.text('email',class_="medium")}
</div>
</div>
<div class="buttons">
${h.submit('save',_('Save'),class_="ui-button")}
${h.reset('reset',_('Reset'),class_="ui-button")}
</div>
</div>
</div>
${h.end_form()}
</div>
</div>
<div class="box box-right">
<!-- box / title -->
<div class="title">
<h5>
<input class="q_filter_box" id="q_filter" size="15" type="text" name="filter" value="${_('quick filter...')}"/>
${_('My repositories')}
</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
</div>
<!-- end box / title -->
<div class="table">
<table>
<thead>
<tr>
<th class="left">${_('Name')}</th>
<th class="left">${_('revision')}</th>
<th colspan="2" class="left">${_('action')}</th>
</thead>
<tbody>
%if c.user_repos:
%for repo in c.user_repos:
<tr>
<td>
%if h.is_hg(repo['dbrepo']['repo_type']):
<img class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="${h.url('/images/icons/hgicon.png')}"/>
%elif h.is_git(repo['dbrepo']['repo_type']):
<img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="${h.url('/images/icons/giticon.png')}"/>
%else:
%endif
%if repo['dbrepo']['private']:
<img class="icon" alt="${_('private')}" src="${h.url('/images/icons/lock.png')}"/>
%else:
<img class="icon" alt="${_('public')}" src="${h.url('/images/icons/lock_open.png')}"/>
%endif
${h.link_to(repo['name'], h.url('summary_home',repo_name=repo['name']),class_="repo_name")}
%if repo['dbrepo_fork']:
<a href="${h.url('summary_home',repo_name=repo['dbrepo_fork']['repo_name'])}">
<img class="icon" alt="${_('public')}"
title="${_('Fork of')} ${repo['dbrepo_fork']['repo_name']}"
src="${h.url('/images/icons/arrow_divide.png')}"/></a>
%endif
</td>
<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>
<td>
${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: %s') % repo['name']+"');")}
${h.end_form()}
</td>
</tr>
%endfor
%else:
<div style="padding:5px 0px 10px 0px;">
${_('No repositories yet')}
%if h.HasPermissionAny('hg.admin','hg.create.repository')():
${h.link_to(_('create one now'),h.url('admin_settings_create_repository'),class_="ui-btn")}
%endif
</div>
%endif
</tbody>
</table>
</div>
</div>
<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>
</%def>
|