Mercurial > kallithea
annotate rhodecode/templates/admin/repos/repo_edit.html @ 3628:c734686b3cf2 beta
moved permission management into separate entity.
- this solves issues when whole form submision could influence permission management
particular case is that when repo group permission is revoked and user is no longer able to update repository settings
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 28 Mar 2013 02:11:26 +0100 |
parents | 32cb8d45f330 |
children | 802c94bdfc85 |
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 -*- |
3600
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
2 ## |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
3 ## See also repo_settings.html |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
4 ## |
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
|
5 <%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
|
6 |
48
8e250e86a670
Css fixes, implemented removal of users, and display draft
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
7 <%def name="title()"> |
3582
1f334a68d057
improved title consistency
Marcin Kuzminski <marcin@python-works.com>
parents:
3562
diff
changeset
|
8 ${_('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
|
9 </%def> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
328
diff
changeset
|
10 |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
328
diff
changeset
|
11 <%def name="breadcrumbs_links()"> |
3562
b2728f47b589
repo edit UI improvements
Marcin Kuzminski <marcin@python-works.com>
parents:
3552
diff
changeset
|
12 ${_('Settings')} |
48
8e250e86a670
Css fixes, implemented removal of users, and display draft
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
13 </%def> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
328
diff
changeset
|
14 |
48
8e250e86a670
Css fixes, implemented removal of users, and display draft
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
15 <%def name="page_nav()"> |
3603
eacd33e0c5b3
use valid options for the top menu: repositories, journal, search and admin
Mads Kiilerich <madski@unity3d.com>
parents:
3602
diff
changeset
|
16 ${self.menu('admin')} |
48
8e250e86a670
Css fixes, implemented removal of users, and display draft
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
17 </%def> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
328
diff
changeset
|
18 |
48
8e250e86a670
Css fixes, implemented removal of users, and display draft
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
19 <%def name="main()"> |
3552
7967d00e4692
Stylistic cleanup - mostly formatting
Mads Kiilerich <madski@unity3d.com>
parents:
3532
diff
changeset
|
20 ${self.context_bar('options')} |
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"> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1755
diff
changeset
|
24 ${self.breadcrumbs()} |
362
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> |
1112
6d0a7284949d
#109, added optional clone uri when creating repo.
Marcin Kuzminski <marcin@python-works.com>
parents:
1085
diff
changeset
|
37 </div> |
3197 | 38 <div class="field"> |
39 <div class="label"> | |
40 <label for="clone_uri">${_('Clone uri')}:</label> | |
41 </div> | |
42 <div class="input"> | |
43 ${h.text('clone_uri',class_="medium")} | |
2103 | 44 <span class="help-block">${_('Optional http[s] url from which repository should be cloned.')}</span> |
3197 | 45 </div> |
46 </div> | |
47 <div class="field"> | |
48 <div class="label"> | |
49 <label for="repo_group">${_('Repository group')}:</label> | |
50 </div> | |
51 <div class="input"> | |
52 ${h.select('repo_group','',c.repo_groups,class_="medium")} | |
2103 | 53 <span class="help-block">${_('Optional select a group to put this repository into.')}</span> |
3197 | 54 </div> |
55 </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
|
56 <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
|
57 <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
|
58 <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
|
59 </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
|
60 <div class="input"> |
699
52da7cba88a6
Code refactor for auth func, preparing for ldap support
Marcin Kuzminski <marcin@python-works.com>
parents:
698
diff
changeset
|
61 ${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
|
62 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1755
diff
changeset
|
63 </div> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
328
diff
changeset
|
64 <div class="field"> |
2459
9492ab68331f
Initial version of landing revisions ref #483
Marcin Kuzminski <marcin@python-works.com>
parents:
2103
diff
changeset
|
65 <div class="label"> |
3064
7297ffb60900
fix repo_edit form
Marcin Kuzminski <marcin@python-works.com>
parents:
3029
diff
changeset
|
66 <label for="repo_landing_rev">${_('Landing revision')}:</label> |
2459
9492ab68331f
Initial version of landing revisions ref #483
Marcin Kuzminski <marcin@python-works.com>
parents:
2103
diff
changeset
|
67 </div> |
9492ab68331f
Initial version of landing revisions ref #483
Marcin Kuzminski <marcin@python-works.com>
parents:
2103
diff
changeset
|
68 <div class="input"> |
3064
7297ffb60900
fix repo_edit form
Marcin Kuzminski <marcin@python-works.com>
parents:
3029
diff
changeset
|
69 ${h.select('repo_landing_rev','',c.landing_revs,class_="medium")} |
2459
9492ab68331f
Initial version of landing revisions ref #483
Marcin Kuzminski <marcin@python-works.com>
parents:
2103
diff
changeset
|
70 <span class="help-block">${_('Default revision for files page, downloads, whoosh and readme')}</span> |
9492ab68331f
Initial version of landing revisions ref #483
Marcin Kuzminski <marcin@python-works.com>
parents:
2103
diff
changeset
|
71 </div> |
2461
015a42e970a6
whitespace cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
2459
diff
changeset
|
72 </div> |
2459
9492ab68331f
Initial version of landing revisions ref #483
Marcin Kuzminski <marcin@python-works.com>
parents:
2103
diff
changeset
|
73 <div class="field"> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
328
diff
changeset
|
74 <div class="label label-textarea"> |
3064
7297ffb60900
fix repo_edit form
Marcin Kuzminski <marcin@python-works.com>
parents:
3029
diff
changeset
|
75 <label for="repo_description">${_('Description')}:</label> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
328
diff
changeset
|
76 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
328
diff
changeset
|
77 <div class="textarea text-area editor"> |
3064
7297ffb60900
fix repo_edit form
Marcin Kuzminski <marcin@python-works.com>
parents:
3029
diff
changeset
|
78 ${h.textarea('repo_description')} |
2103 | 79 <span class="help-block">${_('Keep it short and to the point. Use a README file for longer descriptions.')}</span> |
362
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> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1755
diff
changeset
|
82 |
362
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 label-checkbox"> |
3064
7297ffb60900
fix repo_edit form
Marcin Kuzminski <marcin@python-works.com>
parents:
3029
diff
changeset
|
85 <label for="repo_private">${_('Private repository')}:</label> |
362
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="checkboxes"> |
3064
7297ffb60900
fix repo_edit form
Marcin Kuzminski <marcin@python-works.com>
parents:
3029
diff
changeset
|
88 ${h.checkbox('repo_private',value="True")} |
2103 | 89 <span class="help-block">${_('Private repositories are only visible to people explicitly added as collaborators.')}</span> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
328
diff
changeset
|
90 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
328
diff
changeset
|
91 </div> |
810
bd57d1cb9dc3
fixes #62, added option to disable statistics for each repository
Marcin Kuzminski <marcin@python-works.com>
parents:
708
diff
changeset
|
92 <div class="field"> |
bd57d1cb9dc3
fixes #62, added option to disable statistics for each repository
Marcin Kuzminski <marcin@python-works.com>
parents:
708
diff
changeset
|
93 <div class="label label-checkbox"> |
3064
7297ffb60900
fix repo_edit form
Marcin Kuzminski <marcin@python-works.com>
parents:
3029
diff
changeset
|
94 <label for="repo_enable_statistics">${_('Enable statistics')}:</label> |
810
bd57d1cb9dc3
fixes #62, added option to disable statistics for each repository
Marcin Kuzminski <marcin@python-works.com>
parents:
708
diff
changeset
|
95 </div> |
bd57d1cb9dc3
fixes #62, added option to disable statistics for each repository
Marcin Kuzminski <marcin@python-works.com>
parents:
708
diff
changeset
|
96 <div class="checkboxes"> |
3064
7297ffb60900
fix repo_edit form
Marcin Kuzminski <marcin@python-works.com>
parents:
3029
diff
changeset
|
97 ${h.checkbox('repo_enable_statistics',value="True")} |
2103 | 98 <span class="help-block">${_('Enable statistics window on summary page.')}</span> |
810
bd57d1cb9dc3
fixes #62, added option to disable statistics for each repository
Marcin Kuzminski <marcin@python-works.com>
parents:
708
diff
changeset
|
99 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1755
diff
changeset
|
100 </div> |
962
72f008ed9b18
implemented #84 downloads can be enabled/disabled per each repository from now.
Marcin Kuzminski <marcin@python-works.com>
parents:
888
diff
changeset
|
101 <div class="field"> |
72f008ed9b18
implemented #84 downloads can be enabled/disabled per each repository from now.
Marcin Kuzminski <marcin@python-works.com>
parents:
888
diff
changeset
|
102 <div class="label label-checkbox"> |
3064
7297ffb60900
fix repo_edit form
Marcin Kuzminski <marcin@python-works.com>
parents:
3029
diff
changeset
|
103 <label for="repo_enable_downloads">${_('Enable downloads')}:</label> |
962
72f008ed9b18
implemented #84 downloads can be enabled/disabled per each repository from now.
Marcin Kuzminski <marcin@python-works.com>
parents:
888
diff
changeset
|
104 </div> |
72f008ed9b18
implemented #84 downloads can be enabled/disabled per each repository from now.
Marcin Kuzminski <marcin@python-works.com>
parents:
888
diff
changeset
|
105 <div class="checkboxes"> |
3064
7297ffb60900
fix repo_edit form
Marcin Kuzminski <marcin@python-works.com>
parents:
3029
diff
changeset
|
106 ${h.checkbox('repo_enable_downloads',value="True")} |
2103 | 107 <span class="help-block">${_('Enable download menu on summary page.')}</span> |
962
72f008ed9b18
implemented #84 downloads can be enabled/disabled per each repository from now.
Marcin Kuzminski <marcin@python-works.com>
parents:
888
diff
changeset
|
108 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1755
diff
changeset
|
109 </div> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
328
diff
changeset
|
110 <div class="field"> |
2726
aa17c7a1b8a5
Implemented basic locking functionality.
Marcin Kuzminski <marcin@python-works.com>
parents:
2607
diff
changeset
|
111 <div class="label label-checkbox"> |
3064
7297ffb60900
fix repo_edit form
Marcin Kuzminski <marcin@python-works.com>
parents:
3029
diff
changeset
|
112 <label for="repo_enable_locking">${_('Enable locking')}:</label> |
2726
aa17c7a1b8a5
Implemented basic locking functionality.
Marcin Kuzminski <marcin@python-works.com>
parents:
2607
diff
changeset
|
113 </div> |
aa17c7a1b8a5
Implemented basic locking functionality.
Marcin Kuzminski <marcin@python-works.com>
parents:
2607
diff
changeset
|
114 <div class="checkboxes"> |
3064
7297ffb60900
fix repo_edit form
Marcin Kuzminski <marcin@python-works.com>
parents:
3029
diff
changeset
|
115 ${h.checkbox('repo_enable_locking',value="True")} |
2726
aa17c7a1b8a5
Implemented basic locking functionality.
Marcin Kuzminski <marcin@python-works.com>
parents:
2607
diff
changeset
|
116 <span class="help-block">${_('Enable lock-by-pulling on repository.')}</span> |
aa17c7a1b8a5
Implemented basic locking functionality.
Marcin Kuzminski <marcin@python-works.com>
parents:
2607
diff
changeset
|
117 </div> |
2815
acc05c33cc0c
White space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
2809
diff
changeset
|
118 </div> |
2726
aa17c7a1b8a5
Implemented basic locking functionality.
Marcin Kuzminski <marcin@python-works.com>
parents:
2607
diff
changeset
|
119 <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
|
120 <div class="label"> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
328
diff
changeset
|
121 <label for="user">${_('Owner')}:</label> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
328
diff
changeset
|
122 </div> |
2103 | 123 <div class="input input-medium ac"> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
328
diff
changeset
|
124 <div class="perm_ac"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
328
diff
changeset
|
125 ${h.text('user',class_='yui-ac-input')} |
2103 | 126 <span class="help-block">${_('Change owner of this repository.')}</span> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
328
diff
changeset
|
127 <div id="owner_container"></div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
328
diff
changeset
|
128 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
328
diff
changeset
|
129 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1755
diff
changeset
|
130 </div> |
3308
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
131 %if c.visual.repository_fields: |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
132 ## EXTRA FIELDS |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
133 %for field in c.repo_fields: |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
134 <div class="field"> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
135 <div class="label"> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
136 <label for="${field.field_key_prefixed}">${field.field_label} (${field.field_key}):</label> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
137 </div> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
138 <div class="input input-medium"> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
139 ${h.text(field.field_key_prefixed, field.field_value, class_='medium')} |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
140 %if field.field_desc: |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
141 <span class="help-block">${field.field_desc}</span> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
142 %endif |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
143 </div> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
144 </div> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
145 %endfor |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
146 %endif |
3600
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
147 <div class="buttons"> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
148 ${h.submit('save',_('Save'),class_="ui-btn large")} |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
149 ${h.reset('reset',_('Reset'),class_="ui-btn large")} |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1755
diff
changeset
|
150 </div> |
3600
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
151 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1755
diff
changeset
|
152 </div> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
328
diff
changeset
|
153 ${h.end_form()} |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
328
diff
changeset
|
154 </div> |
699
52da7cba88a6
Code refactor for auth func, preparing for ldap support
Marcin Kuzminski <marcin@python-works.com>
parents:
698
diff
changeset
|
155 |
52da7cba88a6
Code refactor for auth func, preparing for ldap support
Marcin Kuzminski <marcin@python-works.com>
parents:
698
diff
changeset
|
156 <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
|
157 <div class="title"> |
3628
c734686b3cf2
moved permission management into separate entity.
Marcin Kuzminski <marcin@python-works.com>
parents:
3627
diff
changeset
|
158 <h5>${_('Permissions')}</h5> |
c734686b3cf2
moved permission management into separate entity.
Marcin Kuzminski <marcin@python-works.com>
parents:
3627
diff
changeset
|
159 </div> |
c734686b3cf2
moved permission management into separate entity.
Marcin Kuzminski <marcin@python-works.com>
parents:
3627
diff
changeset
|
160 ${h.form(url('set_repo_perm_member', repo_name=c.repo_info.repo_name),method='post')} |
c734686b3cf2
moved permission management into separate entity.
Marcin Kuzminski <marcin@python-works.com>
parents:
3627
diff
changeset
|
161 <div class="form"> |
c734686b3cf2
moved permission management into separate entity.
Marcin Kuzminski <marcin@python-works.com>
parents:
3627
diff
changeset
|
162 <div class="fields"> |
c734686b3cf2
moved permission management into separate entity.
Marcin Kuzminski <marcin@python-works.com>
parents:
3627
diff
changeset
|
163 <div class="field"> |
c734686b3cf2
moved permission management into separate entity.
Marcin Kuzminski <marcin@python-works.com>
parents:
3627
diff
changeset
|
164 <div class="label"> |
c734686b3cf2
moved permission management into separate entity.
Marcin Kuzminski <marcin@python-works.com>
parents:
3627
diff
changeset
|
165 <label for="input">${_('Permissions')}:</label> |
c734686b3cf2
moved permission management into separate entity.
Marcin Kuzminski <marcin@python-works.com>
parents:
3627
diff
changeset
|
166 </div> |
c734686b3cf2
moved permission management into separate entity.
Marcin Kuzminski <marcin@python-works.com>
parents:
3627
diff
changeset
|
167 <div class="input"> |
c734686b3cf2
moved permission management into separate entity.
Marcin Kuzminski <marcin@python-works.com>
parents:
3627
diff
changeset
|
168 <%include file="repo_edit_perms.html"/> |
c734686b3cf2
moved permission management into separate entity.
Marcin Kuzminski <marcin@python-works.com>
parents:
3627
diff
changeset
|
169 </div> |
c734686b3cf2
moved permission management into separate entity.
Marcin Kuzminski <marcin@python-works.com>
parents:
3627
diff
changeset
|
170 </div> |
c734686b3cf2
moved permission management into separate entity.
Marcin Kuzminski <marcin@python-works.com>
parents:
3627
diff
changeset
|
171 <div class="buttons"> |
c734686b3cf2
moved permission management into separate entity.
Marcin Kuzminski <marcin@python-works.com>
parents:
3627
diff
changeset
|
172 ${h.submit('save',_('Save'),class_="ui-btn large")} |
c734686b3cf2
moved permission management into separate entity.
Marcin Kuzminski <marcin@python-works.com>
parents:
3627
diff
changeset
|
173 ${h.reset('reset',_('Reset'),class_="ui-btn large")} |
c734686b3cf2
moved permission management into separate entity.
Marcin Kuzminski <marcin@python-works.com>
parents:
3627
diff
changeset
|
174 </div> |
c734686b3cf2
moved permission management into separate entity.
Marcin Kuzminski <marcin@python-works.com>
parents:
3627
diff
changeset
|
175 </div> |
c734686b3cf2
moved permission management into separate entity.
Marcin Kuzminski <marcin@python-works.com>
parents:
3627
diff
changeset
|
176 </div> |
c734686b3cf2
moved permission management into separate entity.
Marcin Kuzminski <marcin@python-works.com>
parents:
3627
diff
changeset
|
177 ${h.end_form()} |
c734686b3cf2
moved permission management into separate entity.
Marcin Kuzminski <marcin@python-works.com>
parents:
3627
diff
changeset
|
178 </div> |
c734686b3cf2
moved permission management into separate entity.
Marcin Kuzminski <marcin@python-works.com>
parents:
3627
diff
changeset
|
179 |
c734686b3cf2
moved permission management into separate entity.
Marcin Kuzminski <marcin@python-works.com>
parents:
3627
diff
changeset
|
180 |
c734686b3cf2
moved permission management into separate entity.
Marcin Kuzminski <marcin@python-works.com>
parents:
3627
diff
changeset
|
181 <div class="box box-right" style="clear:right"> |
c734686b3cf2
moved permission management into separate entity.
Marcin Kuzminski <marcin@python-works.com>
parents:
3627
diff
changeset
|
182 <div class="title"> |
3562
b2728f47b589
repo edit UI improvements
Marcin Kuzminski <marcin@python-works.com>
parents:
3552
diff
changeset
|
183 <h5>${_('Advanced settings')}</h5> |
699
52da7cba88a6
Code refactor for auth func, preparing for ldap support
Marcin Kuzminski <marcin@python-works.com>
parents:
698
diff
changeset
|
184 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1755
diff
changeset
|
185 |
3600
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
186 <h3>${_('Statistics')}</h3> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
187 ${h.form(url('repo_stats', repo_name=c.repo_info.repo_name),method='delete')} |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
188 <div class="form"> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
189 <div class="fields"> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
190 ${h.submit('reset_stats_%s' % c.repo_info.repo_name,_('Reset current statistics'),class_="ui-btn",onclick="return confirm('"+_('Confirm to remove current statistics')+"');")} |
1755
1088ded6e602
implements #239 manual marking of repos as forks for admins
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
191 <div class="field" style="border:none;color:#888"> |
1088ded6e602
implements #239 manual marking of repos as forks for admins
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
192 <ul> |
3600
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
193 <li>${_('Fetched to rev')}: ${c.stats_revision}/${c.repo_last_rev}</li> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
194 <li>${_('Stats gathered')}: ${c.stats_percentage}%</li> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
195 </ul> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
196 </div> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
197 </div> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
198 </div> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
199 ${h.end_form()} |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
200 |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
201 %if c.repo_info.clone_uri: |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
202 <h3>${_('Remote')}</h3> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
203 ${h.form(url('repo_pull', repo_name=c.repo_info.repo_name),method='put')} |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
204 <div class="form"> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
205 <div class="fields"> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
206 ${h.submit('remote_pull_%s' % c.repo_info.repo_name,_('Pull changes from remote location'),class_="ui-btn",onclick="return confirm('"+_('Confirm to pull changes from remote side')+"');")} |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
207 <div class="field" style="border:none"> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
208 <ul> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
209 <li><a href="${c.repo_info.clone_uri}">${c.repo_info.clone_uri}</a></li> |
1755
1088ded6e602
implements #239 manual marking of repos as forks for admins
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
210 </ul> |
2815
acc05c33cc0c
White space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
2809
diff
changeset
|
211 </div> |
3600
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
212 </div> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
213 </div> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
214 ${h.end_form()} |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
215 %endif |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
216 |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
217 <h3>${_('Cache')}</h3> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
218 ${h.form(url('repo_cache', repo_name=c.repo_info.repo_name),method='delete')} |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
219 <div class="form"> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
220 <div class="fields"> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
221 ${h.submit('reset_cache_%s' % c.repo_info.repo_name,_('Invalidate repository cache'),class_="ui-btn",onclick="return confirm('"+_('Confirm to invalidate repository cache')+"');")} |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
222 <div class="field" style="border:none;color:#888"> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
223 <ul> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
224 <li>${_('Manually invalidate cache for this repository. On first access repository will be cached again')} |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
225 </li> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
226 </ul> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
227 </div> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
228 <div class="field" style="border:none;"> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
229 ${_('List of cached values')} |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
230 <table> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
231 <tr> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
232 <th>${_('Prefix')}</th> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
233 <th>${_('Key')}</th> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
234 <th>${_('Active')}</th> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
235 </tr> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
236 %for cache in c.repo_info.cache_keys: |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
237 <tr> |
3606
c8ecfe42b285
invalidation: some documentation and refactoring
Mads Kiilerich <madski@unity3d.com>
parents:
3603
diff
changeset
|
238 <td>${cache.get_prefix() or '-'}</td> |
3600
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
239 <td>${cache.cache_key}</td> |
3627
32cb8d45f330
helpers: show boolean value of value as icon, not just the True and False singletons
Mads Kiilerich <madski@unity3d.com>
parents:
3606
diff
changeset
|
240 <td>${h.boolicon(cache.cache_active)}</td> |
3600
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
241 </tr> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
242 %endfor |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
243 </table> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
244 </div> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
245 </div> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
246 </div> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
247 ${h.end_form()} |
1755
1088ded6e602
implements #239 manual marking of repos as forks for admins
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
248 |
3600
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
249 <h3>${_('Public journal')}</h3> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
250 ${h.form(url('repo_public_journal', repo_name=c.repo_info.repo_name),method='put')} |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
251 <div class="form"> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
252 ${h.hidden('auth_token',str(h.get_token()))} |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
253 <div class="field"> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
254 %if c.in_public_journal: |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
255 ${h.submit('set_public_%s' % c.repo_info.repo_name,_('Remove from public journal'),class_="ui-btn")} |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
256 %else: |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
257 ${h.submit('set_public_%s' % c.repo_info.repo_name,_('Add to public journal'),class_="ui-btn")} |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
258 %endif |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
259 </div> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
260 <div class="field" style="border:none;color:#888"> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
261 <ul> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
262 <li>${_('All actions made on this repository will be accessible to everyone in public journal')} |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
263 </li> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
264 </ul> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
265 </div> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
266 </div> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
267 ${h.end_form()} |
2815
acc05c33cc0c
White space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
2809
diff
changeset
|
268 |
3600
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
269 <h3>${_('Locking')}</h3> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
270 ${h.form(url('repo_locking', repo_name=c.repo_info.repo_name),method='put')} |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
271 <div class="form"> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
272 <div class="fields"> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
273 %if c.repo_info.locked[0]: |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
274 ${h.submit('set_unlock' ,_('Unlock locked repo'),class_="ui-btn",onclick="return confirm('"+_('Confirm to unlock repository')+"');")} |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
275 ${'Locked by %s on %s' % (h.person_by_id(c.repo_info.locked[0]),h.fmt_date(h.time_to_datetime(c.repo_info.locked[1])))} |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
276 %else: |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
277 ${h.submit('set_lock',_('lock repo'),class_="ui-btn",onclick="return confirm('"+_('Confirm to lock repository')+"');")} |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
278 ${_('Repository is not locked')} |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
279 %endif |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
280 </div> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
281 <div class="field" style="border:none;color:#888"> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
282 <ul> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
283 <li>${_('Force locking on repository. Works only when anonymous access is disabled')} |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
284 </li> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
285 </ul> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
286 </div> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
287 </div> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
288 ${h.end_form()} |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
289 |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
290 <h3>${_('Set as fork of')}</h3> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
291 ${h.form(url('repo_as_fork', repo_name=c.repo_info.repo_name),method='put')} |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
292 <div class="form"> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
293 <div class="fields"> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
294 ${h.select('id_fork_of','',c.repos_list,class_="medium")} |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
295 ${h.submit('set_as_fork_%s' % c.repo_info.repo_name,_('set'),class_="ui-btn",)} |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
296 </div> |
2726
aa17c7a1b8a5
Implemented basic locking functionality.
Marcin Kuzminski <marcin@python-works.com>
parents:
2607
diff
changeset
|
297 <div class="field" style="border:none;color:#888"> |
aa17c7a1b8a5
Implemented basic locking functionality.
Marcin Kuzminski <marcin@python-works.com>
parents:
2607
diff
changeset
|
298 <ul> |
3600
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
299 <li>${_('''Manually set this repository as a fork of another from the list''')}</li> |
2726
aa17c7a1b8a5
Implemented basic locking functionality.
Marcin Kuzminski <marcin@python-works.com>
parents:
2607
diff
changeset
|
300 </ul> |
aa17c7a1b8a5
Implemented basic locking functionality.
Marcin Kuzminski <marcin@python-works.com>
parents:
2607
diff
changeset
|
301 </div> |
3600
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
302 </div> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
303 ${h.end_form()} |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
304 |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
305 <h3>${_('Delete')}</h3> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
306 ${h.form(url('repo', repo_name=c.repo_info.repo_name),method='delete')} |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
307 <div class="form"> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
308 <div class="fields"> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
309 <div class="field" style="border:none;color:#888"> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
310 ## <div class="label"> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
311 ## <label for="">${_('Remove repository')}:</label> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
312 ## </div> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
313 <div class="checkboxes"> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
314 ${h.submit('remove_%s' % c.repo_info.repo_name,_('Remove this repository'),class_="ui-btn red",onclick="return confirm('"+_('Confirm to delete this repository')+"');")} |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
315 %if c.repo_info.forks.count(): |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
316 - ${ungettext('this repository has %s fork', 'this repository has %s forks', c.repo_info.forks.count()) % c.repo_info.forks.count()} |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
317 <input type="radio" name="forks" value="detach_forks" checked="checked"/> <label for="forks">${_('Detach forks')}</label> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
318 <input type="radio" name="forks" value="delete_forks" /> <label for="forks">${_('Delete forks')}</label> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
319 %endif |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
320 <ul> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
321 <li>${_('This repository will be renamed in a special way in order to be unaccesible for RhodeCode and VCS systems. If you need to fully delete it from file system please do it manually')}</li> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
322 </ul> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
323 </div> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
324 </div> |
2726
aa17c7a1b8a5
Implemented basic locking functionality.
Marcin Kuzminski <marcin@python-works.com>
parents:
2607
diff
changeset
|
325 </div> |
3600
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
326 </div> |
727119201a42
repository: cleanup and alignment of repository editing templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
327 ${h.end_form()} |
699
52da7cba88a6
Code refactor for auth func, preparing for ldap support
Marcin Kuzminski <marcin@python-works.com>
parents:
698
diff
changeset
|
328 </div> |
52da7cba88a6
Code refactor for auth func, preparing for ldap support
Marcin Kuzminski <marcin@python-works.com>
parents:
698
diff
changeset
|
329 |
3308
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
330 ##TODO: this should be controlled by the VISUAL setting |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
331 %if c.visual.repository_fields: |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
332 <div class="box box-left" style="clear:left"> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
333 <!-- box / title --> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
334 <div class="title"> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
335 <h5>${_('Extra fields')}</h5> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
336 </div> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
337 |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
338 <div class="emails_wrap"> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
339 <table class="noborder"> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
340 %for field in c.repo_fields: |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
341 <tr> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
342 <td>${field.field_label} (${field.field_key})</td> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
343 <td>${field.field_type}</td> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
344 <td> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
345 ${h.form(url('delete_repo_fields', repo_name=c.repo_info.repo_name, field_id=field.repo_field_id),method='delete')} |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
346 ${h.submit('remove_%s' % field.repo_field_id, _('delete'), id="remove_field_%s" % field.repo_field_id, |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
347 class_="delete_icon action_button", onclick="return confirm('"+_('Confirm to delete this field: %s') % field.field_key+"');")} |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
348 ${h.end_form()} |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
349 </td> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
350 </tr> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
351 %endfor |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
352 </table> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
353 </div> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
354 |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
355 ${h.form(url('create_repo_fields', repo_name=c.repo_info.repo_name),method='put')} |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
356 <div class="form"> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
357 <!-- fields --> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
358 <div class="fields"> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
359 <div class="field"> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
360 <div class="label"> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
361 <label for="new_field_key">${_('New field key')}:</label> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
362 </div> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
363 <div class="input"> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
364 ${h.text('new_field_key', class_='small')} |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
365 </div> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
366 </div> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
367 <div class="field"> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
368 <div class="label"> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
369 <label for="new_field_label">${_('New field label')}:</label> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
370 </div> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
371 <div class="input"> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
372 ${h.text('new_field_label', class_='small', placeholder=_('Enter short label'))} |
3315
fc08484c5bf3
whitespace cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
3308
diff
changeset
|
373 </div> |
3308
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
374 </div> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
375 |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
376 <div class="field"> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
377 <div class="label"> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
378 <label for="new_field_desc">${_('New field description')}:</label> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
379 </div> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
380 <div class="input"> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
381 ${h.text('new_field_desc', class_='small', placeholder=_('Enter description of a field'))} |
3315
fc08484c5bf3
whitespace cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
3308
diff
changeset
|
382 </div> |
3308
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
383 </div> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
384 |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
385 <div class="buttons"> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
386 ${h.submit('save',_('Add'),class_="ui-btn large")} |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
387 ${h.reset('reset',_('Reset'),class_="ui-btn large")} |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
388 </div> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
389 </div> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
390 </div> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
391 ${h.end_form()} |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
392 </div> |
72a91632b731
repository extra fields implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
3288
diff
changeset
|
393 %endif |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1755
diff
changeset
|
394 </%def> |