comparison rhodecode/templates/admin/repos/repo_edit.html @ 1888:f91d3f9b7230 beta

White-space cleanup
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 12 Jan 2012 06:32:40 +0200
parents 1088ded6e602
children f48bce87475b
comparison
equal deleted inserted replaced
1886:50e32940e464 1888:f91d3f9b7230
4 <%def name="title()"> 4 <%def name="title()">
5 ${_('Edit repository')} ${c.repo_info.repo_name} - ${c.rhodecode_name} 5 ${_('Edit repository')} ${c.repo_info.repo_name} - ${c.rhodecode_name}
6 </%def> 6 </%def>
7 7
8 <%def name="breadcrumbs_links()"> 8 <%def name="breadcrumbs_links()">
9 ${h.link_to(_('Admin'),h.url('admin_home'))} 9 ${h.link_to(_('Admin'),h.url('admin_home'))}
10 &raquo; 10 &raquo;
11 ${h.link_to(_('Repositories'),h.url('repos'))} 11 ${h.link_to(_('Repositories'),h.url('repos'))}
12 &raquo; 12 &raquo;
13 ${_('edit')} &raquo; ${h.link_to(c.repo_info.just_name,h.url('summary_home',repo_name=c.repo_name))} 13 ${_('edit')} &raquo; ${h.link_to(c.repo_info.just_name,h.url('summary_home',repo_name=c.repo_name))}
14 </%def> 14 </%def>
15 15
16 <%def name="page_nav()"> 16 <%def name="page_nav()">
19 19
20 <%def name="main()"> 20 <%def name="main()">
21 <div class="box box-left"> 21 <div class="box box-left">
22 <!-- box / title --> 22 <!-- box / title -->
23 <div class="title"> 23 <div class="title">
24 ${self.breadcrumbs()} 24 ${self.breadcrumbs()}
25 </div> 25 </div>
26 ${h.form(url('repo', repo_name=c.repo_info.repo_name),method='put')} 26 ${h.form(url('repo', repo_name=c.repo_info.repo_name),method='put')}
27 <div class="form"> 27 <div class="form">
28 <!-- fields --> 28 <!-- fields -->
29 <div class="fields"> 29 <div class="fields">
40 <label for="clone_uri">${_('Clone uri')}:</label> 40 <label for="clone_uri">${_('Clone uri')}:</label>
41 </div> 41 </div>
42 <div class="input"> 42 <div class="input">
43 ${h.text('clone_uri',class_="medium")} 43 ${h.text('clone_uri',class_="medium")}
44 </div> 44 </div>
45 </div> 45 </div>
46 <div class="field"> 46 <div class="field">
47 <div class="label"> 47 <div class="label">
48 <label for="repo_group">${_('Repository group')}:</label> 48 <label for="repo_group">${_('Repository group')}:</label>
49 </div> 49 </div>
50 <div class="input"> 50 <div class="input">
51 ${h.select('repo_group','',c.repo_groups,class_="medium")} 51 ${h.select('repo_group','',c.repo_groups,class_="medium")}
52 </div> 52 </div>
53 </div> 53 </div>
54 <div class="field"> 54 <div class="field">
55 <div class="label"> 55 <div class="label">
56 <label for="repo_type">${_('Type')}:</label> 56 <label for="repo_type">${_('Type')}:</label>
57 </div> 57 </div>
58 <div class="input"> 58 <div class="input">
59 ${h.select('repo_type','hg',c.backends,class_="medium")} 59 ${h.select('repo_type','hg',c.backends,class_="medium")}
60 </div> 60 </div>
61 </div> 61 </div>
62 <div class="field"> 62 <div class="field">
63 <div class="label label-textarea"> 63 <div class="label label-textarea">
64 <label for="description">${_('Description')}:</label> 64 <label for="description">${_('Description')}:</label>
65 </div> 65 </div>
66 <div class="textarea text-area editor"> 66 <div class="textarea text-area editor">
67 ${h.textarea('description',cols=23,rows=5)} 67 ${h.textarea('description',cols=23,rows=5)}
68 </div> 68 </div>
69 </div> 69 </div>
70 70
71 <div class="field"> 71 <div class="field">
72 <div class="label label-checkbox"> 72 <div class="label label-checkbox">
73 <label for="private">${_('Private')}:</label> 73 <label for="private">${_('Private')}:</label>
74 </div> 74 </div>
75 <div class="checkboxes"> 75 <div class="checkboxes">
81 <label for="enable_statistics">${_('Enable statistics')}:</label> 81 <label for="enable_statistics">${_('Enable statistics')}:</label>
82 </div> 82 </div>
83 <div class="checkboxes"> 83 <div class="checkboxes">
84 ${h.checkbox('enable_statistics',value="True")} 84 ${h.checkbox('enable_statistics',value="True")}
85 </div> 85 </div>
86 </div> 86 </div>
87 <div class="field"> 87 <div class="field">
88 <div class="label label-checkbox"> 88 <div class="label label-checkbox">
89 <label for="enable_downloads">${_('Enable downloads')}:</label> 89 <label for="enable_downloads">${_('Enable downloads')}:</label>
90 </div> 90 </div>
91 <div class="checkboxes"> 91 <div class="checkboxes">
92 ${h.checkbox('enable_downloads',value="True")} 92 ${h.checkbox('enable_downloads',value="True")}
93 </div> 93 </div>
94 </div> 94 </div>
95 <div class="field"> 95 <div class="field">
96 <div class="label"> 96 <div class="label">
97 <label for="user">${_('Owner')}:</label> 97 <label for="user">${_('Owner')}:</label>
98 </div> 98 </div>
99 <div class="input input-small ac"> 99 <div class="input input-small ac">
100 <div class="perm_ac"> 100 <div class="perm_ac">
101 ${h.text('user',class_='yui-ac-input')} 101 ${h.text('user',class_='yui-ac-input')}
102 <div id="owner_container"></div> 102 <div id="owner_container"></div>
103 </div> 103 </div>
104 </div> 104 </div>
105 </div> 105 </div>
106 106
107 <div class="field"> 107 <div class="field">
108 <div class="label"> 108 <div class="label">
109 <label for="input">${_('Permissions')}:</label> 109 <label for="input">${_('Permissions')}:</label>
110 </div> 110 </div>
111 <div class="input"> 111 <div class="input">
112 <%include file="repo_edit_perms.html"/> 112 <%include file="repo_edit_perms.html"/>
113 </div> 113 </div>
114 114
115 <div class="buttons"> 115 <div class="buttons">
116 ${h.submit('save','Save',class_="ui-button")} 116 ${h.submit('save','Save',class_="ui-button")}
117 ${h.reset('reset','Reset',class_="ui-button")} 117 ${h.reset('reset','Reset',class_="ui-button")}
118 </div> 118 </div>
119 </div> 119 </div>
120 </div> 120 </div>
121 </div> 121 </div>
122 ${h.end_form()} 122 ${h.end_form()}
123 </div> 123 </div>
124 124
125 <div class="box box-right"> 125 <div class="box box-right">
126 <div class="title"> 126 <div class="title">
127 <h5>${_('Administration')}</h5> 127 <h5>${_('Administration')}</h5>
128 </div> 128 </div>
129 129
130 <h3>${_('Statistics')}</h3> 130 <h3>${_('Statistics')}</h3>
131 ${h.form(url('repo_stats', repo_name=c.repo_info.repo_name),method='delete')} 131 ${h.form(url('repo_stats', repo_name=c.repo_info.repo_name),method='delete')}
132 <div class="form"> 132 <div class="form">
133 <div class="fields"> 133 <div class="fields">
134 ${h.submit('reset_stats_%s' % c.repo_info.repo_name,_('Reset current statistics'),class_="ui-btn",onclick="return confirm('"+_('Confirm to remove current statistics')+"');")} 134 ${h.submit('reset_stats_%s' % c.repo_info.repo_name,_('Reset current statistics'),class_="ui-btn",onclick="return confirm('"+_('Confirm to remove current statistics')+"');")}
137 <li>${_('Fetched to rev')}: ${c.stats_revision}/${c.repo_last_rev}</li> 137 <li>${_('Fetched to rev')}: ${c.stats_revision}/${c.repo_last_rev}</li>
138 <li>${_('Percentage of stats gathered')}: ${c.stats_percentage} %</li> 138 <li>${_('Percentage of stats gathered')}: ${c.stats_percentage} %</li>
139 </ul> 139 </ul>
140 </div> 140 </div>
141 </div> 141 </div>
142 </div> 142 </div>
143 ${h.end_form()} 143 ${h.end_form()}
144 144
145 %if c.repo_info.clone_uri: 145 %if c.repo_info.clone_uri:
146 <h3>${_('Remote')}</h3> 146 <h3>${_('Remote')}</h3>
147 ${h.form(url('repo_pull', repo_name=c.repo_info.repo_name),method='put')} 147 ${h.form(url('repo_pull', repo_name=c.repo_info.repo_name),method='put')}
148 <div class="form"> 148 <div class="form">
149 <div class="fields"> 149 <div class="fields">
150 ${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')+"');")} 150 ${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')+"');")}
151 <div class="field" style="border:none"> 151 <div class="field" style="border:none">
152 <ul> 152 <ul>
153 <li><a href="${c.repo_info.clone_uri}">${c.repo_info.clone_uri}</a></li> 153 <li><a href="${c.repo_info.clone_uri}">${c.repo_info.clone_uri}</a></li>
154 </ul> 154 </ul>
155 </div> 155 </div>
156 </div> 156 </div>
157 </div> 157 </div>
158 ${h.end_form()} 158 ${h.end_form()}
159 %endif 159 %endif
160 160
161 <h3>${_('Cache')}</h3> 161 <h3>${_('Cache')}</h3>
162 ${h.form(url('repo_cache', repo_name=c.repo_info.repo_name),method='delete')} 162 ${h.form(url('repo_cache', repo_name=c.repo_info.repo_name),method='delete')}
163 <div class="form"> 163 <div class="form">
164 <div class="fields"> 164 <div class="fields">
165 ${h.submit('reset_cache_%s' % c.repo_info.repo_name,_('Invalidate repository cache'),class_="ui-btn",onclick="return confirm('"+_('Confirm to invalidate repository cache')+"');")} 165 ${h.submit('reset_cache_%s' % c.repo_info.repo_name,_('Invalidate repository cache'),class_="ui-btn",onclick="return confirm('"+_('Confirm to invalidate repository cache')+"');")}
166 </div> 166 </div>
167 </div> 167 </div>
168 ${h.end_form()} 168 ${h.end_form()}
169 169
170 <h3>${_('Public journal')}</h3> 170 <h3>${_('Public journal')}</h3>
171 ${h.form(url('repo_public_journal', repo_name=c.repo_info.repo_name),method='put')} 171 ${h.form(url('repo_public_journal', repo_name=c.repo_info.repo_name),method='put')}
172 <div class="form"> 172 <div class="form">
173 ${h.hidden('auth_token',str(h.get_token()))} 173 ${h.hidden('auth_token',str(h.get_token()))}
174 <div class="field"> 174 <div class="field">
181 <div class="field" style="border:none;color:#888"> 181 <div class="field" style="border:none;color:#888">
182 <ul> 182 <ul>
183 <li>${_('''All actions made on this repository will be accessible to everyone in public journal''')} 183 <li>${_('''All actions made on this repository will be accessible to everyone in public journal''')}
184 </li> 184 </li>
185 </ul> 185 </ul>
186 </div> 186 </div>
187 </div> 187 </div>
188 ${h.end_form()} 188 ${h.end_form()}
189 189
190 <h3>${_('Delete')}</h3> 190 <h3>${_('Delete')}</h3>
191 ${h.form(url('repo', repo_name=c.repo_info.repo_name),method='delete')} 191 ${h.form(url('repo', repo_name=c.repo_info.repo_name),method='delete')}
192 <div class="form"> 192 <div class="form">
193 <div class="fields"> 193 <div class="fields">
194 ${h.submit('remove_%s' % c.repo_info.repo_name,_('Remove this repository'),class_="ui-btn red",onclick="return confirm('"+_('Confirm to delete this repository')+"');")} 194 ${h.submit('remove_%s' % c.repo_info.repo_name,_('Remove this repository'),class_="ui-btn red",onclick="return confirm('"+_('Confirm to delete this repository')+"');")}
195 </div> 195 </div>
196 <div class="field" style="border:none;color:#888"> 196 <div class="field" style="border:none;color:#888">
197 <ul> 197 <ul>
198 <li>${_('''This repository will be renamed in a special way in order to be unaccesible for RhodeCode and VCS systems. 198 <li>${_('''This repository will be renamed in a special way in order to be unaccesible for RhodeCode and VCS systems.
199 If you need fully delete it from filesystem please do it manually''')} 199 If you need fully delete it from filesystem please do it manually''')}
200 </li> 200 </li>
201 </ul> 201 </ul>
202 </div> 202 </div>
203 </div> 203 </div>
204 ${h.end_form()} 204 ${h.end_form()}
205 205
206 <h3>${_('Set as fork')}</h3> 206 <h3>${_('Set as fork')}</h3>
207 ${h.form(url('repo_as_fork', repo_name=c.repo_info.repo_name),method='put')} 207 ${h.form(url('repo_as_fork', repo_name=c.repo_info.repo_name),method='put')}
208 <div class="form"> 208 <div class="form">
212 </div> 212 </div>
213 <div class="field" style="border:none;color:#888"> 213 <div class="field" style="border:none;color:#888">
214 <ul> 214 <ul>
215 <li>${_('''Manually set this repository as a fork of another''')}</li> 215 <li>${_('''Manually set this repository as a fork of another''')}</li>
216 </ul> 216 </ul>
217 </div> 217 </div>
218 </div> 218 </div>
219 ${h.end_form()} 219 ${h.end_form()}
220 220
221 </div> 221 </div>
222 222
223 223
224 </%def> 224 </%def>