##// END OF EJS Templates
admin-settings: added anchors for vcs settings panels.
marcink -
r1597:89ead7e7 default
parent child Browse files
Show More
@@ -1,324 +1,322 b''
1 ## snippet for displaying vcs settings
1 ## snippet for displaying vcs settings
2 ## usage:
2 ## usage:
3 ## <%namespace name="vcss" file="/base/vcssettings.mako"/>
3 ## <%namespace name="vcss" file="/base/vcssettings.mako"/>
4 ## ${vcss.vcs_settings_fields()}
4 ## ${vcss.vcs_settings_fields()}
5
5
6 <%def name="vcs_settings_fields(suffix='', svn_branch_patterns=None, svn_tag_patterns=None, repo_type=None, display_globals=False, allow_repo_location_change=False, **kwargs)">
6 <%def name="vcs_settings_fields(suffix='', svn_branch_patterns=None, svn_tag_patterns=None, repo_type=None, display_globals=False, allow_repo_location_change=False, **kwargs)">
7 % if display_globals:
7 % if display_globals:
8 <div class="panel panel-default">
8 <div class="panel panel-default">
9 <div class="panel-heading" id="general">
9 <div class="panel-heading" id="general">
10 <h3 class="panel-title">${_('General')}</h3>
10 <h3 class="panel-title">${_('General')}<a class="permalink" href="#general"></a></h3>
11 </div>
11 </div>
12 <div class="panel-body">
12 <div class="panel-body">
13 <div class="field">
13 <div class="field">
14 <div class="checkbox">
14 <div class="checkbox">
15 ${h.checkbox('web_push_ssl' + suffix, 'True')}
15 ${h.checkbox('web_push_ssl' + suffix, 'True')}
16 <label for="web_push_ssl${suffix}">${_('Require SSL for vcs operations')}</label>
16 <label for="web_push_ssl${suffix}">${_('Require SSL for vcs operations')}</label>
17 </div>
17 </div>
18 <div class="label">
18 <div class="label">
19 <span class="help-block">${_('Activate to set RhodeCode to require SSL for pushing or pulling. If SSL certificate is missing it will return a HTTP Error 406: Not Acceptable.')}</span>
19 <span class="help-block">${_('Activate to set RhodeCode to require SSL for pushing or pulling. If SSL certificate is missing it will return a HTTP Error 406: Not Acceptable.')}</span>
20 </div>
20 </div>
21 </div>
21 </div>
22 </div>
22 </div>
23 </div>
23 </div>
24 % endif
24 % endif
25
25
26 % if display_globals:
26 % if display_globals:
27 <div class="panel panel-default">
27 <div class="panel panel-default">
28 <div class="panel-heading">
28 <div class="panel-heading" id="vcs-storage-options">
29 <h3 class="panel-title">${_('Main Storage Location')}</h3>
29 <h3 class="panel-title">${_('Main Storage Location')}<a class="permalink" href="#vcs-storage-options"></a></h3>
30 </div>
30 </div>
31 <div class="panel-body">
31 <div class="panel-body">
32 <div class="field">
32 <div class="field">
33 <div class="inputx locked_input">
33 <div class="inputx locked_input">
34 %if allow_repo_location_change:
34 %if allow_repo_location_change:
35 ${h.text('paths_root_path',size=59,readonly="readonly", class_="disabled")}
35 ${h.text('paths_root_path',size=59,readonly="readonly", class_="disabled")}
36 <span id="path_unlock" class="tooltip"
36 <span id="path_unlock" class="tooltip"
37 title="${h.tooltip(_('Click to unlock. You must restart RhodeCode in order to make this setting take effect.'))}">
37 title="${h.tooltip(_('Click to unlock. You must restart RhodeCode in order to make this setting take effect.'))}">
38 <div class="btn btn-default lock_input_button"><i id="path_unlock_icon" class="icon-lock"></i></div>
38 <div class="btn btn-default lock_input_button"><i id="path_unlock_icon" class="icon-lock"></i></div>
39 </span>
39 </span>
40 %else:
40 %else:
41 ${_('Repository location change is disabled. You can enable this by changing the `allow_repo_location_change` inside .ini file.')}
41 ${_('Repository location change is disabled. You can enable this by changing the `allow_repo_location_change` inside .ini file.')}
42 ## form still requires this but we cannot internally change it anyway
42 ## form still requires this but we cannot internally change it anyway
43 ${h.hidden('paths_root_path',size=30,readonly="readonly", class_="disabled")}
43 ${h.hidden('paths_root_path',size=30,readonly="readonly", class_="disabled")}
44 %endif
44 %endif
45 </div>
45 </div>
46 </div>
46 </div>
47 <div class="label">
47 <div class="label">
48 <span class="help-block">${_('Filesystem location where repositories should be stored. After changing this value a restart and rescan of the repository folder are required.')}</span>
48 <span class="help-block">${_('Filesystem location where repositories should be stored. After changing this value a restart and rescan of the repository folder are required.')}</span>
49 </div>
49 </div>
50 </div>
50 </div>
51 </div>
51 </div>
52 % endif
52 % endif
53
53
54 % if display_globals or repo_type in ['git', 'hg']:
54 % if display_globals or repo_type in ['git', 'hg']:
55 <div class="panel panel-default">
55 <div class="panel panel-default">
56 <div class="panel-heading" id="general">
56 <div class="panel-heading" id="vcs-hooks-options">
57 <h3 class="panel-title">${_('Internal Hooks')}</h3>
57 <h3 class="panel-title">${_('Internal Hooks')}<a class="permalink" href="#vcs-hooks-options"></a></h3>
58 </div>
58 </div>
59 <div class="panel-body">
59 <div class="panel-body">
60 <div class="field">
60 <div class="field">
61 <div class="checkbox">
61 <div class="checkbox">
62 ${h.checkbox('hooks_changegroup_repo_size' + suffix, 'True', **kwargs)}
62 ${h.checkbox('hooks_changegroup_repo_size' + suffix, 'True', **kwargs)}
63 <label for="hooks_changegroup_repo_size${suffix}">${_('Show repository size after push')}</label>
63 <label for="hooks_changegroup_repo_size${suffix}">${_('Show repository size after push')}</label>
64 </div>
64 </div>
65
65
66 <div class="label">
66 <div class="label">
67 <span class="help-block">${_('Trigger a hook that calculates repository size after each push.')}</span>
67 <span class="help-block">${_('Trigger a hook that calculates repository size after each push.')}</span>
68 </div>
68 </div>
69 <div class="checkbox">
69 <div class="checkbox">
70 ${h.checkbox('hooks_changegroup_push_logger' + suffix, 'True', **kwargs)}
70 ${h.checkbox('hooks_changegroup_push_logger' + suffix, 'True', **kwargs)}
71 <label for="hooks_changegroup_push_logger${suffix}">${_('Execute pre/post push hooks')}</label>
71 <label for="hooks_changegroup_push_logger${suffix}">${_('Execute pre/post push hooks')}</label>
72 </div>
72 </div>
73 <div class="label">
73 <div class="label">
74 <span class="help-block">${_('Execute Built in pre/post push hooks. This also executes rcextensions hooks.')}</span>
74 <span class="help-block">${_('Execute Built in pre/post push hooks. This also executes rcextensions hooks.')}</span>
75 </div>
75 </div>
76 <div class="checkbox">
76 <div class="checkbox">
77 ${h.checkbox('hooks_outgoing_pull_logger' + suffix, 'True', **kwargs)}
77 ${h.checkbox('hooks_outgoing_pull_logger' + suffix, 'True', **kwargs)}
78 <label for="hooks_outgoing_pull_logger${suffix}">${_('Execute pre/post pull hooks')}</label>
78 <label for="hooks_outgoing_pull_logger${suffix}">${_('Execute pre/post pull hooks')}</label>
79 </div>
79 </div>
80 <div class="label">
80 <div class="label">
81 <span class="help-block">${_('Execute Built in pre/post pull hooks. This also executes rcextensions hooks.')}</span>
81 <span class="help-block">${_('Execute Built in pre/post pull hooks. This also executes rcextensions hooks.')}</span>
82 </div>
82 </div>
83 </div>
83 </div>
84 </div>
84 </div>
85 </div>
85 </div>
86 % endif
86 % endif
87
87
88 % if display_globals or repo_type in ['hg']:
88 % if display_globals or repo_type in ['hg']:
89 <div class="panel panel-default">
89 <div class="panel panel-default">
90 <div class="panel-heading">
90 <div class="panel-heading" id="vcs-hg-options">
91 <h3 class="panel-title">${_('Mercurial Settings')}</h3>
91 <h3 class="panel-title">${_('Mercurial Settings')}<a class="permalink" href="#vcs-hg-options"></a></h3>
92 </div>
92 </div>
93 <div class="panel-body">
93 <div class="panel-body">
94 <div class="checkbox">
94 <div class="checkbox">
95 ${h.checkbox('extensions_largefiles' + suffix, 'True', **kwargs)}
95 ${h.checkbox('extensions_largefiles' + suffix, 'True', **kwargs)}
96 <label for="extensions_largefiles${suffix}">${_('Enable largefiles extension')}</label>
96 <label for="extensions_largefiles${suffix}">${_('Enable largefiles extension')}</label>
97 </div>
97 </div>
98 <div class="label">
98 <div class="label">
99 % if display_globals:
99 % if display_globals:
100 <span class="help-block">${_('Enable Largefiles extensions for all repositories.')}</span>
100 <span class="help-block">${_('Enable Largefiles extensions for all repositories.')}</span>
101 % else:
101 % else:
102 <span class="help-block">${_('Enable Largefiles extensions for this repository.')}</span>
102 <span class="help-block">${_('Enable Largefiles extensions for this repository.')}</span>
103 % endif
103 % endif
104 </div>
104 </div>
105
105
106 % if display_globals:
106 % if display_globals:
107 <div class="field">
107 <div class="field">
108 <div class="input">
108 <div class="input">
109 ${h.text('largefiles_usercache' + suffix, size=59)}
109 ${h.text('largefiles_usercache' + suffix, size=59)}
110 </div>
110 </div>
111 </div>
111 </div>
112 <div class="label">
112 <div class="label">
113 <span class="help-block">${_('Filesystem location where Mercurial largefile objects should be stored.')}</span>
113 <span class="help-block">${_('Filesystem location where Mercurial largefile objects should be stored.')}</span>
114 </div>
114 </div>
115 % endif
115 % endif
116
116
117 <div class="checkbox">
117 <div class="checkbox">
118 ${h.checkbox('phases_publish' + suffix, 'True', **kwargs)}
118 ${h.checkbox('phases_publish' + suffix, 'True', **kwargs)}
119 <label for="phases_publish${suffix}">${_('Set repositories as publishing') if display_globals else _('Set repository as publishing')}</label>
119 <label for="phases_publish${suffix}">${_('Set repositories as publishing') if display_globals else _('Set repository as publishing')}</label>
120 </div>
120 </div>
121 <div class="label">
121 <div class="label">
122 <span class="help-block">${_('When this is enabled all commits in the repository are seen as public commits by clients.')}</span>
122 <span class="help-block">${_('When this is enabled all commits in the repository are seen as public commits by clients.')}</span>
123 </div>
123 </div>
124 % if display_globals:
124 % if display_globals:
125 <div class="checkbox">
125 <div class="checkbox">
126 ${h.checkbox('extensions_hgsubversion' + suffix,'True')}
126 ${h.checkbox('extensions_hgsubversion' + suffix,'True')}
127 <label for="extensions_hgsubversion${suffix}">${_('Enable hgsubversion extension')}</label>
127 <label for="extensions_hgsubversion${suffix}">${_('Enable hgsubversion extension')}</label>
128 </div>
128 </div>
129 <div class="label">
129 <div class="label">
130 <span class="help-block">${_('Requires hgsubversion library to be installed. Allows cloning remote SVN repositories and migrates them to Mercurial type.')}</span>
130 <span class="help-block">${_('Requires hgsubversion library to be installed. Allows cloning remote SVN repositories and migrates them to Mercurial type.')}</span>
131 </div>
131 </div>
132 % endif
132 % endif
133 </div>
133 </div>
134 </div>
134 </div>
135 ## LABS for HG
135 ## LABS for HG
136 % if c.labs_active:
136 % if c.labs_active:
137 <div class="panel panel-danger">
137 <div class="panel panel-danger">
138 <div class="panel-heading">
138 <div class="panel-heading">
139 <h3 class="panel-title">${_('Mercurial Labs Settings')} (${_('These features are considered experimental and may not work as expected.')})</h3>
139 <h3 class="panel-title">${_('Mercurial Labs Settings')} (${_('These features are considered experimental and may not work as expected.')})</h3>
140 </div>
140 </div>
141 <div class="panel-body">
141 <div class="panel-body">
142
142
143 <div class="checkbox">
143 <div class="checkbox">
144 ${h.checkbox('rhodecode_hg_use_rebase_for_merging' + suffix, 'True', **kwargs)}
144 ${h.checkbox('rhodecode_hg_use_rebase_for_merging' + suffix, 'True', **kwargs)}
145 <label for="rhodecode_hg_use_rebase_for_merging${suffix}">${_('Use rebase as merge strategy')}</label>
145 <label for="rhodecode_hg_use_rebase_for_merging${suffix}">${_('Use rebase as merge strategy')}</label>
146 </div>
146 </div>
147 <div class="label">
147 <div class="label">
148 <span class="help-block">${_('Use rebase instead of creating a merge commit when merging via web interface.')}</span>
148 <span class="help-block">${_('Use rebase instead of creating a merge commit when merging via web interface.')}</span>
149 </div>
149 </div>
150
150
151 </div>
151 </div>
152 </div>
152 </div>
153 % endif
153 % endif
154
154
155 % endif
155 % endif
156
156
157 % if display_globals or repo_type in ['git']:
157 % if display_globals or repo_type in ['git']:
158 <div class="panel panel-default">
158 <div class="panel panel-default">
159 <div class="panel-heading">
159 <div class="panel-heading" id="vcs-git-options">
160 <h3 class="panel-title">${_('Git Settings')}</h3>
160 <h3 class="panel-title">${_('Git Settings')}<a class="permalink" href="#vcs-git-options"></a></h3>
161 </div>
161 </div>
162 <div class="panel-body">
162 <div class="panel-body">
163 <div class="checkbox">
163 <div class="checkbox">
164 ${h.checkbox('vcs_git_lfs_enabled' + suffix, 'True', **kwargs)}
164 ${h.checkbox('vcs_git_lfs_enabled' + suffix, 'True', **kwargs)}
165 <label for="vcs_git_lfs_enabled${suffix}">${_('Enable lfs extension')}</label>
165 <label for="vcs_git_lfs_enabled${suffix}">${_('Enable lfs extension')}</label>
166 </div>
166 </div>
167 <div class="label">
167 <div class="label">
168 % if display_globals:
168 % if display_globals:
169 <span class="help-block">${_('Enable lfs extensions for all repositories.')}</span>
169 <span class="help-block">${_('Enable lfs extensions for all repositories.')}</span>
170 % else:
170 % else:
171 <span class="help-block">${_('Enable lfs extensions for this repository.')}</span>
171 <span class="help-block">${_('Enable lfs extensions for this repository.')}</span>
172 % endif
172 % endif
173 </div>
173 </div>
174
174
175 % if display_globals:
175 % if display_globals:
176 <div class="field">
176 <div class="field">
177 <div class="input">
177 <div class="input">
178 ${h.text('vcs_git_lfs_store_location' + suffix, size=59)}
178 ${h.text('vcs_git_lfs_store_location' + suffix, size=59)}
179 </div>
179 </div>
180 </div>
180 </div>
181 <div class="label">
181 <div class="label">
182 <span class="help-block">${_('Filesystem location where Git lfs objects should be stored.')}</span>
182 <span class="help-block">${_('Filesystem location where Git lfs objects should be stored.')}</span>
183 </div>
183 </div>
184 % endif
184 % endif
185 </div>
185 </div>
186 </div>
186 </div>
187 % endif
187 % endif
188
188
189
189
190 % if display_globals:
190 % if display_globals:
191 <div class="panel panel-default">
191 <div class="panel panel-default">
192 <div class="panel-heading">
192 <div class="panel-heading" id="vcs-global-svn-options">
193 <h3 class="panel-title">${_('Global Subversion Settings')}</h3>
193 <h3 class="panel-title">${_('Global Subversion Settings')}<a class="permalink" href="#vcs-global-svn-options"></a></h3>
194 </div>
194 </div>
195 <div class="panel-body">
195 <div class="panel-body">
196 <div class="field">
196 <div class="field">
197 <div class="checkbox">
197 <div class="checkbox">
198 ${h.checkbox('vcs_svn_proxy_http_requests_enabled' + suffix, 'True', **kwargs)}
198 ${h.checkbox('vcs_svn_proxy_http_requests_enabled' + suffix, 'True', **kwargs)}
199 <label for="vcs_svn_proxy_http_requests_enabled${suffix}">${_('Proxy subversion HTTP requests')}</label>
199 <label for="vcs_svn_proxy_http_requests_enabled${suffix}">${_('Proxy subversion HTTP requests')}</label>
200 </div>
200 </div>
201 <div class="label">
201 <div class="label">
202 <span class="help-block">
202 <span class="help-block">
203 ${_('Subversion HTTP Support. Enables communication with SVN over HTTP protocol.')}
203 ${_('Subversion HTTP Support. Enables communication with SVN over HTTP protocol.')}
204 <a href="${h.url('enterprise_svn_setup')}" target="_blank">${_('SVN Protocol setup Documentation')}</a>.
204 <a href="${h.url('enterprise_svn_setup')}" target="_blank">${_('SVN Protocol setup Documentation')}</a>.
205 </span>
205 </span>
206 </div>
206 </div>
207 </div>
207 </div>
208 <div class="field">
208 <div class="field">
209 <div class="label">
209 <div class="label">
210 <label for="vcs_svn_proxy_http_server_url">${_('Subversion HTTP Server URL')}</label><br/>
210 <label for="vcs_svn_proxy_http_server_url">${_('Subversion HTTP Server URL')}</label><br/>
211 </div>
211 </div>
212 <div class="input">
212 <div class="input">
213 ${h.text('vcs_svn_proxy_http_server_url',size=59)}
213 ${h.text('vcs_svn_proxy_http_server_url',size=59)}
214 % if c.svn_proxy_generate_config:
214 % if c.svn_proxy_generate_config:
215 <span class="buttons">
215 <span class="buttons">
216 <button class="btn btn-primary" id="vcs_svn_generate_cfg">${_('Generate Apache Config')}</button>
216 <button class="btn btn-primary" id="vcs_svn_generate_cfg">${_('Generate Apache Config')}</button>
217 </span>
217 </span>
218 % endif
218 % endif
219 </div>
219 </div>
220 </div>
220 </div>
221 </div>
221 </div>
222 </div>
222 </div>
223 % endif
223 % endif
224
224
225 % if display_globals or repo_type in ['svn']:
225 % if display_globals or repo_type in ['svn']:
226 <div class="panel panel-default">
226 <div class="panel panel-default">
227 <div class="panel-heading">
227 <div class="panel-heading" id="vcs-svn-options">
228 <h3 class="panel-title">${_('Subversion Settings')}</h3>
228 <h3 class="panel-title">${_('Subversion Settings')}<a class="permalink" href="#vcs-svn-options"></a></h3>
229 </div>
229 </div>
230 <div class="panel-body">
230 <div class="panel-body">
231 <div class="field">
231 <div class="field">
232 <div class="content" >
232 <div class="content" >
233 <label>${_('Repository patterns')}</label><br/>
233 <label>${_('Repository patterns')}</label><br/>
234 </div>
234 </div>
235 </div>
235 </div>
236 <div class="label">
236 <div class="label">
237 <span class="help-block">${_('Patterns for identifying SVN branches and tags. For recursive search, use "*". Eg.: "/branches/*"')}</span>
237 <span class="help-block">${_('Patterns for identifying SVN branches and tags. For recursive search, use "*". Eg.: "/branches/*"')}</span>
238 </div>
238 </div>
239
239
240 <div class="field branch_patterns">
240 <div class="field branch_patterns">
241 <div class="input" >
241 <div class="input" >
242 <label>${_('Branches')}:</label><br/>
242 <label>${_('Branches')}:</label><br/>
243 </div>
243 </div>
244 % if svn_branch_patterns:
244 % if svn_branch_patterns:
245 % for branch in svn_branch_patterns:
245 % for branch in svn_branch_patterns:
246 <div class="input adjacent" id="${'id%s' % branch.ui_id}">
246 <div class="input adjacent" id="${'id%s' % branch.ui_id}">
247 ${h.hidden('branch_ui_key' + suffix, branch.ui_key)}
247 ${h.hidden('branch_ui_key' + suffix, branch.ui_key)}
248 ${h.text('branch_value_%d' % branch.ui_id + suffix, branch.ui_value, size=59, readonly="readonly", class_='disabled')}
248 ${h.text('branch_value_%d' % branch.ui_id + suffix, branch.ui_value, size=59, readonly="readonly", class_='disabled')}
249 % if kwargs.get('disabled') != 'disabled':
249 % if kwargs.get('disabled') != 'disabled':
250 <span class="btn btn-x" onclick="ajaxDeletePattern(${branch.ui_id},'${'id%s' % branch.ui_id}')">
250 <span class="btn btn-x" onclick="ajaxDeletePattern(${branch.ui_id},'${'id%s' % branch.ui_id}')">
251 ${_('Delete')}
251 ${_('Delete')}
252 </span>
252 </span>
253 % endif
253 % endif
254 </div>
254 </div>
255 % endfor
255 % endfor
256 %endif
256 %endif
257 </div>
257 </div>
258 % if kwargs.get('disabled') != 'disabled':
258 % if kwargs.get('disabled') != 'disabled':
259 <div class="field branch_patterns">
259 <div class="field branch_patterns">
260 <div class="input" >
260 <div class="input" >
261 ${h.text('new_svn_branch',size=59,placeholder='New branch pattern')}
261 ${h.text('new_svn_branch',size=59,placeholder='New branch pattern')}
262 </div>
262 </div>
263 </div>
263 </div>
264 % endif
264 % endif
265 <div class="field tag_patterns">
265 <div class="field tag_patterns">
266 <div class="input" >
266 <div class="input" >
267 <label>${_('Tags')}:</label><br/>
267 <label>${_('Tags')}:</label><br/>
268 </div>
268 </div>
269 % if svn_tag_patterns:
269 % if svn_tag_patterns:
270 % for tag in svn_tag_patterns:
270 % for tag in svn_tag_patterns:
271 <div class="input" id="${'id%s' % tag.ui_id + suffix}">
271 <div class="input" id="${'id%s' % tag.ui_id + suffix}">
272 ${h.hidden('tag_ui_key' + suffix, tag.ui_key)}
272 ${h.hidden('tag_ui_key' + suffix, tag.ui_key)}
273 ${h.text('tag_ui_value_new_%d' % tag.ui_id + suffix, tag.ui_value, size=59, readonly="readonly", class_='disabled tag_input')}
273 ${h.text('tag_ui_value_new_%d' % tag.ui_id + suffix, tag.ui_value, size=59, readonly="readonly", class_='disabled tag_input')}
274 % if kwargs.get('disabled') != 'disabled':
274 % if kwargs.get('disabled') != 'disabled':
275 <span class="btn btn-x" onclick="ajaxDeletePattern(${tag.ui_id},'${'id%s' % tag.ui_id}')">
275 <span class="btn btn-x" onclick="ajaxDeletePattern(${tag.ui_id},'${'id%s' % tag.ui_id}')">
276 ${_('Delete')}
276 ${_('Delete')}
277 </span>
277 </span>
278 %endif
278 %endif
279 </div>
279 </div>
280 % endfor
280 % endfor
281 % endif
281 % endif
282 </div>
282 </div>
283 % if kwargs.get('disabled') != 'disabled':
283 % if kwargs.get('disabled') != 'disabled':
284 <div class="field tag_patterns">
284 <div class="field tag_patterns">
285 <div class="input" >
285 <div class="input" >
286 ${h.text('new_svn_tag' + suffix, size=59, placeholder='New tag pattern')}
286 ${h.text('new_svn_tag' + suffix, size=59, placeholder='New tag pattern')}
287 </div>
287 </div>
288 </div>
288 </div>
289 %endif
289 %endif
290 </div>
290 </div>
291 </div>
291 </div>
292 % else:
292 % else:
293 ${h.hidden('new_svn_branch' + suffix, '')}
293 ${h.hidden('new_svn_branch' + suffix, '')}
294 ${h.hidden('new_svn_tag' + suffix, '')}
294 ${h.hidden('new_svn_tag' + suffix, '')}
295 % endif
295 % endif
296
296
297
297
298
299
300 % if display_globals or repo_type in ['hg', 'git']:
298 % if display_globals or repo_type in ['hg', 'git']:
301 <div class="panel panel-default">
299 <div class="panel panel-default">
302 <div class="panel-heading">
300 <div class="panel-heading" id="vcs-pull-requests-options">
303 <h3 class="panel-title">${_('Pull Request Settings')}</h3>
301 <h3 class="panel-title">${_('Pull Request Settings')}<a class="permalink" href="#vcs-pull-requests-options"></a></h3>
304 </div>
302 </div>
305 <div class="panel-body">
303 <div class="panel-body">
306 <div class="checkbox">
304 <div class="checkbox">
307 ${h.checkbox('rhodecode_pr_merge_enabled' + suffix, 'True', **kwargs)}
305 ${h.checkbox('rhodecode_pr_merge_enabled' + suffix, 'True', **kwargs)}
308 <label for="rhodecode_pr_merge_enabled${suffix}">${_('Enable server-side merge for pull requests')}</label>
306 <label for="rhodecode_pr_merge_enabled${suffix}">${_('Enable server-side merge for pull requests')}</label>
309 </div>
307 </div>
310 <div class="label">
308 <div class="label">
311 <span class="help-block">${_('Note: when this feature is enabled, it only runs hooks defined in the rcextension package. Custom hooks added on the Admin -> Settings -> Hooks page will not be run when pull requests are automatically merged from the web interface.')}</span>
309 <span class="help-block">${_('Note: when this feature is enabled, it only runs hooks defined in the rcextension package. Custom hooks added on the Admin -> Settings -> Hooks page will not be run when pull requests are automatically merged from the web interface.')}</span>
312 </div>
310 </div>
313 <div class="checkbox">
311 <div class="checkbox">
314 ${h.checkbox('rhodecode_use_outdated_comments' + suffix, 'True', **kwargs)}
312 ${h.checkbox('rhodecode_use_outdated_comments' + suffix, 'True', **kwargs)}
315 <label for="rhodecode_use_outdated_comments${suffix}">${_('Invalidate and relocate inline comments during update')}</label>
313 <label for="rhodecode_use_outdated_comments${suffix}">${_('Invalidate and relocate inline comments during update')}</label>
316 </div>
314 </div>
317 <div class="label">
315 <div class="label">
318 <span class="help-block">${_('During the update of a pull request, the position of inline comments will be updated and outdated inline comments will be hidden.')}</span>
316 <span class="help-block">${_('During the update of a pull request, the position of inline comments will be updated and outdated inline comments will be hidden.')}</span>
319 </div>
317 </div>
320 </div>
318 </div>
321 </div>
319 </div>
322 % endif
320 % endif
323
321
324 </%def>
322 </%def>
General Comments 0
You need to be logged in to leave comments. Login now