annotate rhodecode/templates/admin/users/user_edit_my_account.html @ 718:7df3855bf6c7 beta

Added fork name to journal added account gravatar to my page
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 18 Nov 2010 19:21:24 +0100
parents 52da7cba88a6
children 03c242fbca9c
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">
718
7df3855bf6c7 Added fork name to journal
Marcin Kuzminski <marcin@python-works.com>
parents: 699
diff changeset
27
7df3855bf6c7 Added fork name to journal
Marcin Kuzminski <marcin@python-works.com>
parents: 699
diff changeset
28 <div class="field">
7df3855bf6c7 Added fork name to journal
Marcin Kuzminski <marcin@python-works.com>
parents: 699
diff changeset
29 <div class="gravatar_box">
7df3855bf6c7 Added fork name to journal
Marcin Kuzminski <marcin@python-works.com>
parents: 699
diff changeset
30 <div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(c.user.email)}"/></div>
7df3855bf6c7 Added fork name to journal
Marcin Kuzminski <marcin@python-works.com>
parents: 699
diff changeset
31 <p>
7df3855bf6c7 Added fork name to journal
Marcin Kuzminski <marcin@python-works.com>
parents: 699
diff changeset
32 <strong>Change your avatar at <a href="http://gravatar.com">gravatar.com</a></strong><br/>
7df3855bf6c7 Added fork name to journal
Marcin Kuzminski <marcin@python-works.com>
parents: 699
diff changeset
33 ${_('Using')} ${c.user.email}
7df3855bf6c7 Added fork name to journal
Marcin Kuzminski <marcin@python-works.com>
parents: 699
diff changeset
34 </p>
7df3855bf6c7 Added fork name to journal
Marcin Kuzminski <marcin@python-works.com>
parents: 699
diff changeset
35 </div>
7df3855bf6c7 Added fork name to journal
Marcin Kuzminski <marcin@python-works.com>
parents: 699
diff changeset
36 </div>
7df3855bf6c7 Added fork name to journal
Marcin Kuzminski <marcin@python-works.com>
parents: 699
diff changeset
37
447
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
38 <div class="fields">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
39 <div class="field">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
40 <div class="label">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
41 <label for="username">${_('Username')}:</label>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
42 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
43 <div class="input">
699
52da7cba88a6 Code refactor for auth func, preparing for ldap support
Marcin Kuzminski <marcin@python-works.com>
parents: 698
diff changeset
44 ${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
45 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
46 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
47
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
48 <div class="field">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
49 <div class="label">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
50 <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
51 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
52 <div class="input">
699
52da7cba88a6 Code refactor for auth func, preparing for ldap support
Marcin Kuzminski <marcin@python-works.com>
parents: 698
diff changeset
53 ${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
54 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
55 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
56
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
57 <div class="field">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
58 <div class="label">
697
540545d374fd fixes for #66 renamed name to First Name
Marcin Kuzminski <marcin@python-works.com>
parents: 665
diff changeset
59 <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
60 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
61 <div class="input">
699
52da7cba88a6 Code refactor for auth func, preparing for ldap support
Marcin Kuzminski <marcin@python-works.com>
parents: 698
diff changeset
62 ${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
63 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
64 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
65
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
66 <div class="field">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
67 <div class="label">
697
540545d374fd fixes for #66 renamed name to First Name
Marcin Kuzminski <marcin@python-works.com>
parents: 665
diff changeset
68 <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
69 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
70 <div class="input">
699
52da7cba88a6 Code refactor for auth func, preparing for ldap support
Marcin Kuzminski <marcin@python-works.com>
parents: 698
diff changeset
71 ${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
72 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
73 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
74
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
75 <div class="field">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
76 <div class="label">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
77 <label for="email">${_('Email')}:</label>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
78 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
79 <div class="input">
699
52da7cba88a6 Code refactor for auth func, preparing for ldap support
Marcin Kuzminski <marcin@python-works.com>
parents: 698
diff changeset
80 ${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
81 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
82 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
83
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
84 <div class="buttons">
698
4cd0709b6d4b fixes #65, Added reset buttons to edit forms
Marcin Kuzminski <marcin@python-works.com>
parents: 697
diff changeset
85 ${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
86 ${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
87
4cd0709b6d4b fixes #65, Added reset buttons to edit forms
Marcin Kuzminski <marcin@python-works.com>
parents: 697
diff changeset
88
4cd0709b6d4b fixes #65, Added reset buttons to edit forms
Marcin Kuzminski <marcin@python-works.com>
parents: 697
diff changeset
89
447
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
90 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
91 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
92 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
93 ${h.end_form()}
371
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
94 </div>
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
95 </div>
446
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
96
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
97 <div class="box box-right">
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
98 <!-- box / title -->
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
99 <div class="title">
718
7df3855bf6c7 Added fork name to journal
Marcin Kuzminski <marcin@python-works.com>
parents: 699
diff changeset
100 <h5>${_('My repositories')}
647
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
101 <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
102 </h5>
446
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
103 </div>
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
104 <!-- end box / title -->
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
105 <div class="table">
447
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
106 <table>
663
6199b34d349b fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents: 647
diff changeset
107 <thead>
6199b34d349b fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents: 647
diff changeset
108 <tr>
6199b34d349b fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents: 647
diff changeset
109 <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
110 <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
111 <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
112 </thead>
447
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
113 <tbody>
525
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
114 %if c.user_repos:
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
115 %for repo in c.user_repos:
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
116 <tr>
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
117 <td>
665
070f32743632 Moved out reposcan into hg Model.
Marcin Kuzminski <marcin@python-works.com>
parents: 663
diff changeset
118 %if repo['repo'].dbrepo.repo_type =='hg':
647
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
119 <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
120 %elif repo['repo'].dbrepo.repo_type =='git':
647
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
121 <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
122 %else:
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
123
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
124 %endif
665
070f32743632 Moved out reposcan into hg Model.
Marcin Kuzminski <marcin@python-works.com>
parents: 663
diff changeset
125 %if repo['repo'].dbrepo.private:
525
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
126 <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
127 %else:
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
128 <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
129 %endif
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
130
665
070f32743632 Moved out reposcan into hg Model.
Marcin Kuzminski <marcin@python-works.com>
parents: 663
diff changeset
131 ${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
132 %if repo['repo'].dbrepo.fork:
070f32743632 Moved out reposcan into hg Model.
Marcin Kuzminski <marcin@python-works.com>
parents: 663
diff changeset
133 <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
134 <img class="icon" alt="${_('public')}"
665
070f32743632 Moved out reposcan into hg Model.
Marcin Kuzminski <marcin@python-works.com>
parents: 663
diff changeset
135 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
136 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
137 %endif
6fc59ac322ca added info about forked repository in few places
Marcin Kuzminski <marcin@python-works.com>
parents: 525
diff changeset
138 </td>
665
070f32743632 Moved out reposcan into hg Model.
Marcin Kuzminski <marcin@python-works.com>
parents: 663
diff changeset
139 <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
140 <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
141 <td>
665
070f32743632 Moved out reposcan into hg Model.
Marcin Kuzminski <marcin@python-works.com>
parents: 663
diff changeset
142 ${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
143 ${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
144 ${h.end_form()}
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
145 </td>
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
146 </tr>
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
147 %endfor
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
148 %else:
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
149 ${_('No repositories yet')}
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
150 %if h.HasPermissionAny('hg.admin','hg.create.repository')():
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
151 ${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
152 %endif
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
153 %endif
447
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
154 </tbody>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
155 </table>
446
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
156 </div>
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
157
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
158 </div>
647
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
159 <script type="text/javascript">
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
160 var D = YAHOO.util.Dom;
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
161 var E = YAHOO.util.Event;
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
162 var S = YAHOO.util.Selector;
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
163
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
164 var q_filter = D.get('q_filter');
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
165 var F = YAHOO.namespace('q_filter');
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
166
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
167 E.on(q_filter,'click',function(){
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
168 q_filter.value = '';
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
169 });
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
170
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
171 F.filterTimeout = null;
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
172
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
173 F.updateFilter = function() {
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
174 // Reset timeout
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
175 F.filterTimeout = null;
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 var obsolete = [];
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
178 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
179 var req = D.get('q_filter').value;
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
180 for (n in nodes){
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
181 D.setStyle(nodes[n].parentNode.parentNode,'display','')
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 if (req){
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
184 for (n in nodes){
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
185 if (nodes[n].innerHTML.toLowerCase().indexOf(req) == -1) {
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
186 obsolete.push(nodes[n]);
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
187 }
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
188 }
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
189 if(obsolete){
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
190 for (n in obsolete){
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
191 D.setStyle(obsolete[n].parentNode.parentNode,'display','none');
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
192 }
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
193 }
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
194 }
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
195 }
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
196
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
197 E.on(q_filter,'keyup',function(e){
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
198 clearTimeout(F.filterTimeout);
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
199 setTimeout(F.updateFilter,600);
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
200 });
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
201
5e209dcd3821 Added quickfilter into my account.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
202 </script>
371
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
203 </%def>