Files
@ 6cdf2cd9d9d8
Branch filter:
Location: kallithea/rhodecode/templates/admin/repos/repo_edit.html - annotation
6cdf2cd9d9d8
11.9 KiB
text/html
repo edit: it is a repo thing more than an admin thing - show it that way in ui and url
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 | 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 a1ec653f5f95 1e757ac98988 1e757ac98988 1e757ac98988 6cdf2cd9d9d8 f91d3f9b7230 6cdf2cd9d9d8 1e757ac98988 6cdf2cd9d9d8 1e757ac98988 1e757ac98988 1e757ac98988 6cdf2cd9d9d8 1e757ac98988 1e757ac98988 1e757ac98988 52da7cba88a6 1e757ac98988 1e757ac98988 f91d3f9b7230 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 9c1ed03ef5db 52da7cba88a6 1e757ac98988 6d0a7284949d b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 e82c04f52b9f b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 e82c04f52b9f b4f401524060 b4f401524060 758f64f3fbda 758f64f3fbda 758f64f3fbda 758f64f3fbda 758f64f3fbda 52da7cba88a6 758f64f3fbda f91d3f9b7230 1e757ac98988 9492ab68331f 7297ffb60900 9492ab68331f 9492ab68331f 7297ffb60900 9492ab68331f 9492ab68331f 015a42e970a6 9492ab68331f 1e757ac98988 7297ffb60900 1e757ac98988 1e757ac98988 7297ffb60900 e82c04f52b9f 1e757ac98988 1e757ac98988 f91d3f9b7230 1e757ac98988 1e757ac98988 7297ffb60900 1e757ac98988 1e757ac98988 7297ffb60900 e82c04f52b9f 1e757ac98988 1e757ac98988 bd57d1cb9dc3 bd57d1cb9dc3 7297ffb60900 bd57d1cb9dc3 bd57d1cb9dc3 7297ffb60900 e82c04f52b9f bd57d1cb9dc3 f91d3f9b7230 72f008ed9b18 72f008ed9b18 7297ffb60900 72f008ed9b18 72f008ed9b18 7297ffb60900 e82c04f52b9f 72f008ed9b18 f91d3f9b7230 1e757ac98988 aa17c7a1b8a5 7297ffb60900 aa17c7a1b8a5 aa17c7a1b8a5 7297ffb60900 aa17c7a1b8a5 aa17c7a1b8a5 acc05c33cc0c aa17c7a1b8a5 136ad719d9e2 1e757ac98988 1e757ac98988 e82c04f52b9f 1e757ac98988 1e757ac98988 e82c04f52b9f 1e757ac98988 1e757ac98988 1e757ac98988 f91d3f9b7230 f91d3f9b7230 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 65129c332d37 65129c332d37 f91d3f9b7230 f48bce87475b 7ae36df760ce 7ae36df760ce f48bce87475b f91d3f9b7230 1e757ac98988 f91d3f9b7230 1e757ac98988 1e757ac98988 52da7cba88a6 52da7cba88a6 52da7cba88a6 f91d3f9b7230 52da7cba88a6 f91d3f9b7230 b9bbc0d6e9f3 b9bbc0d6e9f3 b9bbc0d6e9f3 b9bbc0d6e9f3 1088ded6e602 1088ded6e602 b9bbc0d6e9f3 b9bbc0d6e9f3 518f87919375 b9bbc0d6e9f3 b9bbc0d6e9f3 b9bbc0d6e9f3 f91d3f9b7230 b9bbc0d6e9f3 f91d3f9b7230 4de3fa6290a7 4de3fa6290a7 4de3fa6290a7 4de3fa6290a7 4de3fa6290a7 1088ded6e602 4de3fa6290a7 4de3fa6290a7 4de3fa6290a7 f91d3f9b7230 f91d3f9b7230 4de3fa6290a7 f91d3f9b7230 4de3fa6290a7 4de3fa6290a7 f91d3f9b7230 b9bbc0d6e9f3 b9bbc0d6e9f3 b9bbc0d6e9f3 b9bbc0d6e9f3 1088ded6e602 070d2eacd48b 070d2eacd48b 070d2eacd48b 070d2eacd48b 070d2eacd48b acc05c33cc0c 070d2eacd48b 070d2eacd48b 00498b3e4c88 00498b3e4c88 00498b3e4c88 00498b3e4c88 00498b3e4c88 00498b3e4c88 070d2eacd48b 00498b3e4c88 685ebc84c2e9 00498b3e4c88 00498b3e4c88 00498b3e4c88 070d2eacd48b 00498b3e4c88 acc05c33cc0c b9bbc0d6e9f3 f91d3f9b7230 b9bbc0d6e9f3 f91d3f9b7230 3fe3285868d1 3fe3285868d1 3fe3285868d1 070d2eacd48b 070d2eacd48b 070d2eacd48b 070d2eacd48b 070d2eacd48b 070d2eacd48b 070d2eacd48b 070d2eacd48b 070d2eacd48b 070d2eacd48b 070d2eacd48b 070d2eacd48b 070d2eacd48b 070d2eacd48b 3fe3285868d1 3fe3285868d1 f91d3f9b7230 aa17c7a1b8a5 aa17c7a1b8a5 b9bbc0d6e9f3 b9bbc0d6e9f3 aa17c7a1b8a5 aa17c7a1b8a5 aa17c7a1b8a5 aa17c7a1b8a5 aa17c7a1b8a5 aa17c7a1b8a5 aa17c7a1b8a5 b9bbc0d6e9f3 1088ded6e602 1088ded6e602 aa17c7a1b8a5 1088ded6e602 1088ded6e602 acc05c33cc0c f91d3f9b7230 1088ded6e602 1088ded6e602 9492ab68331f 1088ded6e602 1088ded6e602 1088ded6e602 1088ded6e602 1088ded6e602 1088ded6e602 1088ded6e602 1088ded6e602 9492ab68331f 1088ded6e602 f91d3f9b7230 acc05c33cc0c b9bbc0d6e9f3 acc05c33cc0c aa17c7a1b8a5 aa17c7a1b8a5 aa17c7a1b8a5 aa17c7a1b8a5 aa17c7a1b8a5 aa17c7a1b8a5 aa17c7a1b8a5 aa17c7a1b8a5 81397bd3e77f aa17c7a1b8a5 aa17c7a1b8a5 aa17c7a1b8a5 acc05c33cc0c 52da7cba88a6 52da7cba88a6 f91d3f9b7230 | ## -*- coding: utf-8 -*-
<%inherit file="/base/base.html"/>
<%def name="title()">
${_('Edit repository')} ${c.repo_info.repo_name} - ${c.rhodecode_name}
</%def>
<%def name="breadcrumbs_links()">
${h.link_to(_(u'Home'),h.url('/'))}
»
${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))}
»
${_('edit')}
</%def>
<%def name="page_nav()">
${self.menu('options')}
</%def>
<%def name="main()">
<div class="box box-left">
<!-- box / title -->
<div class="title">
${self.breadcrumbs()}
</div>
${h.form(url('repo', repo_name=c.repo_info.repo_name),method='put')}
<div class="form">
<!-- fields -->
<div class="fields">
<div class="field">
<div class="label">
<label for="repo_name">${_('Name')}:</label>
</div>
<div class="input">
${h.text('repo_name',class_="medium")}
</div>
</div>
<div class="field">
<div class="label">
<label for="clone_uri">${_('Clone uri')}:</label>
</div>
<div class="input">
${h.text('clone_uri',class_="medium")}
<span class="help-block">${_('Optional http[s] url from which repository should be cloned.')}</span>
</div>
</div>
<div class="field">
<div class="label">
<label for="repo_group">${_('Repository group')}:</label>
</div>
<div class="input">
${h.select('repo_group','',c.repo_groups,class_="medium")}
<span class="help-block">${_('Optional select a group to put this repository into.')}</span>
</div>
</div>
<div class="field">
<div class="label">
<label for="repo_type">${_('Type')}:</label>
</div>
<div class="input">
${h.select('repo_type','hg',c.backends,class_="medium")}
</div>
</div>
<div class="field">
<div class="label">
<label for="repo_landing_rev">${_('Landing revision')}:</label>
</div>
<div class="input">
${h.select('repo_landing_rev','',c.landing_revs,class_="medium")}
<span class="help-block">${_('Default revision for files page, downloads, whoosh and readme')}</span>
</div>
</div>
<div class="field">
<div class="label label-textarea">
<label for="repo_description">${_('Description')}:</label>
</div>
<div class="textarea text-area editor">
${h.textarea('repo_description')}
<span class="help-block">${_('Keep it short and to the point. Use a README file for longer descriptions.')}</span>
</div>
</div>
<div class="field">
<div class="label label-checkbox">
<label for="repo_private">${_('Private repository')}:</label>
</div>
<div class="checkboxes">
${h.checkbox('repo_private',value="True")}
<span class="help-block">${_('Private repositories are only visible to people explicitly added as collaborators.')}</span>
</div>
</div>
<div class="field">
<div class="label label-checkbox">
<label for="repo_enable_statistics">${_('Enable statistics')}:</label>
</div>
<div class="checkboxes">
${h.checkbox('repo_enable_statistics',value="True")}
<span class="help-block">${_('Enable statistics window on summary page.')}</span>
</div>
</div>
<div class="field">
<div class="label label-checkbox">
<label for="repo_enable_downloads">${_('Enable downloads')}:</label>
</div>
<div class="checkboxes">
${h.checkbox('repo_enable_downloads',value="True")}
<span class="help-block">${_('Enable download menu on summary page.')}</span>
</div>
</div>
<div class="field">
<div class="label label-checkbox">
<label for="repo_enable_locking">${_('Enable locking')}:</label>
</div>
<div class="checkboxes">
${h.checkbox('repo_enable_locking',value="True")}
<span class="help-block">${_('Enable lock-by-pulling on repository.')}</span>
</div>
</div>
<div class="field">
<div class="label">
<label for="user">${_('Owner')}:</label>
</div>
<div class="input input-medium ac">
<div class="perm_ac">
${h.text('user',class_='yui-ac-input')}
<span class="help-block">${_('Change owner of this repository.')}</span>
<div id="owner_container"></div>
</div>
</div>
</div>
<div class="field">
<div class="label">
<label for="input">${_('Permissions')}:</label>
</div>
<div class="input">
<%include file="repo_edit_perms.html"/>
</div>
<div class="buttons">
${h.submit('save',_('Save'),class_="ui-btn large")}
${h.reset('reset',_('Reset'),class_="ui-btn large")}
</div>
</div>
</div>
</div>
${h.end_form()}
</div>
<div class="box box-right">
<div class="title">
<h5>${_('Administration')}</h5>
</div>
<h3>${_('Statistics')}</h3>
${h.form(url('repo_stats', repo_name=c.repo_info.repo_name),method='delete')}
<div class="form">
<div class="fields">
${h.submit('reset_stats_%s' % c.repo_info.repo_name,_('Reset current statistics'),class_="ui-btn",onclick="return confirm('"+_('Confirm to remove current statistics')+"');")}
<div class="field" style="border:none;color:#888">
<ul>
<li>${_('Fetched to rev')}: ${c.stats_revision}/${c.repo_last_rev}</li>
<li>${_('Stats gathered')}: ${c.stats_percentage}%</li>
</ul>
</div>
</div>
</div>
${h.end_form()}
%if c.repo_info.clone_uri:
<h3>${_('Remote')}</h3>
${h.form(url('repo_pull', repo_name=c.repo_info.repo_name),method='put')}
<div class="form">
<div class="fields">
${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')+"');")}
<div class="field" style="border:none">
<ul>
<li><a href="${c.repo_info.clone_uri}">${c.repo_info.clone_uri}</a></li>
</ul>
</div>
</div>
</div>
${h.end_form()}
%endif
<h3>${_('Cache')}</h3>
${h.form(url('repo_cache', repo_name=c.repo_info.repo_name),method='delete')}
<div class="form">
<div class="fields">
${h.submit('reset_cache_%s' % c.repo_info.repo_name,_('Invalidate repository cache'),class_="ui-btn",onclick="return confirm('"+_('Confirm to invalidate repository cache')+"');")}
<div class="field" style="border:none;color:#888">
<ul>
<li>${_('Manually invalidate cache for this repository. On first access repository will be cached again')}
</li>
</ul>
</div>
<div class="field" style="border:none;">
${_('List of cached values')}
<table>
<tr>
<th>${_('Prefix')}</th>
<th>${_('Key')}</th>
<th>${_('Active')}</th>
</tr>
%for cache in c.repo_info.cache_keys:
<tr>
<td>${cache.prefix or '-'}</td>
<td>${cache.cache_key}</td>
<td>${h.bool2icon(cache.cache_active)}</td>
</tr>
%endfor
</table>
</div>
</div>
</div>
${h.end_form()}
<h3>${_('Public journal')}</h3>
${h.form(url('repo_public_journal', repo_name=c.repo_info.repo_name),method='put')}
<div class="form">
${h.hidden('auth_token',str(h.get_token()))}
<div class="field">
%if c.in_public_journal:
${h.submit('set_public_%s' % c.repo_info.repo_name,_('Remove from public journal'),class_="ui-btn")}
%else:
${h.submit('set_public_%s' % c.repo_info.repo_name,_('Add to public journal'),class_="ui-btn")}
%endif
</div>
<div class="field" style="border:none;color:#888">
<ul>
<li>${_('All actions made on this repository will be accessible to everyone in public journal')}
</li>
</ul>
</div>
</div>
${h.end_form()}
<h3>${_('Locking')}</h3>
${h.form(url('repo_locking', repo_name=c.repo_info.repo_name),method='put')}
<div class="form">
<div class="fields">
%if c.repo_info.locked[0]:
${h.submit('set_unlock' ,_('Unlock locked repo'),class_="ui-btn",onclick="return confirm('"+_('Confirm to unlock repository')+"');")}
${'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])))}
%else:
${h.submit('set_lock',_('lock repo'),class_="ui-btn",onclick="return confirm('"+_('Confirm to lock repository')+"');")}
${_('Repository is not locked')}
%endif
</div>
<div class="field" style="border:none;color:#888">
<ul>
<li>${_('Force locking on repository. Works only when anonymous access is disabled')}
</li>
</ul>
</div>
</div>
${h.end_form()}
<h3>${_('Set as fork of')}</h3>
${h.form(url('repo_as_fork', repo_name=c.repo_info.repo_name),method='put')}
<div class="form">
<div class="fields">
${h.select('id_fork_of','',c.repos_list,class_="medium")}
${h.submit('set_as_fork_%s' % c.repo_info.repo_name,_('set'),class_="ui-btn",)}
</div>
<div class="field" style="border:none;color:#888">
<ul>
<li>${_('''Manually set this repository as a fork of another from the list''')}</li>
</ul>
</div>
</div>
${h.end_form()}
<h3>${_('Delete')}</h3>
${h.form(url('repo', repo_name=c.repo_info.repo_name),method='delete')}
<div class="form">
<div class="fields">
${h.submit('remove_%s' % c.repo_info.repo_name,_('Remove this repository'),class_="ui-btn red",onclick="return confirm('"+_('Confirm to delete this repository')+"');")}
</div>
<div class="field" style="border:none;color:#888">
<ul>
<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>
</ul>
</div>
</div>
${h.end_form()}
</div>
</%def>
|