annotate rhodecode/templates/admin/repos/repo_edit.html @ 810:bd57d1cb9dc3 beta

fixes #62, added option to disable statistics for each repository
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 05 Dec 2010 15:47:49 +0100
parents b9bbc0d6e9f3
children 6b40654afa1e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
216
c8162373f214 Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
Marcin Kuzminski <marcin@python-works.com>
parents: 182
diff changeset
1 ## -*- coding: utf-8 -*-
c8162373f214 Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
Marcin Kuzminski <marcin@python-works.com>
parents: 182
diff changeset
2 <%inherit file="/base/base.html"/>
c8162373f214 Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
Marcin Kuzminski <marcin@python-works.com>
parents: 182
diff changeset
3
48
8e250e86a670 Css fixes, implemented removal of users, and display draft
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
4 <%def name="title()">
619
a1ec653f5f95 #38 updated RhodeCode titles
Marcin Kuzminski <marcin@python-works.com>
parents: 581
diff changeset
5 ${_('Edit repository')} ${c.repo_info.repo_name} - ${c.rhodecode_name}
48
8e250e86a670 Css fixes, implemented removal of users, and display draft
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
6 </%def>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
7
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
8 <%def name="breadcrumbs_links()">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
9 ${h.link_to(_('Admin'),h.url('admin_home'))}
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
10 &raquo;
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
11 ${h.link_to(_('Repositories'),h.url('repos'))}
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
12 &raquo;
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
13 ${_('edit')} "${c.repo_name}"
48
8e250e86a670 Css fixes, implemented removal of users, and display draft
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
14 </%def>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
15
48
8e250e86a670 Css fixes, implemented removal of users, and display draft
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
16 <%def name="page_nav()">
182
11e8eb5a92e3 new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents: 174
diff changeset
17 ${self.menu('admin')}
48
8e250e86a670 Css fixes, implemented removal of users, and display draft
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
18 </%def>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
19
48
8e250e86a670 Css fixes, implemented removal of users, and display draft
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
20 <%def name="main()">
699
52da7cba88a6 Code refactor for auth func, preparing for ldap support
Marcin Kuzminski <marcin@python-works.com>
parents: 698
diff changeset
21 <div class="box box-left">
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
22 <!-- box / title -->
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
23 <div class="title">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
24 ${self.breadcrumbs()}
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
25 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
26 ${h.form(url('repo', repo_name=c.repo_info.repo_name),method='put')}
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
27 <div class="form">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
28 <!-- fields -->
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
29 <div class="fields">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
30 <div class="field">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
31 <div class="label">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
32 <label for="repo_name">${_('Name')}:</label>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
33 </div>
703
9c1ed03ef5db Small templates update
Marcin Kuzminski <marcin@python-works.com>
parents: 699
diff changeset
34 <div class="input">
699
52da7cba88a6 Code refactor for auth func, preparing for ldap support
Marcin Kuzminski <marcin@python-works.com>
parents: 698
diff changeset
35 ${h.text('repo_name',class_="medium")}
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
36 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
37 </div>
659
758f64f3fbda extended repo creation by repo type. fixed fork creation to maintain repo type.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
38 <div class="field">
758f64f3fbda extended repo creation by repo type. fixed fork creation to maintain repo type.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
39 <div class="label">
758f64f3fbda extended repo creation by repo type. fixed fork creation to maintain repo type.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
40 <label for="repo_type">${_('Type')}:</label>
758f64f3fbda extended repo creation by repo type. fixed fork creation to maintain repo type.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
41 </div>
758f64f3fbda extended repo creation by repo type. fixed fork creation to maintain repo type.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
42 <div class="input">
699
52da7cba88a6 Code refactor for auth func, preparing for ldap support
Marcin Kuzminski <marcin@python-works.com>
parents: 698
diff changeset
43 ${h.select('repo_type','hg',c.backends,class_="medium")}
659
758f64f3fbda extended repo creation by repo type. fixed fork creation to maintain repo type.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
44 </div>
758f64f3fbda extended repo creation by repo type. fixed fork creation to maintain repo type.
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
45 </div>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
46 <div class="field">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
47 <div class="label label-textarea">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
48 <label for="description">${_('Description')}:</label>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
49 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
50 <div class="textarea text-area editor">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
51 ${h.textarea('description',cols=23,rows=5)}
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
52 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
53 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
54
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
55 <div class="field">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
56 <div class="label label-checkbox">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
57 <label for="private">${_('Private')}:</label>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
58 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
59 <div class="checkboxes">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
60 ${h.checkbox('private',value="True")}
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
61 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
62 </div>
810
bd57d1cb9dc3 fixes #62, added option to disable statistics for each repository
Marcin Kuzminski <marcin@python-works.com>
parents: 708
diff changeset
63 <div class="field">
bd57d1cb9dc3 fixes #62, added option to disable statistics for each repository
Marcin Kuzminski <marcin@python-works.com>
parents: 708
diff changeset
64 <div class="label label-checkbox">
bd57d1cb9dc3 fixes #62, added option to disable statistics for each repository
Marcin Kuzminski <marcin@python-works.com>
parents: 708
diff changeset
65 <label for="enable_statistics">${_('Enable statistics')}:</label>
bd57d1cb9dc3 fixes #62, added option to disable statistics for each repository
Marcin Kuzminski <marcin@python-works.com>
parents: 708
diff changeset
66 </div>
bd57d1cb9dc3 fixes #62, added option to disable statistics for each repository
Marcin Kuzminski <marcin@python-works.com>
parents: 708
diff changeset
67 <div class="checkboxes">
bd57d1cb9dc3 fixes #62, added option to disable statistics for each repository
Marcin Kuzminski <marcin@python-works.com>
parents: 708
diff changeset
68 ${h.checkbox('enable_statistics',value="True")}
bd57d1cb9dc3 fixes #62, added option to disable statistics for each repository
Marcin Kuzminski <marcin@python-works.com>
parents: 708
diff changeset
69 </div>
bd57d1cb9dc3 fixes #62, added option to disable statistics for each repository
Marcin Kuzminski <marcin@python-works.com>
parents: 708
diff changeset
70 </div>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
71 <div class="field">
581
136ad719d9e2 fixed bug when autocomplete could not display names (hidden by div)
Marcin Kuzminski <marcin@python-works.com>
parents: 562
diff changeset
72 <div class="label">
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
73 <label for="user">${_('Owner')}:</label>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
74 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
75 <div class="input input-small ac">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
76 <div class="perm_ac">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
77 ${h.text('user',class_='yui-ac-input')}
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
78 <div id="owner_container"></div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
79 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
80 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
81 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
82
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
83 <div class="field">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
84 <div class="label">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
85 <label for="input">${_('Permissions')}:</label>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
86 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
87 <div class="input">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
88 <table id="permissions_manage">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
89 <tr>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
90 <td>${_('none')}</td>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
91 <td>${_('read')}</td>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
92 <td>${_('write')}</td>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
93 <td>${_('admin')}</td>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
94 <td>${_('user')}</td>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
95 <td></td>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
96 </tr>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
97
399
f5c1eec9f376 rename repo2perm into repo_to_perm
Marcin Kuzminski <marcin@python-works.com>
parents: 366
diff changeset
98 %for r2p in c.repo_info.repo_to_perm:
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
99 %if r2p.user.username =='default' and c.repo_info.private:
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
100 <tr>
366
0f35fa0f4eb8 fixed some html and styles, added owner into admin repo list
Marcin Kuzminski <marcin@python-works.com>
parents: 362
diff changeset
101 <td colspan="4">
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
102 <span class="private_repo_msg">
366
0f35fa0f4eb8 fixed some html and styles, added owner into admin repo list
Marcin Kuzminski <marcin@python-works.com>
parents: 362
diff changeset
103 ${_('private repository')}
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
104 </span>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
105 </td>
366
0f35fa0f4eb8 fixed some html and styles, added owner into admin repo list
Marcin Kuzminski <marcin@python-works.com>
parents: 362
diff changeset
106 <td class="private_repo_msg">${r2p.user.username}</td>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
107 </tr>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
108 %else:
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
109 <tr id="id${id(r2p.user.username)}">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
110 <td>${h.radio('perm_%s' % r2p.user.username,'repository.none')}</td>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
111 <td>${h.radio('perm_%s' % r2p.user.username,'repository.read')}</td>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
112 <td>${h.radio('perm_%s' % r2p.user.username,'repository.write')}</td>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
113 <td>${h.radio('perm_%s' % r2p.user.username,'repository.admin')}</td>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
114 <td>${r2p.user.username}</td>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
115 <td>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
116 %if r2p.user.username !='default':
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
117 <span class="delete_icon action_button" onclick="ajaxAction(${r2p.user.user_id},'${'id%s'%id(r2p.user.username)}')">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
118 <script type="text/javascript">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
119 function ajaxAction(user_id,field_id){
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
120 var sUrl = "${h.url('delete_repo_user',repo_name=c.repo_name)}";
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
121 var callback = { success:function(o){
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
122 var tr = YAHOO.util.Dom.get(String(field_id));
366
0f35fa0f4eb8 fixed some html and styles, added owner into admin repo list
Marcin Kuzminski <marcin@python-works.com>
parents: 362
diff changeset
123 tr.parentNode.removeChild(tr);},failure:function(o){
0f35fa0f4eb8 fixed some html and styles, added owner into admin repo list
Marcin Kuzminski <marcin@python-works.com>
parents: 362
diff changeset
124 alert("${_('Failed to remove user')}");},};
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
125 var postData = '_method=delete&user_id='+user_id;
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
126 var request = YAHOO.util.Connect.asyncRequest('POST', sUrl, callback, postData);};
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
127 </script>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
128 </span>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
129 %endif
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
130 </td>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
131 </tr>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
132 %endif
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
133 %endfor
296
29370bb76fa6 first permissions commit: added permission managment on repository edit. Changed db rmissions, validators.
Marcin Kuzminski <marcin@python-works.com>
parents: 265
diff changeset
134
366
0f35fa0f4eb8 fixed some html and styles, added owner into admin repo list
Marcin Kuzminski <marcin@python-works.com>
parents: 362
diff changeset
135 <tr id="add_perm_input">
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
136 <td>${h.radio('perm_new_user','repository.none')}</td>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
137 <td>${h.radio('perm_new_user','repository.read')}</td>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
138 <td>${h.radio('perm_new_user','repository.write')}</td>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
139 <td>${h.radio('perm_new_user','repository.admin')}</td>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
140 <td class='ac'>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
141 <div class="perm_ac" id="perm_ac">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
142 ${h.text('perm_new_user_name',class_='yui-ac-input')}
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
143 <div id="perm_container"></div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
144 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
145 </td>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
146 <td></td>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
147 </tr>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
148 <tr>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
149 <td colspan="6">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
150 <span id="add_perm" class="add_icon" style="cursor: pointer;">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
151 ${_('Add another user')}
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
152 </span>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
153 </td>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
154 </tr>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
155 </table>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
156 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
157
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
158 <div class="buttons">
698
4cd0709b6d4b fixes #65, Added reset buttons to edit forms
Marcin Kuzminski <marcin@python-works.com>
parents: 659
diff changeset
159 ${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: 659
diff changeset
160 ${h.reset('reset','Reset',class_="ui-button ui-widget ui-state-default ui-corner-all")}
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
161 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
162 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
163 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
164 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
165 ${h.end_form()}
296
29370bb76fa6 first permissions commit: added permission managment on repository edit. Changed db rmissions, validators.
Marcin Kuzminski <marcin@python-works.com>
parents: 265
diff changeset
166 <script type="text/javascript">
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
167 YAHOO.util.Event.onDOMReady(function(){
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
168 var D = YAHOO.util.Dom;
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
169 if(!D.hasClass('perm_new_user_name','error')){
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
170 D.setStyle('add_perm_input','display','none');
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
171 }
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
172 YAHOO.util.Event.addListener('add_perm','click',function(){
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
173 D.setStyle('add_perm_input','display','');
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
174 D.setStyle('add_perm','opacity','0.6');
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
175 D.setStyle('add_perm','cursor','default');
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
176 });
296
29370bb76fa6 first permissions commit: added permission managment on repository edit. Changed db rmissions, validators.
Marcin Kuzminski <marcin@python-works.com>
parents: 265
diff changeset
177 });
29370bb76fa6 first permissions commit: added permission managment on repository edit. Changed db rmissions, validators.
Marcin Kuzminski <marcin@python-works.com>
parents: 265
diff changeset
178 </script>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
179 <script type="text/javascript">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
180 YAHOO.example.FnMultipleFields = function(){
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
181 var myContacts = ${c.users_array|n}
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
182
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
183 // Define a custom search function for the DataSource
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
184 var matchNames = function(sQuery) {
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
185 // Case insensitive matching
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
186 var query = sQuery.toLowerCase(),
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
187 contact,
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
188 i=0,
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
189 l=myContacts.length,
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
190 matches = [];
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
191
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
192 // Match against each name of each contact
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
193 for(; i<l; i++) {
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
194 contact = myContacts[i];
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
195 if((contact.fname.toLowerCase().indexOf(query) > -1) ||
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
196 (contact.lname.toLowerCase().indexOf(query) > -1) ||
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
197 (contact.nname && (contact.nname.toLowerCase().indexOf(query) > -1))) {
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
198 matches[matches.length] = contact;
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
199 }
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
200 }
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
201
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
202 return matches;
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
203 };
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
204
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
205 // Use a FunctionDataSource
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
206 var oDS = new YAHOO.util.FunctionDataSource(matchNames);
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
207 oDS.responseSchema = {
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
208 fields: ["id", "fname", "lname", "nname"]
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
209 }
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
210
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
211 // Instantiate AutoComplete for perms
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
212 var oAC_perms = new YAHOO.widget.AutoComplete("perm_new_user_name", "perm_container", oDS);
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
213 oAC_perms.useShadow = false;
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
214 oAC_perms.resultTypeList = false;
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
215
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
216 // Instantiate AutoComplete for owner
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
217 var oAC_owner = new YAHOO.widget.AutoComplete("user", "owner_container", oDS);
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
218 oAC_owner.useShadow = false;
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
219 oAC_owner.resultTypeList = false;
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
220
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
221
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
222 // Custom formatter to highlight the matching letters
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
223 var custom_formatter = function(oResultData, sQuery, sResultMatch) {
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
224 var query = sQuery.toLowerCase(),
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
225 fname = oResultData.fname,
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
226 lname = oResultData.lname,
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
227 nname = oResultData.nname || "", // Guard against null value
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
228 query = sQuery.toLowerCase(),
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
229 fnameMatchIndex = fname.toLowerCase().indexOf(query),
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
230 lnameMatchIndex = lname.toLowerCase().indexOf(query),
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
231 nnameMatchIndex = nname.toLowerCase().indexOf(query),
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
232 displayfname, displaylname, displaynname;
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
233
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
234 if(fnameMatchIndex > -1) {
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
235 displayfname = highlightMatch(fname, query, fnameMatchIndex);
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
236 }
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
237 else {
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
238 displayfname = fname;
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
239 }
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
240
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
241 if(lnameMatchIndex > -1) {
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
242 displaylname = highlightMatch(lname, query, lnameMatchIndex);
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
243 }
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
244 else {
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
245 displaylname = lname;
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
246 }
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
247
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
248 if(nnameMatchIndex > -1) {
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
249 displaynname = "(" + highlightMatch(nname, query, nnameMatchIndex) + ")";
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
250 }
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
251 else {
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
252 displaynname = nname ? "(" + nname + ")" : "";
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
253 }
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
254
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
255 return displayfname + " " + displaylname + " " + displaynname;
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
256
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
257 };
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
258 oAC_perms.formatResult = custom_formatter;
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
259 oAC_owner.formatResult = custom_formatter;
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
260
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
261 // Helper function for the formatter
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
262 var highlightMatch = function(full, snippet, matchindex) {
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
263 return full.substring(0, matchindex) +
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
264 "<span class='match'>" +
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
265 full.substr(matchindex, snippet.length) +
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
266 "</span>" +
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
267 full.substring(matchindex + snippet.length);
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
268 };
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
269
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
270 var myHandler = function(sType, aArgs) {
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
271 var myAC = aArgs[0]; // reference back to the AC instance
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
272 var elLI = aArgs[1]; // reference to the selected LI element
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
273 var oData = aArgs[2]; // object literal of selected item's result data
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
274 myAC.getInputEl().value = oData.nname;
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
275 };
298
15e96b5a2685 autocomplete for repository managment of users
Marcin Kuzminski <marcin@python-works.com>
parents: 296
diff changeset
276
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
277 oAC_perms.itemSelectEvent.subscribe(myHandler);
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
278 oAC_owner.itemSelectEvent.subscribe(myHandler);
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
279
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
280 return {
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
281 oDS: oDS,
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
282 oAC_perms: oAC_perms,
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
283 oAC_owner: oAC_owner,
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
284 };
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
285 }();
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
286
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
287 </script>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
288
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
289 </div>
699
52da7cba88a6 Code refactor for auth func, preparing for ldap support
Marcin Kuzminski <marcin@python-works.com>
parents: 698
diff changeset
290
52da7cba88a6 Code refactor for auth func, preparing for ldap support
Marcin Kuzminski <marcin@python-works.com>
parents: 698
diff changeset
291 <div class="box box-right">
52da7cba88a6 Code refactor for auth func, preparing for ldap support
Marcin Kuzminski <marcin@python-works.com>
parents: 698
diff changeset
292 <div class="title">
52da7cba88a6 Code refactor for auth func, preparing for ldap support
Marcin Kuzminski <marcin@python-works.com>
parents: 698
diff changeset
293 <h5>${_('Administration')}</h5>
52da7cba88a6 Code refactor for auth func, preparing for ldap support
Marcin Kuzminski <marcin@python-works.com>
parents: 698
diff changeset
294 </div>
52da7cba88a6 Code refactor for auth func, preparing for ldap support
Marcin Kuzminski <marcin@python-works.com>
parents: 698
diff changeset
295
708
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
296 <h3>${_('Statistics')}</h3>
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
297
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
298 ${h.form(url('repo_stats', repo_name=c.repo_info.repo_name),method='delete')}
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
299 <div class="form">
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
300 <div class="fields">
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
301 ${h.submit('reset_stats_%s' % c.repo_info.repo_name,_('Reset current statistics'),class_="refresh_icon action_button",onclick="return confirm('Confirm to remove current statistics');")}
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
302
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
303 <div class="field">
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
304 <ul>
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
305 <li>${_('Fetched to rev')}: ${c.stats_revision}/${c.repo_last_rev}</li>
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
306 <li>${_('Percentage of stats gathered')}: ${c.stats_percentage} %</li>
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
307 </ul>
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
308 </div>
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
309
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
310 </div>
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
311 </div>
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
312 ${h.end_form()}
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
313
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
314 <h3>${_('Cache')}</h3>
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
315 ${h.form(url('repo_cache', repo_name=c.repo_info.repo_name),method='delete')}
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
316 <div class="form">
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
317 <div class="fields">
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
318 ${h.submit('reset_cache_%s' % c.repo_info.repo_name,_('Invalidate repository cache'),class_="refresh_icon action_button",onclick="return confirm('Confirm to invalidate repository cache');")}
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
319 </div>
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
320 </div>
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
321 ${h.end_form()}
699
52da7cba88a6 Code refactor for auth func, preparing for ldap support
Marcin Kuzminski <marcin@python-works.com>
parents: 698
diff changeset
322
52da7cba88a6 Code refactor for auth func, preparing for ldap support
Marcin Kuzminski <marcin@python-works.com>
parents: 698
diff changeset
323
708
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
324 <h3>${_('Delete')}</h3>
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
325 ${h.form(url('repo', repo_name=c.repo_info.repo_name),method='delete')}
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
326 <div class="form">
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
327 <div class="fields">
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
328 ${h.submit('remove_%s' % c.repo_info.repo_name,_('Remove this repository'),class_="delete_icon action_button",onclick="return confirm('Confirm to delete this repository');")}
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
329 </div>
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
330 </div>
b9bbc0d6e9f3 added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 703
diff changeset
331 ${h.end_form()}
699
52da7cba88a6 Code refactor for auth func, preparing for ldap support
Marcin Kuzminski <marcin@python-works.com>
parents: 698
diff changeset
332
52da7cba88a6 Code refactor for auth func, preparing for ldap support
Marcin Kuzminski <marcin@python-works.com>
parents: 698
diff changeset
333 </div>
52da7cba88a6 Code refactor for auth func, preparing for ldap support
Marcin Kuzminski <marcin@python-works.com>
parents: 698
diff changeset
334
52da7cba88a6 Code refactor for auth func, preparing for ldap support
Marcin Kuzminski <marcin@python-works.com>
parents: 698
diff changeset
335
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 328
diff changeset
336 </%def>