Show More
@@ -1,266 +1,259 b'' | |||||
1 | ## snippet for displaying vcs settings |
|
1 | ## snippet for displaying vcs settings | |
2 | ## usage: |
|
2 | ## usage: | |
3 | ## <%namespace name="vcss" file="/base/vcssettings.html"/> |
|
3 | ## <%namespace name="vcss" file="/base/vcssettings.html"/> | |
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')}</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"> | |
29 | <h3 class="panel-title">${_('Main Storage Location')}</h3> |
|
29 | <h3 class="panel-title">${_('Main Storage Location')}</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="general"> | |
57 | <h3 class="panel-title">${_('Internal Hooks')}</h3> |
|
57 | <h3 class="panel-title">${_('Internal Hooks')}</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"> | |
91 | <h3 class="panel-title">${_('Mercurial Settings')}</h3> |
|
91 | <h3 class="panel-title">${_('Mercurial Settings')}</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 | <span class="help-block">${_('Enable Largefiles extensions for all repositories.')}</span> |
|
99 | <span class="help-block">${_('Enable Largefiles extensions for all repositories.')}</span> | |
100 | </div> |
|
100 | </div> | |
101 | <div class="checkbox"> |
|
101 | <div class="checkbox"> | |
102 | ${h.checkbox('phases_publish' + suffix, 'True', **kwargs)} |
|
102 | ${h.checkbox('phases_publish' + suffix, 'True', **kwargs)} | |
103 | <label for="phases_publish${suffix}">${_('Set repositories as publishing') if display_globals else _('Set repository as publishing')}</label> |
|
103 | <label for="phases_publish${suffix}">${_('Set repositories as publishing') if display_globals else _('Set repository as publishing')}</label> | |
104 | </div> |
|
104 | </div> | |
105 | <div class="label"> |
|
105 | <div class="label"> | |
106 | <span class="help-block">${_('When this is enabled all commits in the repository are seen as public commits by clients.')}</span> |
|
106 | <span class="help-block">${_('When this is enabled all commits in the repository are seen as public commits by clients.')}</span> | |
107 | </div> |
|
107 | </div> | |
108 | % if display_globals: |
|
108 | % if display_globals: | |
109 | <div class="checkbox"> |
|
109 | <div class="checkbox"> | |
110 | ${h.checkbox('extensions_hgsubversion' + suffix,'True')} |
|
110 | ${h.checkbox('extensions_hgsubversion' + suffix,'True')} | |
111 | <label for="extensions_hgsubversion${suffix}">${_('Enable hgsubversion extension')}</label> |
|
111 | <label for="extensions_hgsubversion${suffix}">${_('Enable hgsubversion extension')}</label> | |
112 | </div> |
|
112 | </div> | |
113 | <div class="label"> |
|
113 | <div class="label"> | |
114 | <span class="help-block">${_('Requires hgsubversion library to be installed. Allows cloning remote SVN repositories and migrates them to Mercurial type.')}</span> |
|
114 | <span class="help-block">${_('Requires hgsubversion library to be installed. Allows cloning remote SVN repositories and migrates them to Mercurial type.')}</span> | |
115 | </div> |
|
115 | </div> | |
116 | % endif |
|
116 | % endif | |
117 | </div> |
|
117 | </div> | |
118 | </div> |
|
118 | </div> | |
|
119 | ## LABS for HG | |||
|
120 | % if c.labs_active: | |||
|
121 | <div class="panel panel-danger"> | |||
|
122 | <div class="panel-heading"> | |||
|
123 | <h3 class="panel-title">${_('Mercurial Labs Settings')} (${_('These features are considered experimental and may not work as expected.')})</h3> | |||
|
124 | </div> | |||
|
125 | <div class="panel-body"> | |||
|
126 | ||||
|
127 | <div class="checkbox"> | |||
|
128 | ${h.checkbox('rhodecode_hg_use_rebase_for_merging' + suffix, 'True', **kwargs)} | |||
|
129 | <label for="rhodecode_hg_use_rebase_for_merging{suffix}">${_('Use rebase as merge strategy')}</label> | |||
|
130 | </div> | |||
|
131 | <div class="label"> | |||
|
132 | <span class="help-block">${_('Use rebase instead of creating a merge commit when merging via web interface.')}</span> | |||
|
133 | </div> | |||
|
134 | ||||
|
135 | </div> | |||
|
136 | </div> | |||
|
137 | % endif | |||
|
138 | ||||
119 | % endif |
|
139 | % endif | |
120 |
|
140 | |||
121 | % if display_globals or repo_type in ['svn']: |
|
141 | % if display_globals or repo_type in ['svn']: | |
122 | <div class="panel panel-default"> |
|
142 | <div class="panel panel-default"> | |
123 | <div class="panel-heading"> |
|
143 | <div class="panel-heading"> | |
124 | <h3 class="panel-title">${_('Subversion Settings')}</h3> |
|
144 | <h3 class="panel-title">${_('Subversion Settings')}</h3> | |
125 | </div> |
|
145 | </div> | |
126 | <div class="panel-body"> |
|
146 | <div class="panel-body"> | |
127 | <div class="field"> |
|
147 | <div class="field"> | |
128 | <div class="checkbox"> |
|
148 | <div class="checkbox"> | |
129 | ${h.checkbox('rhodecode_proxy_subversion_http_requests' + suffix, 'True', **kwargs)} |
|
149 | ${h.checkbox('rhodecode_proxy_subversion_http_requests' + suffix, 'True', **kwargs)} | |
130 | <label for="rhodecode_proxy_subversion_http_requests${suffix}">${_('Proxy subversion HTTP requests')}</label> |
|
150 | <label for="rhodecode_proxy_subversion_http_requests${suffix}">${_('Proxy subversion HTTP requests')}</label> | |
131 | </div> |
|
151 | </div> | |
132 | <div class="label"> |
|
152 | <div class="label"> | |
133 | <span class="help-block">${_('Subversion HTTP Support. Enables communication with SVN over HTTP protocol.')}</span> |
|
153 | <span class="help-block">${_('Subversion HTTP Support. Enables communication with SVN over HTTP protocol.')}</span> | |
134 | </div> |
|
154 | </div> | |
135 | </div> |
|
155 | </div> | |
136 | <div class="field"> |
|
156 | <div class="field"> | |
137 | <div class="label"> |
|
157 | <div class="label"> | |
138 | <label for="rhodecode_subversion_http_server_url">${_('Subversion HTTP Server URL')}</label><br/> |
|
158 | <label for="rhodecode_subversion_http_server_url">${_('Subversion HTTP Server URL')}</label><br/> | |
139 | </div> |
|
159 | </div> | |
140 | <div class="input"> |
|
160 | <div class="input"> | |
141 | ${h.text('rhodecode_subversion_http_server_url',size=59)} |
|
161 | ${h.text('rhodecode_subversion_http_server_url',size=59)} | |
142 | </div> |
|
162 | </div> | |
143 | </div> |
|
163 | </div> | |
144 | <div class="field"> |
|
164 | <div class="field"> | |
145 | <div class="label"> |
|
165 | <div class="label"> | |
146 | <span class="help-block">${_('e.g. http://localhost:8080/')}</span> |
|
166 | <span class="help-block">${_('Url to Apache Proxy, e.g. http://localhost:8080/')}</span> | |
147 | </div> |
|
167 | </div> | |
148 | </div> |
|
168 | </div> | |
149 | <div class="field"> |
|
169 | <div class="field"> | |
150 | <div class="content" > |
|
170 | <div class="content" > | |
151 | <label>${_('Repository patterns')}</label><br/> |
|
171 | <label>${_('Repository patterns')}</label><br/> | |
152 | </div> |
|
172 | </div> | |
153 | </div> |
|
173 | </div> | |
154 | <div class="label"> |
|
174 | <div class="label"> | |
155 | <span class="help-block">${_('Patterns for identifying SVN branches and tags. For recursive search, use "*". Eg.: "/branches/*"')}</span> |
|
175 | <span class="help-block">${_('Patterns for identifying SVN branches and tags. For recursive search, use "*". Eg.: "/branches/*"')}</span> | |
156 | </div> |
|
176 | </div> | |
157 |
|
177 | |||
158 | <div class="field branch_patterns"> |
|
178 | <div class="field branch_patterns"> | |
159 | <div class="input" > |
|
179 | <div class="input" > | |
160 | <label>${_('Branches')}:</label><br/> |
|
180 | <label>${_('Branches')}:</label><br/> | |
161 | </div> |
|
181 | </div> | |
162 | % if svn_branch_patterns: |
|
182 | % if svn_branch_patterns: | |
163 | % for branch in svn_branch_patterns: |
|
183 | % for branch in svn_branch_patterns: | |
164 | <div class="input adjacent" id="${'id%s' % branch.ui_id}"> |
|
184 | <div class="input adjacent" id="${'id%s' % branch.ui_id}"> | |
165 | ${h.hidden('branch_ui_key' + suffix, branch.ui_key)} |
|
185 | ${h.hidden('branch_ui_key' + suffix, branch.ui_key)} | |
166 | ${h.text('branch_value_%d' % branch.ui_id + suffix, branch.ui_value, size=59, readonly="readonly", class_='disabled')} |
|
186 | ${h.text('branch_value_%d' % branch.ui_id + suffix, branch.ui_value, size=59, readonly="readonly", class_='disabled')} | |
167 | % if kwargs.get('disabled') != 'disabled': |
|
187 | % if kwargs.get('disabled') != 'disabled': | |
168 | <span class="btn btn-x" onclick="ajaxDeletePattern(${branch.ui_id},'${'id%s' % branch.ui_id}')"> |
|
188 | <span class="btn btn-x" onclick="ajaxDeletePattern(${branch.ui_id},'${'id%s' % branch.ui_id}')"> | |
169 | ${_('Delete')} |
|
189 | ${_('Delete')} | |
170 | </span> |
|
190 | </span> | |
171 | % endif |
|
191 | % endif | |
172 | </div> |
|
192 | </div> | |
173 | % endfor |
|
193 | % endfor | |
174 | %endif |
|
194 | %endif | |
175 | </div> |
|
195 | </div> | |
176 | % if kwargs.get('disabled') != 'disabled': |
|
196 | % if kwargs.get('disabled') != 'disabled': | |
177 | <div class="field branch_patterns"> |
|
197 | <div class="field branch_patterns"> | |
178 | <div class="input" > |
|
198 | <div class="input" > | |
179 | ${h.text('new_svn_branch',size=59,placeholder='New branch pattern')} |
|
199 | ${h.text('new_svn_branch',size=59,placeholder='New branch pattern')} | |
180 | </div> |
|
200 | </div> | |
181 | </div> |
|
201 | </div> | |
182 | % endif |
|
202 | % endif | |
183 | <div class="field tag_patterns"> |
|
203 | <div class="field tag_patterns"> | |
184 | <div class="input" > |
|
204 | <div class="input" > | |
185 | <label>${_('Tags')}:</label><br/> |
|
205 | <label>${_('Tags')}:</label><br/> | |
186 | </div> |
|
206 | </div> | |
187 | % if svn_tag_patterns: |
|
207 | % if svn_tag_patterns: | |
188 | % for tag in svn_tag_patterns: |
|
208 | % for tag in svn_tag_patterns: | |
189 | <div class="input" id="${'id%s' % tag.ui_id + suffix}"> |
|
209 | <div class="input" id="${'id%s' % tag.ui_id + suffix}"> | |
190 | ${h.hidden('tag_ui_key' + suffix, tag.ui_key)} |
|
210 | ${h.hidden('tag_ui_key' + suffix, tag.ui_key)} | |
191 | ${h.text('tag_ui_value_new_%d' % tag.ui_id + suffix, tag.ui_value, size=59, readonly="readonly", class_='disabled tag_input')} |
|
211 | ${h.text('tag_ui_value_new_%d' % tag.ui_id + suffix, tag.ui_value, size=59, readonly="readonly", class_='disabled tag_input')} | |
192 | % if kwargs.get('disabled') != 'disabled': |
|
212 | % if kwargs.get('disabled') != 'disabled': | |
193 | <span class="btn btn-x" onclick="ajaxDeletePattern(${tag.ui_id},'${'id%s' % tag.ui_id}')"> |
|
213 | <span class="btn btn-x" onclick="ajaxDeletePattern(${tag.ui_id},'${'id%s' % tag.ui_id}')"> | |
194 | ${_('Delete')} |
|
214 | ${_('Delete')} | |
195 | </span> |
|
215 | </span> | |
196 | %endif |
|
216 | %endif | |
197 | </div> |
|
217 | </div> | |
198 | % endfor |
|
218 | % endfor | |
199 | % endif |
|
219 | % endif | |
200 | </div> |
|
220 | </div> | |
201 | % if kwargs.get('disabled') != 'disabled': |
|
221 | % if kwargs.get('disabled') != 'disabled': | |
202 | <div class="field tag_patterns"> |
|
222 | <div class="field tag_patterns"> | |
203 | <div class="input" > |
|
223 | <div class="input" > | |
204 | ${h.text('new_svn_tag' + suffix, size=59, placeholder='New tag pattern')} |
|
224 | ${h.text('new_svn_tag' + suffix, size=59, placeholder='New tag pattern')} | |
205 | </div> |
|
225 | </div> | |
206 | </div> |
|
226 | </div> | |
207 | %endif |
|
227 | %endif | |
208 | </div> |
|
228 | </div> | |
209 | </div> |
|
229 | </div> | |
210 | % else: |
|
230 | % else: | |
211 | ${h.hidden('new_svn_branch' + suffix, '')} |
|
231 | ${h.hidden('new_svn_branch' + suffix, '')} | |
212 | ${h.hidden('new_svn_tag' + suffix, '')} |
|
232 | ${h.hidden('new_svn_tag' + suffix, '')} | |
213 | % endif |
|
233 | % endif | |
214 |
|
234 | |||
215 | % if display_globals or repo_type in ['hg', 'git']: |
|
235 | % if display_globals or repo_type in ['hg', 'git']: | |
216 | <div class="panel panel-default"> |
|
236 | <div class="panel panel-default"> | |
217 | <div class="panel-heading"> |
|
237 | <div class="panel-heading"> | |
218 | <h3 class="panel-title">${_('Pull Request Settings')}</h3> |
|
238 | <h3 class="panel-title">${_('Pull Request Settings')}</h3> | |
219 | </div> |
|
239 | </div> | |
220 | <div class="panel-body"> |
|
240 | <div class="panel-body"> | |
221 | <div class="checkbox"> |
|
241 | <div class="checkbox"> | |
222 | ${h.checkbox('rhodecode_pr_merge_enabled' + suffix, 'True', **kwargs)} |
|
242 | ${h.checkbox('rhodecode_pr_merge_enabled' + suffix, 'True', **kwargs)} | |
223 | <label for="rhodecode_pr_merge_enabled${suffix}">${_('Enable server-side merge for pull requests')}</label> |
|
243 | <label for="rhodecode_pr_merge_enabled${suffix}">${_('Enable server-side merge for pull requests')}</label> | |
224 | </div> |
|
244 | </div> | |
225 | <div class="label"> |
|
245 | <div class="label"> | |
226 | <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> |
|
246 | <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> | |
227 | </div> |
|
247 | </div> | |
228 | <div class="checkbox"> |
|
248 | <div class="checkbox"> | |
229 | ${h.checkbox('rhodecode_use_outdated_comments' + suffix, 'True', **kwargs)} |
|
249 | ${h.checkbox('rhodecode_use_outdated_comments' + suffix, 'True', **kwargs)} | |
230 | <label for="rhodecode_use_outdated_comments${suffix}">${_('Invalidate and relocate inline comments during update')}</label> |
|
250 | <label for="rhodecode_use_outdated_comments${suffix}">${_('Invalidate and relocate inline comments during update')}</label> | |
231 | </div> |
|
251 | </div> | |
232 | <div class="label"> |
|
252 | <div class="label"> | |
233 | <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> |
|
253 | <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> | |
234 | </div> |
|
254 | </div> | |
235 | </div> |
|
255 | </div> | |
236 | </div> |
|
256 | </div> | |
237 | % endif |
|
257 | % endif | |
238 |
|
258 | |||
239 | ## This condition has to be adapted if we add more labs settings for |
|
|||
240 | ## VCS types other than 'hg' |
|
|||
241 | % if c.labs_active and (display_globals or repo_type in ['hg']): |
|
|||
242 | <div class="panel panel-danger"> |
|
|||
243 | <div class="panel-heading"> |
|
|||
244 | <h3 class="panel-title">${_('Labs settings')}: ${_('These features are considered experimental and may not work as expected.')}</h3> |
|
|||
245 | </div> |
|
|||
246 | <div class="panel-body"> |
|
|||
247 | <div class="fields"> |
|
|||
248 |
|
||||
249 | <div class="field"> |
|
|||
250 | <div class="label"> |
|
|||
251 | <label>${_('Mercurial server-side merge')}:</label> |
|
|||
252 | </div> |
|
|||
253 | <div class="checkboxes"> |
|
|||
254 | <div class="checkbox"> |
|
|||
255 | ${h.checkbox('rhodecode_hg_use_rebase_for_merging' + suffix, 'True', **kwargs)} |
|
|||
256 | <label for="rhodecode_hg_use_rebase_for_merging${suffix}">${_('Use rebase instead of creating a merge commit when merging via web interface')}</label> |
|
|||
257 | </div> |
|
|||
258 | <!-- <p class="help-block">Help message here</p> --> |
|
|||
259 | </div> |
|
|||
260 | </div> |
|
|||
261 |
|
||||
262 | </div> |
|
|||
263 | </div> |
|
|||
264 | </div> |
|
|||
265 | % endif |
|
|||
266 | </%def> |
|
259 | </%def> |
General Comments 0
You need to be logged in to leave comments.
Login now