comparison rhodecode/templates/admin/repos/repo_edit_settings.html @ 4116:ffd45b185016 rhodecode-2.2.5-gpl

Imported some of the GPLv3'd changes from RhodeCode v2.2.5. This imports changes between changesets 21af6c4eab3d and 6177597791c2 in RhodeCode's original repository, including only changes to Python files and HTML. RhodeCode clearly licensed its changes to these files under GPLv3 in their /LICENSE file, which states the following: The Python code and integrated HTML are licensed under the GPLv3 license. (See: https://code.rhodecode.com/rhodecode/files/v2.2.5/LICENSE or http://web.archive.org/web/20140512193334/https://code.rhodecode.com/rhodecode/files/f3b123159901f15426d18e3dc395e8369f70ebe0/LICENSE for an online copy of that LICENSE file) Conservancy reviewed these changes and confirmed that they can be licensed as a whole to the Kallithea project under GPLv3-only. While some of the contents committed herein are clearly licensed GPLv3-or-later, on the whole we must assume the are GPLv3-only, since the statement above from RhodeCode indicates that they intend GPLv3-only as their license, per GPLv3ยง14 and other relevant sections of GPLv3.
author Bradley M. Kuhn <bkuhn@sfconservancy.org>
date Wed, 02 Jul 2014 19:03:13 -0400
parents
children
comparison
equal deleted inserted replaced
4115:8b7294a804a0 4116:ffd45b185016
1 ${h.form(url('repo', repo_name=c.repo_info.repo_name),method='put')}
2 <div class="form">
3 <!-- fields -->
4 <div class="fields">
5 <div class="field">
6 <div class="label">
7 <label for="repo_name">${_('Name')}:</label>
8 </div>
9 <div class="input">
10 ${h.text('repo_name',class_="medium")}
11 <span class="help-block">${_('Non-changeable id')}: `_${c.repo_info.repo_id}` <span><a id="show_more_clone_id" href="#">${_('what is that ?')}</a></span></span>
12 <span id="clone_id" class="help-block" style="display: none">
13 ${_('URL by id')}: `${c.repo_info.clone_url(with_id=True)}` </br>
14 ${_('''In case this repository is renamed or moved into another group the repository url changes.
15 Using above url guarantees that this repository will allways be accessible under such url.
16 Usefull for CI systems, or any other cases that you need to hardcode the url into 3rd party service.''')}</span>
17 </div>
18 </div>
19 <div class="field">
20 <div class="label">
21 <label for="clone_uri">${_('Clone uri')}:</label>
22 </div>
23 <div class="input">
24 %if c.repo_info.clone_uri:
25 <div id="clone_uri_hidden" style="font-size: 14px">
26 <span id="clone_uri_hidden_value">${c.repo_info.clone_uri_hidden}</span>
27 <span style="cursor: pointer; padding: 0px 0px 5px 0px" id="edit_clone_uri"><i class="icon-edit"></i>${_('edit')}</span>
28 </div>
29 <div id="alter_clone_uri" style="display: none">
30 ${h.text('clone_uri',class_="medium", placeholder=_('new value'))}
31 </div>
32 %else:
33 ## not set yet, display form to set it
34 ${h.text('clone_uri',class_="medium")}
35 ${h.hidden('clone_uri_change', 'NEW')}
36 %endif
37 <span id="alter_clone_uri_help_block" class="help-block">${_('http[s] url used for doing remote pulls.')}</span>
38 </div>
39 </div>
40 <div class="field">
41 <div class="label">
42 <label for="repo_group">${_('Repository group')}:</label>
43 </div>
44 <div class="input">
45 ${h.select('repo_group','',c.repo_groups,class_="medium")}
46 <span class="help-block">${_('Optional select a group to put this repository into.')}</span>
47 </div>
48 </div>
49 <div class="field">
50 <div class="label">
51 <label for="repo_landing_rev">${_('Landing revision')}:</label>
52 </div>
53 <div class="input">
54 ${h.select('repo_landing_rev','',c.landing_revs,class_="medium")}
55 <span class="help-block">${_('Default revision for files page, downloads, whoosh and readme')}</span>
56 </div>
57 </div>
58 <div class="field">
59 <div class="label">
60 <label for="user">${_('Owner')}:</label>
61 </div>
62 <div class="input input-medium ac">
63 <div class="perm_ac">
64 ${h.text('user',class_='yui-ac-input')}
65 <span class="help-block">${_('Change owner of this repository.')}</span>
66 <div id="owner_container"></div>
67 </div>
68 </div>
69 </div>
70 <div class="field">
71 <div class="label label-textarea">
72 <label for="repo_description">${_('Description')}:</label>
73 </div>
74 <div class="textarea text-area editor">
75 ${h.textarea('repo_description', style="height:165px")}
76 <span class="help-block">${_('Keep it short and to the point. Use a README file for longer descriptions.')}</span>
77 </div>
78 </div>
79
80 <div class="field">
81 <div class="label label-checkbox">
82 <label for="repo_private">${_('Private repository')}:</label>
83 </div>
84 <div class="checkboxes">
85 ${h.checkbox('repo_private',value="True")}
86 <span class="help-block">${_('Private repositories are only visible to people explicitly added as collaborators.')}</span>
87 </div>
88 </div>
89 <div class="field">
90 <div class="label label-checkbox">
91 <label for="repo_enable_statistics">${_('Enable statistics')}:</label>
92 </div>
93 <div class="checkboxes">
94 ${h.checkbox('repo_enable_statistics',value="True")}
95 <span class="help-block">${_('Enable statistics window on summary page.')}</span>
96 </div>
97 </div>
98 <div class="field">
99 <div class="label label-checkbox">
100 <label for="repo_enable_downloads">${_('Enable downloads')}:</label>
101 </div>
102 <div class="checkboxes">
103 ${h.checkbox('repo_enable_downloads',value="True")}
104 <span class="help-block">${_('Enable download menu on summary page.')}</span>
105 </div>
106 </div>
107 <div class="field">
108 <div class="label label-checkbox">
109 <label for="repo_enable_locking">${_('Enable locking')}:</label>
110 </div>
111 <div class="checkboxes">
112 ${h.checkbox('repo_enable_locking',value="True")}
113 <span class="help-block">${_('Enable lock-by-pulling on repository.')}</span>
114 </div>
115 </div>
116
117 %if c.visual.repository_fields:
118 ## EXTRA FIELDS
119 %for field in c.repo_fields:
120 <div class="field">
121 <div class="label">
122 <label for="${field.field_key_prefixed}">${field.field_label} (${field.field_key}):</label>
123 </div>
124 <div class="input input-medium">
125 ${h.text(field.field_key_prefixed, field.field_value, class_='medium')}
126 %if field.field_desc:
127 <span class="help-block">${field.field_desc}</span>
128 %endif
129 </div>
130 </div>
131 %endfor
132 %endif
133 <div class="buttons">
134 ${h.submit('save',_('Save'),class_="btn")}
135 ${h.reset('reset',_('Reset'),class_="btn")}
136 </div>
137 </div>
138 </div>
139 ${h.end_form()}
140
141 <script>
142 $(document).ready(function(){
143 $('#show_more_clone_id').on('click', function(e){
144 $('#clone_id').show();
145 e.preventDefault();
146 })
147 $('#edit_clone_uri').on('click', function(e){
148 $('#alter_clone_uri').show();
149 $('#edit_clone_uri').hide();
150 $('#clone_uri_hidden').hide();
151 ## store hash of old value for change detection
152 var uri_change = '<input id="clone_uri_change" name="clone_uri_change" type="hidden" value="${h.md5(c.repo_info.clone_uri or "").hexdigest()}" />';
153 $('#alter_clone_uri_help_block').html($('#alter_clone_uri_help_block').html()+" ("+$('#clone_uri_hidden_value').html()+")")
154 })
155
156 $('#repo_landing_rev').select2({
157 'dropdownAutoWidth': true
158 });
159 $('#repo_group').select2({
160 'dropdownAutoWidth': true
161 });
162
163 })
164 </script>