Show More
@@ -1,226 +1,226 b'' | |||||
1 | ${h.secure_form(h.url('admin_settings_visual'), request=request)} |
|
1 | ${h.secure_form(h.url('admin_settings_visual'), request=request)} | |
2 |
|
2 | |||
3 | <div class="panel panel-default"> |
|
3 | <div class="panel panel-default"> | |
4 | <div class="panel-heading" id="general"> |
|
4 | <div class="panel-heading" id="general"> | |
5 | <h3 class="panel-title">${_('General')}</h3> |
|
5 | <h3 class="panel-title">${_('General')}</h3> | |
6 | </div> |
|
6 | </div> | |
7 | <div class="panel-body"> |
|
7 | <div class="panel-body"> | |
8 | <div class="checkbox"> |
|
8 | <div class="checkbox"> | |
9 | ${h.checkbox('rhodecode_repository_fields','True')} |
|
9 | ${h.checkbox('rhodecode_repository_fields','True')} | |
10 | <label for="rhodecode_repository_fields">${_('Use repository extra fields')}</label> |
|
10 | <label for="rhodecode_repository_fields">${_('Use repository extra fields')}</label> | |
11 | </div> |
|
11 | </div> | |
12 | <span class="help-block">${_('Allows storing additional customized fields per repository.')}</span> |
|
12 | <span class="help-block">${_('Allows storing additional customized fields per repository.')}</span> | |
13 |
|
13 | |||
14 | <div></div> |
|
14 | <div></div> | |
15 | <div class="checkbox"> |
|
15 | <div class="checkbox"> | |
16 | ${h.checkbox('rhodecode_show_version','True')} |
|
16 | ${h.checkbox('rhodecode_show_version','True')} | |
17 | <label for="rhodecode_show_version">${_('Show RhodeCode version')}</label> |
|
17 | <label for="rhodecode_show_version">${_('Show RhodeCode version')}</label> | |
18 | </div> |
|
18 | </div> | |
19 | <span class="help-block">${_('Shows or hides a version number of RhodeCode displayed in the footer.')}</span> |
|
19 | <span class="help-block">${_('Shows or hides a version number of RhodeCode displayed in the footer.')}</span> | |
20 | </div> |
|
20 | </div> | |
21 | </div> |
|
21 | </div> | |
22 |
|
22 | |||
23 |
|
23 | |||
24 | <div class="panel panel-default"> |
|
24 | <div class="panel panel-default"> | |
25 | <div class="panel-heading" id="gravatars"> |
|
25 | <div class="panel-heading" id="gravatars"> | |
26 | <h3 class="panel-title">${_('Gravatars')}</h3> |
|
26 | <h3 class="panel-title">${_('Gravatars')}</h3> | |
27 | </div> |
|
27 | </div> | |
28 | <div class="panel-body"> |
|
28 | <div class="panel-body"> | |
29 | <div class="checkbox"> |
|
29 | <div class="checkbox"> | |
30 | ${h.checkbox('rhodecode_use_gravatar','True')} |
|
30 | ${h.checkbox('rhodecode_use_gravatar','True')} | |
31 | <label for="rhodecode_use_gravatar">${_('Use Gravatars based avatars')}</label> |
|
31 | <label for="rhodecode_use_gravatar">${_('Use Gravatars based avatars')}</label> | |
32 | </div> |
|
32 | </div> | |
33 | <span class="help-block">${_('Use gravatar.com as avatar system for RhodeCode accounts. If this is disabled avatars are generated based on initials and email.')}</span> |
|
33 | <span class="help-block">${_('Use gravatar.com as avatar system for RhodeCode accounts. If this is disabled avatars are generated based on initials and email.')}</span> | |
34 |
|
34 | |||
35 | <div class="label"> |
|
35 | <div class="label"> | |
36 | <label for="rhodecode_gravatar_url">${_('Gravatar URL')}</label> |
|
36 | <label for="rhodecode_gravatar_url">${_('Gravatar URL')}</label> | |
37 | </div> |
|
37 | </div> | |
38 | <div class="input"> |
|
38 | <div class="input"> | |
39 | <div class="field"> |
|
39 | <div class="field"> | |
40 | ${h.text('rhodecode_gravatar_url', size='100%')} |
|
40 | ${h.text('rhodecode_gravatar_url', size='100%')} | |
41 | </div> |
|
41 | </div> | |
42 |
|
42 | |||
43 | <div class="field"> |
|
43 | <div class="field"> | |
44 | <span class="help-block">${_('''Gravatar url allows you to use other avatar server application. |
|
44 | <span class="help-block">${_('''Gravatar url allows you to use other avatar server application. | |
45 | Following variables of the URL will be replaced accordingly. |
|
45 | Following variables of the URL will be replaced accordingly. | |
46 | {scheme} 'http' or 'https' sent from running RhodeCode server, |
|
46 | {scheme} 'http' or 'https' sent from running RhodeCode server, | |
47 | {email} user email, |
|
47 | {email} user email, | |
48 | {md5email} md5 hash of the user email (like at gravatar.com), |
|
48 | {md5email} md5 hash of the user email (like at gravatar.com), | |
49 | {size} size of the image that is expected from the server application, |
|
49 | {size} size of the image that is expected from the server application, | |
50 | {netloc} network location/server host of running RhodeCode server''')}</span> |
|
50 | {netloc} network location/server host of running RhodeCode server''')}</span> | |
51 | </div> |
|
51 | </div> | |
52 | </div> |
|
52 | </div> | |
53 | </div> |
|
53 | </div> | |
54 | </div> |
|
54 | </div> | |
55 |
|
55 | |||
56 |
|
56 | |||
57 | <div class="panel panel-default"> |
|
57 | <div class="panel panel-default"> | |
58 | <div class="panel-heading" id="meta-tagging"> |
|
58 | <div class="panel-heading" id="meta-tagging"> | |
59 | <h3 class="panel-title">${_('Meta-Tagging')}</h3> |
|
59 | <h3 class="panel-title">${_('Meta-Tagging')}</h3> | |
60 | </div> |
|
60 | </div> | |
61 | <div class="panel-body"> |
|
61 | <div class="panel-body"> | |
62 | <div class="checkbox"> |
|
62 | <div class="checkbox"> | |
63 | ${h.checkbox('rhodecode_stylify_metatags','True')} |
|
63 | ${h.checkbox('rhodecode_stylify_metatags','True')} | |
64 | <label for="rhodecode_stylify_metatags">${_('Stylify recognised meta tags')}</label> |
|
64 | <label for="rhodecode_stylify_metatags">${_('Stylify recognised meta tags')}</label> | |
65 | </div> |
|
65 | </div> | |
66 | <span class="help-block">${_('Parses meta tags from repository or repository group description fields and turns them into colored tags.')}</span> |
|
66 | <span class="help-block">${_('Parses meta tags from repository or repository group description fields and turns them into colored tags.')}</span> | |
67 | <div> |
|
67 | <div> | |
68 | <%namespace name="dt" file="/data_table/_dt_elements.mako"/> |
|
68 | <%namespace name="dt" file="/data_table/_dt_elements.mako"/> | |
69 | ${dt.metatags_help()} |
|
69 | ${dt.metatags_help()} | |
70 | </div> |
|
70 | </div> | |
71 | </div> |
|
71 | </div> | |
72 | </div> |
|
72 | </div> | |
73 |
|
73 | |||
74 |
|
74 | |||
75 | <div class="panel panel-default"> |
|
75 | <div class="panel panel-default"> | |
76 | <div class="panel-heading"> |
|
76 | <div class="panel-heading"> | |
77 | <h3 class="panel-title">${_('Dashboard Items')}</h3> |
|
77 | <h3 class="panel-title">${_('Dashboard Items')}</h3> | |
78 | </div> |
|
78 | </div> | |
79 | <div class="panel-body"> |
|
79 | <div class="panel-body"> | |
80 | <div class="label"> |
|
80 | <div class="label"> | |
81 | <label for="rhodecode_dashboard_items">${_('Main page dashboard items')}</label> |
|
81 | <label for="rhodecode_dashboard_items">${_('Main page dashboard items')}</label> | |
82 | </div> |
|
82 | </div> | |
83 | <div class="field input"> |
|
83 | <div class="field input"> | |
84 | ${h.text('rhodecode_dashboard_items',size=5)} |
|
84 | ${h.text('rhodecode_dashboard_items',size=5)} | |
85 | </div> |
|
85 | </div> | |
86 | <div class="field"> |
|
86 | <div class="field"> | |
87 | <span class="help-block">${_('Number of items displayed in the main page dashboard before pagination is shown.')}</span> |
|
87 | <span class="help-block">${_('Number of items displayed in the main page dashboard before pagination is shown.')}</span> | |
88 | </div> |
|
88 | </div> | |
89 |
|
89 | |||
90 | <div class="label"> |
|
90 | <div class="label"> | |
91 | <label for="rhodecode_admin_grid_items">${_('Admin pages items')}</label> |
|
91 | <label for="rhodecode_admin_grid_items">${_('Admin pages items')}</label> | |
92 | </div> |
|
92 | </div> | |
93 | <div class="field input"> |
|
93 | <div class="field input"> | |
94 | ${h.text('rhodecode_admin_grid_items',size=5)} |
|
94 | ${h.text('rhodecode_admin_grid_items',size=5)} | |
95 | </div> |
|
95 | </div> | |
96 | <div class="field"> |
|
96 | <div class="field"> | |
97 | <span class="help-block">${_('Number of items displayed in the admin pages grids before pagination is shown.')}</span> |
|
97 | <span class="help-block">${_('Number of items displayed in the admin pages grids before pagination is shown.')}</span> | |
98 | </div> |
|
98 | </div> | |
99 | </div> |
|
99 | </div> | |
100 | </div> |
|
100 | </div> | |
101 |
|
101 | |||
102 |
|
102 | |||
103 |
|
103 | |||
104 | <div class="panel panel-default"> |
|
104 | <div class="panel panel-default"> | |
105 | <div class="panel-heading" id="commit-id"> |
|
105 | <div class="panel-heading" id="commit-id"> | |
106 | <h3 class="panel-title">${_('Commit ID Style')}</h3> |
|
106 | <h3 class="panel-title">${_('Commit ID Style')}</h3> | |
107 | </div> |
|
107 | </div> | |
108 | <div class="panel-body"> |
|
108 | <div class="panel-body"> | |
109 | <div class="label"> |
|
109 | <div class="label"> | |
110 | <label for="rhodecode_show_sha_length">${_('Commit sha length')}</label> |
|
110 | <label for="rhodecode_show_sha_length">${_('Commit sha length')}</label> | |
111 | </div> |
|
111 | </div> | |
112 | <div class="input"> |
|
112 | <div class="input"> | |
113 | <div class="field"> |
|
113 | <div class="field"> | |
114 | ${h.text('rhodecode_show_sha_length',size=5)} |
|
114 | ${h.text('rhodecode_show_sha_length',size=5)} | |
115 | </div> |
|
115 | </div> | |
116 | <div class="field"> |
|
116 | <div class="field"> | |
117 | <span class="help-block">${_('''Number of chars to show in commit sha displayed in web interface. |
|
117 | <span class="help-block">${_('''Number of chars to show in commit sha displayed in web interface. | |
118 | By default it's shown as r123:9043a6a4c226 this value defines the |
|
118 | By default it's shown as r123:9043a6a4c226 this value defines the | |
119 | length of the sha after the `r123:` part.''')}</span> |
|
119 | length of the sha after the `r123:` part.''')}</span> | |
120 | </div> |
|
120 | </div> | |
121 | </div> |
|
121 | </div> | |
122 |
|
122 | |||
123 | <div class="checkbox"> |
|
123 | <div class="checkbox"> | |
124 | ${h.checkbox('rhodecode_show_revision_number','True')} |
|
124 | ${h.checkbox('rhodecode_show_revision_number','True')} | |
125 | <label for="rhodecode_show_revision_number">${_('Show commit ID numeric reference')} / ${_('Commit show revision number')}</label> |
|
125 | <label for="rhodecode_show_revision_number">${_('Show commit ID numeric reference')} / ${_('Commit show revision number')}</label> | |
126 | </div> |
|
126 | </div> | |
127 | <span class="help-block">${_('''Show revision number in commit sha displayed in web interface. |
|
127 | <span class="help-block">${_('''Show revision number in commit sha displayed in web interface. | |
128 | By default it's shown as r123:9043a6a4c226 this value defines the |
|
128 | By default it's shown as r123:9043a6a4c226 this value defines the | |
129 | if the `r123:` part is shown.''')}</span> |
|
129 | if the `r123:` part is shown.''')}</span> | |
130 | </div> |
|
130 | </div> | |
131 | </div> |
|
131 | </div> | |
132 |
|
132 | |||
133 |
|
133 | |||
134 | <div class="panel panel-default"> |
|
134 | <div class="panel panel-default"> | |
135 | <div class="panel-heading" id="icons"> |
|
135 | <div class="panel-heading" id="icons"> | |
136 | <h3 class="panel-title">${_('Icons')}</h3> |
|
136 | <h3 class="panel-title">${_('Icons')}</h3> | |
137 | </div> |
|
137 | </div> | |
138 | <div class="panel-body"> |
|
138 | <div class="panel-body"> | |
139 | <div class="checkbox"> |
|
139 | <div class="checkbox"> | |
140 | ${h.checkbox('rhodecode_show_public_icon','True')} |
|
140 | ${h.checkbox('rhodecode_show_public_icon','True')} | |
141 | <label for="rhodecode_show_public_icon">${_('Show public repo icon on repositories')}</label> |
|
141 | <label for="rhodecode_show_public_icon">${_('Show public repo icon on repositories')}</label> | |
142 | </div> |
|
142 | </div> | |
143 | <div></div> |
|
143 | <div></div> | |
144 |
|
144 | |||
145 | <div class="checkbox"> |
|
145 | <div class="checkbox"> | |
146 | ${h.checkbox('rhodecode_show_private_icon','True')} |
|
146 | ${h.checkbox('rhodecode_show_private_icon','True')} | |
147 | <label for="rhodecode_show_private_icon">${_('Show private repo icon on repositories')}</label> |
|
147 | <label for="rhodecode_show_private_icon">${_('Show private repo icon on repositories')}</label> | |
148 | </div> |
|
148 | </div> | |
149 | <span class="help-block">${_('Show public/private icons next to repositories names.')}</span> |
|
149 | <span class="help-block">${_('Show public/private icons next to repositories names.')}</span> | |
150 | </div> |
|
150 | </div> | |
151 | </div> |
|
151 | </div> | |
152 |
|
152 | |||
153 |
|
153 | |||
154 | <div class="panel panel-default"> |
|
154 | <div class="panel panel-default"> | |
155 | <div class="panel-heading"> |
|
155 | <div class="panel-heading"> | |
156 | <h3 class="panel-title">${_('Markup Renderer')}</h3> |
|
156 | <h3 class="panel-title">${_('Markup Renderer')}</h3> | |
157 | </div> |
|
157 | </div> | |
158 | <div class="panel-body"> |
|
158 | <div class="panel-body"> | |
159 | <div class="field select"> |
|
159 | <div class="field select"> | |
160 | ${h.select('rhodecode_markup_renderer', '', ['rst', 'markdown'])} |
|
160 | ${h.select('rhodecode_markup_renderer', '', ['rst', 'markdown'])} | |
161 | </div> |
|
161 | </div> | |
162 | <div class="field"> |
|
162 | <div class="field"> | |
163 | <span class="help-block">${_('Default renderer used to render comments, pull request descriptions and other description elements. After change old entries will still work correctly.')}</span> |
|
163 | <span class="help-block">${_('Default renderer used to render comments, pull request descriptions and other description elements. After change old entries will still work correctly.')}</span> | |
164 | </div> |
|
164 | </div> | |
165 | </div> |
|
165 | </div> | |
166 | </div> |
|
166 | </div> | |
167 |
|
167 | |||
168 | <div class="panel panel-default"> |
|
168 | <div class="panel panel-default"> | |
169 | <div class="panel-heading"> |
|
169 | <div class="panel-heading"> | |
170 | <h3 class="panel-title">${_('Clone URL')}</h3> |
|
170 | <h3 class="panel-title">${_('Clone URL')}</h3> | |
171 | </div> |
|
171 | </div> | |
172 | <div class="panel-body"> |
|
172 | <div class="panel-body"> | |
173 | <div class="field"> |
|
173 | <div class="field"> | |
174 | ${h.text('rhodecode_clone_uri_tmpl', size=60)} |
|
174 | ${h.text('rhodecode_clone_uri_tmpl', size=60)} | |
175 | </div> |
|
175 | </div> | |
176 |
|
176 | |||
177 | <div class="field"> |
|
177 | <div class="field"> | |
178 | <span class="help-block"> |
|
178 | <span class="help-block"> | |
179 | ${_('''Schema of clone url construction eg. '{scheme}://{user}@{netloc}/{repo}', available vars: |
|
179 | ${_('''Schema of clone url construction eg. '{scheme}://{user}@{netloc}/{repo}', available vars: | |
180 | {scheme} 'http' or 'https' sent from running RhodeCode server, |
|
180 | {scheme} 'http' or 'https' sent from running RhodeCode server, | |
181 | {user} current user username, |
|
181 | {user} current user username, | |
182 | {netloc} network location/server host of running RhodeCode server, |
|
182 | {netloc} network location/server host of running RhodeCode server, | |
183 | {repo} full repository name, |
|
183 | {repo} full repository name, | |
184 | {repoid} ID of repository, can be used to contruct clone-by-id''')} |
|
184 | {repoid} ID of repository, can be used to contruct clone-by-id''')} | |
185 | </span> |
|
185 | </span> | |
186 | </div> |
|
186 | </div> | |
187 | </div> |
|
187 | </div> | |
188 | </div> |
|
188 | </div> | |
189 |
|
189 | |||
190 | <div class="panel panel-default"> |
|
190 | <div class="panel panel-default"> | |
191 | <div class="panel-heading"> |
|
191 | <div class="panel-heading"> | |
192 | <h3 class="panel-title">${_('Custom Support Link')}</h3> |
|
192 | <h3 class="panel-title">${_('Custom Support Link')}</h3> | |
193 | </div> |
|
193 | </div> | |
194 | <div class="panel-body"> |
|
194 | <div class="panel-body"> | |
195 | <div class="field"> |
|
195 | <div class="field"> | |
196 | ${h.text('rhodecode_support_url', size=60)} |
|
196 | ${h.text('rhodecode_support_url', size=60)} | |
197 | </div> |
|
197 | </div> | |
198 | <div class="field"> |
|
198 | <div class="field"> | |
199 | <span class="help-block"> |
|
199 | <span class="help-block"> | |
200 | ${_('''Custom url for the support link located at the bottom. |
|
200 | ${_('''Custom url for the support link located at the bottom. | |
201 | The default is set to %(default_url)s. In case there's a need |
|
201 | The default is set to %(default_url)s. In case there's a need | |
202 | to change the support link to internal issue tracker, it should be done here. |
|
202 | to change the support link to internal issue tracker, it should be done here. | |
203 | ''') % {'default_url': h.url('rhodecode_support')}} |
|
203 | ''') % {'default_url': h.route_url('rhodecode_support')}} | |
204 | </span> |
|
204 | </span> | |
205 | </div> |
|
205 | </div> | |
206 | </div> |
|
206 | </div> | |
207 | </div> |
|
207 | </div> | |
208 |
|
208 | |||
209 | <div class="buttons"> |
|
209 | <div class="buttons"> | |
210 | ${h.submit('save',_('Save settings'),class_="btn")} |
|
210 | ${h.submit('save',_('Save settings'),class_="btn")} | |
211 | ${h.reset('reset',_('Reset'),class_="btn")} |
|
211 | ${h.reset('reset',_('Reset'),class_="btn")} | |
212 | </div> |
|
212 | </div> | |
213 |
|
213 | |||
214 |
|
214 | |||
215 | ${h.end_form()} |
|
215 | ${h.end_form()} | |
216 |
|
216 | |||
217 | <script> |
|
217 | <script> | |
218 | $(document).ready(function() { |
|
218 | $(document).ready(function() { | |
219 | $('#rhodecode_markup_renderer').select2({ |
|
219 | $('#rhodecode_markup_renderer').select2({ | |
220 | containerCssClass: 'drop-menu', |
|
220 | containerCssClass: 'drop-menu', | |
221 | dropdownCssClass: 'drop-menu-dropdown', |
|
221 | dropdownCssClass: 'drop-menu-dropdown', | |
222 | dropdownAutoWidth: true, |
|
222 | dropdownAutoWidth: true, | |
223 | minimumResultsForSearch: -1 |
|
223 | minimumResultsForSearch: -1 | |
224 | }); |
|
224 | }); | |
225 | }); |
|
225 | }); | |
226 | </script> |
|
226 | </script> |
General Comments 0
You need to be logged in to leave comments.
Login now