Mercurial > kallithea
comparison rhodecode/templates/admin/users/user_edit_my_account.html @ 1513:12946daf44f9
fixed template after merge
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 07 Oct 2011 01:13:36 +0200 |
parents | bf263968da47 |
children | 95c3e33ef32e |
comparison
equal
deleted
inserted
replaced
1512:bf263968da47 | 1513:12946daf44f9 |
---|---|
1 ## -*- coding: utf-8 -*- | 1 ## -*- coding: utf-8 -*- |
2 <%inherit file="/base/base.html"/> | |
3 | |
4 <%def name="title()"> | |
5 ${_('My account')} ${c.rhodecode_user.username} - ${c.rhodecode_name} | |
6 </%def> | |
7 | |
8 <%def name="breadcrumbs_links()"> | |
9 ${_('My Account')} | |
10 </%def> | |
11 | |
12 <%def name="page_nav()"> | |
13 ${self.menu('admin')} | |
14 </%def> | |
15 | |
16 <%def name="main()"> | |
17 | |
18 <div class="box box-left"> | |
19 <!-- box / title --> | |
20 <div class="title"> | |
21 ${self.breadcrumbs()} | |
22 </div> | |
23 <!-- end box / title --> | |
24 <div class="ui-tabs-panel ui-widget-content ui-corner-bottom"> | |
25 ${h.form(url('admin_settings_my_accou## -*- coding: utf-8 -*- | |
26 <%inherit file="/base/base.html"/> | 2 <%inherit file="/base/base.html"/> |
27 | 3 |
28 <%def name="title()"> | 4 <%def name="title()"> |
29 ${_('My account')} ${c.rhodecode_user.username} - ${c.rhodecode_name} | 5 ${_('My account')} ${c.rhodecode_user.username} - ${c.rhodecode_name} |
30 </%def> | 6 </%def> |
231 F.filterTimeout = setTimeout(F.updateFilter,600); | 207 F.filterTimeout = setTimeout(F.updateFilter,600); |
232 }); | 208 }); |
233 | 209 |
234 </script> | 210 </script> |
235 </%def> | 211 </%def> |
236 nt_update'),method='put')} | |
237 <div class="form"> | |
238 | |
239 <div class="field"> | |
240 <div class="gravatar_box"> | |
241 <div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(c.user.email)}"/></div> | |
242 <p> | |
243 <strong>Change your avatar at <a href="http://gravatar.com">gravatar.com</a></strong><br/> | |
244 ${_('Using')} ${c.user.email} | |
245 </p> | |
246 </div> | |
247 </div> | |
248 | |
249 <div class="fields"> | |
250 <div class="field"> | |
251 <div class="label"> | |
252 <label for="username">${_('Username')}:</label> | |
253 </div> | |
254 <div class="input"> | |
255 ${h.text('username',class_="medium")} | |
256 </div> | |
257 </div> | |
258 | |
259 <div class="field"> | |
260 <div class="label"> | |
261 <label for="new_password">${_('New password')}:</label> | |
262 </div> | |
263 <div class="input"> | |
264 ${h.password('new_password',class_="medium")} | |
265 </div> | |
266 </div> | |
267 | |
268 <div class="field"> | |
269 <div class="label"> | |
270 <label for="name">${_('First Name')}:</label> | |
271 </div> | |
272 <div class="input"> | |
273 ${h.text('name',class_="medium")} | |
274 </div> | |
275 </div> | |
276 | |
277 <div class="field"> | |
278 <div class="label"> | |
279 <label for="lastname">${_('Last Name')}:</label> | |
280 </div> | |
281 <div class="input"> | |
282 ${h.text('lastname',class_="medium")} | |
283 </div> | |
284 </div> | |
285 | |
286 <div class="field"> | |
287 <div class="label"> | |
288 <label for="email">${_('Email')}:</label> | |
289 </div> | |
290 <div class="input"> | |
291 ${h.text('email',class_="medium")} | |
292 </div> | |
293 </div> | |
294 | |
295 <div class="buttons"> | |
296 ${h.submit('save','Save',class_="ui-button ui-widget ui-state-default ui-corner-all")} | |
297 ${h.reset('reset','Reset',class_="ui-button ui-widget ui-state-default ui-corner-all")} | |
298 | |
299 | |
300 | |
301 </div> | |
302 </div> | |
303 </div> | |
304 ${h.end_form()} | |
305 </div> | |
306 </div> | |
307 | |
308 <div class="box box-right"> | |
309 <!-- box / title --> | |
310 <div class="title"> | |
311 <h5>${_('My repositories')} | |
312 <input class="top-right-rounded-corner top-left-rounded-corner bottom-left-rounded-corner bottom-right-rounded-corner" id="q_filter" size="15" type="text" name="filter" value="${_('quick filter...')}"/> | |
313 </h5> | |
314 %if h.HasPermissionAny('hg.admin','hg.create.repository')(): | |
315 <ul class="links"> | |
316 <li> | |
317 <span>${h.link_to(_('ADD REPOSITORY'),h.url('admin_settings_create_repository'))}</span> | |
318 </li> | |
319 </ul> | |
320 %endif | |
321 </div> | |
322 <!-- end box / title --> | |
323 <div class="table"> | |
324 <table> | |
325 <thead> | |
326 <tr> | |
327 <th class="left">${_('Name')}</th> | |
328 <th class="left">${_('revision')}</th> | |
329 <th colspan="2" class="left">${_('action')}</th> | |
330 </thead> | |
331 <tbody> | |
332 %if c.user_repos: | |
333 %for repo in c.user_repos: | |
334 <tr> | |
335 <td> | |
336 %if repo['repo'].dbrepo.repo_type =='hg': | |
337 <img class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="${h.url("/images/icons/hgicon.png")}"/> | |
338 %elif repo['repo'].dbrepo.repo_type =='git': | |
339 <img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="${h.url("/images/icons/giticon.png")}"/> | |
340 %else: | |
341 | |
342 %endif | |
343 %if repo['repo'].dbrepo.private: | |
344 <img class="icon" alt="${_('private')}" src="${h.url("/images/icons/lock.png")}"/> | |
345 %else: | |
346 <img class="icon" alt="${_('public')}" src="${h.url("/images/icons/lock_open.png")}"/> | |
347 %endif | |
348 | |
349 ${h.link_to(repo['repo'].name, h.url('summary_home',repo_name=repo['repo'].name),class_="repo_name")} | |
350 %if repo['repo'].dbrepo.fork: | |
351 <a href="${h.url('summary_home',repo_name=repo['repo'].dbrepo.fork.repo_name)}"> | |
352 <img class="icon" alt="${_('public')}" | |
353 title="${_('Fork of')} ${repo['repo'].dbrepo.fork.repo_name}" | |
354 src="${h.url("/images/icons/arrow_divide.png")}"/></a> | |
355 %endif | |
356 </td> | |
357 <td><span class="tooltip" title="${repo['repo'].last_change}">${("r%s:%s") % (h.get_changeset_safe(repo['repo'],'tip').revision,h.short_id(h.get_changeset_safe(repo['repo'],'tip').raw_id))}</span></td> | |
358 <td><a href="${h.url('repo_settings_home',repo_name=repo['repo'].name)}" title="${_('edit')}"><img class="icon" alt="${_('private')}" src="${h.url("/images/icons/application_form_edit.png")}"/></a></td> | |
359 <td> | |
360 ${h.form(url('repo_settings_delete', repo_name=repo['repo'].name),method='delete')} | |
361 ${h.submit('remove_%s' % repo['repo'].name,'',class_="delete_icon action_button",onclick="return confirm('Confirm to delete this repository');")} | |
362 ${h.end_form()} | |
363 </td> | |
364 </tr> | |
365 %endfor | |
366 %else: | |
367 ${_('No repositories yet')} | |
368 %if h.HasPermissionAny('hg.admin','hg.create.repository')(): | |
369 ${h.link_to(_('create one now'),h.url('admin_settings_create_repository'))} | |
370 %endif | |
371 %endif | |
372 </tbody> | |
373 </table> | |
374 </div> | |
375 | |
376 </div> | |
377 <script type="text/javascript"> | |
378 var D = YAHOO.util.Dom; | |
379 var E = YAHOO.util.Event; | |
380 var S = YAHOO.util.Selector; | |
381 | |
382 var q_filter = D.get('q_filter'); | |
383 var F = YAHOO.namespace('q_filter'); | |
384 | |
385 E.on(q_filter,'click',function(){ | |
386 q_filter.value = ''; | |
387 }); | |
388 | |
389 F.filterTimeout = null; | |
390 | |
391 F.updateFilter = function() { | |
392 // Reset timeout | |
393 F.filterTimeout = null; | |
394 | |
395 var obsolete = []; | |
396 var nodes = S.query('div.table tr td a.repo_name'); | |
397 var req = D.get('q_filter').value; | |
398 for (n in nodes){ | |
399 D.setStyle(nodes[n].parentNode.parentNode,'display','') | |
400 } | |
401 if (req){ | |
402 for (n in nodes){ | |
403 if (nodes[n].innerHTML.toLowerCase().indexOf(req) == -1) { | |
404 obsolete.push(nodes[n]); | |
405 } | |
406 } | |
407 if(obsolete){ | |
408 for (n in obsolete){ | |
409 D.setStyle(obsolete[n].parentNode.parentNode,'display','none'); | |
410 } | |
411 } | |
412 } | |
413 } | |
414 | |
415 E.on(q_filter,'keyup',function(e){ | |
416 clearTimeout(F.filterTimeout); | |
417 setTimeout(F.updateFilter,600); | |
418 }); | |
419 | |
420 </script> | |
421 </%def> |