annotate rhodecode/templates/admin/users/user_edit_my_account.html @ 699:52da7cba88a6 beta

Code refactor for auth func, preparing for ldap support css updates. turned off graph,and branches for git changelog
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 16 Nov 2010 08:52:31 +0100
parents 4cd0709b6d4b
children 7df3855bf6c7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
371
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
1 ## -*- coding: utf-8 -*-
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
2 <%inherit file="/base/base.html"/>
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
3
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
4 <%def name="title()">
619
a1ec653f5f95 #38 updated RhodeCode titles
Marcin Kuzminski <marcin@python-works.com>
parents: 548
diff changeset
5 ${_('My account')} ${c.rhodecode_user.username} - ${c.rhodecode_name}
371
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
6 </%def>
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
7
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
8 <%def name="breadcrumbs_links()">
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
9 ${_('My Account')}
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
10 </%def>
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
11
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
12 <%def name="page_nav()">
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
13 ${self.menu('admin')}
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
14 </%def>
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
15
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
16 <%def name="main()">
447
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
17
446
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
18 <div class="box box-left">
371
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
19 <!-- box / title -->
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
20 <div class="title">
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
21 ${self.breadcrumbs()}
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
22 </div>
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
23 <!-- end box / title -->
447
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
24 <div class="ui-tabs-panel ui-widget-content ui-corner-bottom">
371
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
25 ${h.form(url('admin_settings_my_account_update'),method='put')}
447
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
26 <div class="form">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
27 <div class="fields">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
28 <div class="field">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
29 <div class="label">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
30 <label for="username">${_('Username')}:</label>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
31 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
32 <div class="input">
699
52da7cba88a6 Code refactor for auth func, preparing for ldap support
Marcin Kuzminski <marcin@python-works.com>
parents: 698
diff changeset
33 ${h.text('username',class_="medium")}
447
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
34 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
35 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
36
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
37 <div class="field">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
38 <div class="label">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
39 <label for="new_password">${_('New password')}:</label>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
40 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
41 <div class="input">
699
52da7cba88a6 Code refactor for auth func, preparing for ldap support
Marcin Kuzminski <marcin@python-works.com>
parents: 698
diff changeset
42 ${h.password('new_password',class_="medium")}
447
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
43 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
44 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
45
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
46 <div class="field">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
47 <div class="label">
697
540545d374fd fixes for #66 renamed name to First Name
Marcin Kuzminski <marcin@python-works.com>
parents: 665
diff changeset
48 <label for="name">${_('First Name')}:</label>
447
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
49 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
50 <div class="input">
699
52da7cba88a6 Code refactor for auth func, preparing for ldap support
Marcin Kuzminski <marcin@python-works.com>
parents: 698
diff changeset
51 ${h.text('name',class_="medium")}
447
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
52 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
53 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
54
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
55 <div class="field">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
56 <div class="label">
697
540545d374fd fixes for #66 renamed name to First Name
Marcin Kuzminski <marcin@python-works.com>
parents: 665
diff changeset
57 <label for="lastname">${_('Last Name')}:</label>
447
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
58 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
59 <div class="input">
699
52da7cba88a6 Code refactor for auth func, preparing for ldap support
Marcin Kuzminski <marcin@python-works.com>
parents: 698
diff changeset
60 ${h.text('lastname',class_="medium")}
447
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
61 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
62 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
63
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
64 <div class="field">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
65 <div class="label">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
66 <label for="email">${_('Email')}:</label>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
67 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
68 <div class="input">
699
52da7cba88a6 Code refactor for auth func, preparing for ldap support
Marcin Kuzminski <marcin@python-works.com>
parents: 698
diff changeset
69 ${h.text('email',class_="medium")}
447
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
70 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
71 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
72
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
73 <div class="buttons">
698
4cd0709b6d4b fixes #65, Added reset buttons to edit forms
Marcin Kuzminski <marcin@python-works.com>
parents: 697
diff changeset
74 ${h.submit('save','Save',class_="ui-button ui-widget ui-state-default ui-corner-all")}
4cd0709b6d4b fixes #65, Added reset buttons to edit forms
Marcin Kuzminski <marcin@python-works.com>
parents: 697
diff changeset
75 ${h.reset('reset','Reset',class_="ui-button ui-widget ui-state-default ui-corner-all")}
4cd0709b6d4b fixes #65, Added reset buttons to edit forms
Marcin Kuzminski <marcin@python-works.com>
parents: 697
diff changeset
76
4cd0709b6d4b fixes #65, Added reset buttons to edit forms
Marcin Kuzminski <marcin@python-works.com>
parents: 697
diff changeset
77
4cd0709b6d4b fixes #65, Added reset buttons to edit forms
Marcin Kuzminski <marcin@python-works.com>
parents: 697
diff changeset
78
447
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
79 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
80 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
81 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
82 ${h.end_form()}
371
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
83 </div>
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
84 </div>
446
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
85
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
86 <div class="box box-right">
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
87 <!-- box / title -->
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
88 <div class="title">
647
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
89 <h5>${_('My repositories')}
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
90 <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...')}"/>
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
91 </h5>
446
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
92 </div>
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
93 <!-- end box / title -->
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
94 <div class="table">
447
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
95 <table>
663
6199b34d349b fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents: 647
diff changeset
96 <thead>
6199b34d349b fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents: 647
diff changeset
97 <tr>
6199b34d349b fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents: 647
diff changeset
98 <th class="left">${_('Name')}</th>
6199b34d349b fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents: 647
diff changeset
99 <th class="left">${_('revision')}</th>
6199b34d349b fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents: 647
diff changeset
100 <th colspan="2" class="left">${_('action')}</th>
6199b34d349b fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents: 647
diff changeset
101 </thead>
447
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
102 <tbody>
525
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
103 %if c.user_repos:
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
104 %for repo in c.user_repos:
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
105 <tr>
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
106 <td>
665
070f32743632 Moved out reposcan into hg Model.
Marcin Kuzminski <marcin@python-works.com>
parents: 663
diff changeset
107 %if repo['repo'].dbrepo.repo_type =='hg':
647
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
108 <img class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="/images/icons/hgicon.png"/>
665
070f32743632 Moved out reposcan into hg Model.
Marcin Kuzminski <marcin@python-works.com>
parents: 663
diff changeset
109 %elif repo['repo'].dbrepo.repo_type =='git':
647
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
110 <img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="/images/icons/giticon.png"/>
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
111 %else:
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
112
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
113 %endif
665
070f32743632 Moved out reposcan into hg Model.
Marcin Kuzminski <marcin@python-works.com>
parents: 663
diff changeset
114 %if repo['repo'].dbrepo.private:
525
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
115 <img class="icon" alt="${_('private')}" src="/images/icons/lock.png"/>
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
116 %else:
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
117 <img class="icon" alt="${_('public')}" src="/images/icons/lock_open.png"/>
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
118 %endif
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
119
665
070f32743632 Moved out reposcan into hg Model.
Marcin Kuzminski <marcin@python-works.com>
parents: 663
diff changeset
120 ${h.link_to(repo['repo'].name, h.url('summary_home',repo_name=repo['repo'].name),class_="repo_name")}
070f32743632 Moved out reposcan into hg Model.
Marcin Kuzminski <marcin@python-works.com>
parents: 663
diff changeset
121 %if repo['repo'].dbrepo.fork:
070f32743632 Moved out reposcan into hg Model.
Marcin Kuzminski <marcin@python-works.com>
parents: 663
diff changeset
122 <a href="${h.url('summary_home',repo_name=repo['repo'].dbrepo.fork.repo_name)}">
531
6fc59ac322ca added info about forked repository in few places
Marcin Kuzminski <marcin@python-works.com>
parents: 525
diff changeset
123 <img class="icon" alt="${_('public')}"
665
070f32743632 Moved out reposcan into hg Model.
Marcin Kuzminski <marcin@python-works.com>
parents: 663
diff changeset
124 title="${_('Fork of')} ${repo['repo'].dbrepo.fork.repo_name}"
531
6fc59ac322ca added info about forked repository in few places
Marcin Kuzminski <marcin@python-works.com>
parents: 525
diff changeset
125 src="/images/icons/arrow_divide.png"/></a>
6fc59ac322ca added info about forked repository in few places
Marcin Kuzminski <marcin@python-works.com>
parents: 525
diff changeset
126 %endif
6fc59ac322ca added info about forked repository in few places
Marcin Kuzminski <marcin@python-works.com>
parents: 525
diff changeset
127 </td>
665
070f32743632 Moved out reposcan into hg Model.
Marcin Kuzminski <marcin@python-works.com>
parents: 663
diff changeset
128 <td><span class="tooltip" 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>
070f32743632 Moved out reposcan into hg Model.
Marcin Kuzminski <marcin@python-works.com>
parents: 663
diff changeset
129 <td><a href="${h.url('repo_settings_home',repo_name=repo['repo'].name)}" title="${_('edit')}"><img class="icon" alt="${_('private')}" src="/images/icons/application_form_edit.png"/></a></td>
525
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
130 <td>
665
070f32743632 Moved out reposcan into hg Model.
Marcin Kuzminski <marcin@python-works.com>
parents: 663
diff changeset
131 ${h.form(url('repo_settings_delete', repo_name=repo['repo'].name),method='delete')}
070f32743632 Moved out reposcan into hg Model.
Marcin Kuzminski <marcin@python-works.com>
parents: 663
diff changeset
132 ${h.submit('remove_%s' % repo['repo'].name,'',class_="delete_icon action_button",onclick="return confirm('Confirm to delete this repository');")}
525
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
133 ${h.end_form()}
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
134 </td>
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
135 </tr>
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
136 %endfor
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
137 %else:
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
138 ${_('No repositories yet')}
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
139 %if h.HasPermissionAny('hg.admin','hg.create.repository')():
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
140 ${h.link_to(_('create one now'),h.url('admin_settings_create_repository'))}
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
141 %endif
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
142 %endif
447
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
143 </tbody>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
144 </table>
446
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
145 </div>
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
146
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
147 </div>
647
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
148 <script type="text/javascript">
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
149 var D = YAHOO.util.Dom;
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
150 var E = YAHOO.util.Event;
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
151 var S = YAHOO.util.Selector;
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
152
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
153 var q_filter = D.get('q_filter');
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
154 var F = YAHOO.namespace('q_filter');
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
155
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
156 E.on(q_filter,'click',function(){
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
157 q_filter.value = '';
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
158 });
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
159
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
160 F.filterTimeout = null;
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
161
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
162 F.updateFilter = function() {
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
163 // Reset timeout
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
164 F.filterTimeout = null;
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
165
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
166 var obsolete = [];
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
167 var nodes = S.query('div.table tr td a.repo_name');
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
168 var req = D.get('q_filter').value;
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
169 for (n in nodes){
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
170 D.setStyle(nodes[n].parentNode.parentNode,'display','')
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
171 }
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
172 if (req){
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
173 for (n in nodes){
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
174 if (nodes[n].innerHTML.toLowerCase().indexOf(req) == -1) {
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
175 obsolete.push(nodes[n]);
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
176 }
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
177 }
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
178 if(obsolete){
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
179 for (n in obsolete){
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
180 D.setStyle(obsolete[n].parentNode.parentNode,'display','none');
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
181 }
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
182 }
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
183 }
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
184 }
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
185
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
186 E.on(q_filter,'keyup',function(e){
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
187 clearTimeout(F.filterTimeout);
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
188 setTimeout(F.updateFilter,600);
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
189 });
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
190
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
191 </script>
371
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
192 </%def>