Show More
@@ -1,235 +1,237 b'' | |||||
1 | ${h.secure_form(url('admin_settings_visual'), method='post')} |
|
1 | ${h.secure_form(url('admin_settings_visual'), method='post')} | |
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 description field and turns them into colored tags.')}</span> |
|
66 | <span class="help-block">${_('Parses meta tags from repository description field and turns them into colored tags.')}</span> | |
67 | <div> |
|
67 | <div> | |
68 | <table> |
|
68 | <table> | |
69 | <tr><td>[featured] </td><td><span class="metatag" tag="featured">featured</span></td></tr> |
|
69 | <tr><td>[featured] </td><td><span class="metatag" tag="featured">featured</span></td></tr> | |
70 | <tr><td>[stale] </td><td><span class="metatag" tag="stale">stale</span></td></tr> |
|
70 | <tr><td>[stale] </td><td><span class="metatag" tag="stale">stale</span></td></tr> | |
71 | <tr><td>[dead] </td><td><span class="metatag" tag="dead">dead</span></td></tr> |
|
71 | <tr><td>[dead] </td><td><span class="metatag" tag="dead">dead</span></td></tr> | |
|
72 | <tr><td>[personal] </td><td><span class="metatag" tag="personal">personal</span></td></tr> | |||
|
73 | ||||
72 | <tr><td>[lang => lang] </td><td><span class="metatag" tag="lang" >lang</span></td></tr> |
|
74 | <tr><td>[lang => lang] </td><td><span class="metatag" tag="lang" >lang</span></td></tr> | |
73 |
|
75 | |||
74 | <tr><td>[license => License] </td><td><span class="metatag" tag="license"><a href="http://www.opensource.org/licenses/License" >License</a></span></td></tr> |
|
76 | <tr><td>[license => License] </td><td><span class="metatag" tag="license"><a href="http://www.opensource.org/licenses/License" >License</a></span></td></tr> | |
75 | <tr><td>[requires => Repo] </td><td><span class="metatag" tag="requires" >requires => <a href="#" >Repo</a></span></td></tr> |
|
77 | <tr><td>[requires => Repo] </td><td><span class="metatag" tag="requires" >requires => <a href="#" >Repo</a></span></td></tr> | |
76 | <tr><td>[recommends => Repo] </td><td><span class="metatag" tag="recommends" >recommends => <a href="#" >Repo</a></span></td></tr> |
|
78 | <tr><td>[recommends => Repo] </td><td><span class="metatag" tag="recommends" >recommends => <a href="#" >Repo</a></span></td></tr> | |
77 | <tr><td>[see => URI] </td><td><span class="metatag" tag="see">see => <a href="#">URI</a> </span></td></tr> |
|
79 | <tr><td>[see => URI] </td><td><span class="metatag" tag="see">see => <a href="#">URI</a> </span></td></tr> | |
78 | </table> |
|
80 | </table> | |
79 | </div> |
|
81 | </div> | |
80 | </div> |
|
82 | </div> | |
81 | </div> |
|
83 | </div> | |
82 |
|
84 | |||
83 |
|
85 | |||
84 | <div class="panel panel-default"> |
|
86 | <div class="panel panel-default"> | |
85 | <div class="panel-heading"> |
|
87 | <div class="panel-heading"> | |
86 | <h3 class="panel-title">${_('Dashboard Items')}</h3> |
|
88 | <h3 class="panel-title">${_('Dashboard Items')}</h3> | |
87 | </div> |
|
89 | </div> | |
88 | <div class="panel-body"> |
|
90 | <div class="panel-body"> | |
89 | <div class="label"> |
|
91 | <div class="label"> | |
90 | <label for="rhodecode_dashboard_items">${_('Main page dashboard items')}</label> |
|
92 | <label for="rhodecode_dashboard_items">${_('Main page dashboard items')}</label> | |
91 | </div> |
|
93 | </div> | |
92 | <div class="field input"> |
|
94 | <div class="field input"> | |
93 | ${h.text('rhodecode_dashboard_items',size=5)} |
|
95 | ${h.text('rhodecode_dashboard_items',size=5)} | |
94 | </div> |
|
96 | </div> | |
95 | <div class="field"> |
|
97 | <div class="field"> | |
96 | <span class="help-block">${_('Number of items displayed in the main page dashboard before pagination is shown.')}</span> |
|
98 | <span class="help-block">${_('Number of items displayed in the main page dashboard before pagination is shown.')}</span> | |
97 | </div> |
|
99 | </div> | |
98 |
|
100 | |||
99 | <div class="label"> |
|
101 | <div class="label"> | |
100 | <label for="rhodecode_admin_grid_items">${_('Admin pages items')}</label> |
|
102 | <label for="rhodecode_admin_grid_items">${_('Admin pages items')}</label> | |
101 | </div> |
|
103 | </div> | |
102 | <div class="field input"> |
|
104 | <div class="field input"> | |
103 | ${h.text('rhodecode_admin_grid_items',size=5)} |
|
105 | ${h.text('rhodecode_admin_grid_items',size=5)} | |
104 | </div> |
|
106 | </div> | |
105 | <div class="field"> |
|
107 | <div class="field"> | |
106 | <span class="help-block">${_('Number of items displayed in the admin pages grids before pagination is shown.')}</span> |
|
108 | <span class="help-block">${_('Number of items displayed in the admin pages grids before pagination is shown.')}</span> | |
107 | </div> |
|
109 | </div> | |
108 | </div> |
|
110 | </div> | |
109 | </div> |
|
111 | </div> | |
110 |
|
112 | |||
111 |
|
113 | |||
112 |
|
114 | |||
113 | <div class="panel panel-default"> |
|
115 | <div class="panel panel-default"> | |
114 | <div class="panel-heading" id="commit-id"> |
|
116 | <div class="panel-heading" id="commit-id"> | |
115 | <h3 class="panel-title">${_('Commit ID Style')}</h3> |
|
117 | <h3 class="panel-title">${_('Commit ID Style')}</h3> | |
116 | </div> |
|
118 | </div> | |
117 | <div class="panel-body"> |
|
119 | <div class="panel-body"> | |
118 | <div class="label"> |
|
120 | <div class="label"> | |
119 | <label for="rhodecode_show_sha_length">${_('Commit sha length')}</label> |
|
121 | <label for="rhodecode_show_sha_length">${_('Commit sha length')}</label> | |
120 | </div> |
|
122 | </div> | |
121 | <div class="input"> |
|
123 | <div class="input"> | |
122 | <div class="field"> |
|
124 | <div class="field"> | |
123 | ${h.text('rhodecode_show_sha_length',size=5)} |
|
125 | ${h.text('rhodecode_show_sha_length',size=5)} | |
124 | </div> |
|
126 | </div> | |
125 | <div class="field"> |
|
127 | <div class="field"> | |
126 | <span class="help-block">${_('''Number of chars to show in commit sha displayed in web interface. |
|
128 | <span class="help-block">${_('''Number of chars to show in commit sha displayed in web interface. | |
127 | By default it's shown as r123:9043a6a4c226 this value defines the |
|
129 | By default it's shown as r123:9043a6a4c226 this value defines the | |
128 | length of the sha after the `r123:` part.''')}</span> |
|
130 | length of the sha after the `r123:` part.''')}</span> | |
129 | </div> |
|
131 | </div> | |
130 | </div> |
|
132 | </div> | |
131 |
|
133 | |||
132 | <div class="checkbox"> |
|
134 | <div class="checkbox"> | |
133 | ${h.checkbox('rhodecode_show_revision_number','True')} |
|
135 | ${h.checkbox('rhodecode_show_revision_number','True')} | |
134 | <label for="rhodecode_show_revision_number">${_('Show commit ID numeric reference')} / ${_('Commit show revision number')}</label> |
|
136 | <label for="rhodecode_show_revision_number">${_('Show commit ID numeric reference')} / ${_('Commit show revision number')}</label> | |
135 | </div> |
|
137 | </div> | |
136 | <span class="help-block">${_('''Show revision number in commit sha displayed in web interface. |
|
138 | <span class="help-block">${_('''Show revision number in commit sha displayed in web interface. | |
137 | By default it's shown as r123:9043a6a4c226 this value defines the |
|
139 | By default it's shown as r123:9043a6a4c226 this value defines the | |
138 | if the `r123:` part is shown.''')}</span> |
|
140 | if the `r123:` part is shown.''')}</span> | |
139 | </div> |
|
141 | </div> | |
140 | </div> |
|
142 | </div> | |
141 |
|
143 | |||
142 |
|
144 | |||
143 | <div class="panel panel-default"> |
|
145 | <div class="panel panel-default"> | |
144 | <div class="panel-heading" id="icons"> |
|
146 | <div class="panel-heading" id="icons"> | |
145 | <h3 class="panel-title">${_('Icons')}</h3> |
|
147 | <h3 class="panel-title">${_('Icons')}</h3> | |
146 | </div> |
|
148 | </div> | |
147 | <div class="panel-body"> |
|
149 | <div class="panel-body"> | |
148 | <div class="checkbox"> |
|
150 | <div class="checkbox"> | |
149 | ${h.checkbox('rhodecode_show_public_icon','True')} |
|
151 | ${h.checkbox('rhodecode_show_public_icon','True')} | |
150 | <label for="rhodecode_show_public_icon">${_('Show public repo icon on repositories')}</label> |
|
152 | <label for="rhodecode_show_public_icon">${_('Show public repo icon on repositories')}</label> | |
151 | </div> |
|
153 | </div> | |
152 | <div></div> |
|
154 | <div></div> | |
153 |
|
155 | |||
154 | <div class="checkbox"> |
|
156 | <div class="checkbox"> | |
155 | ${h.checkbox('rhodecode_show_private_icon','True')} |
|
157 | ${h.checkbox('rhodecode_show_private_icon','True')} | |
156 | <label for="rhodecode_show_private_icon">${_('Show private repo icon on repositories')}</label> |
|
158 | <label for="rhodecode_show_private_icon">${_('Show private repo icon on repositories')}</label> | |
157 | </div> |
|
159 | </div> | |
158 | <span class="help-block">${_('Show public/private icons next to repositories names.')}</span> |
|
160 | <span class="help-block">${_('Show public/private icons next to repositories names.')}</span> | |
159 | </div> |
|
161 | </div> | |
160 | </div> |
|
162 | </div> | |
161 |
|
163 | |||
162 |
|
164 | |||
163 | <div class="panel panel-default"> |
|
165 | <div class="panel panel-default"> | |
164 | <div class="panel-heading"> |
|
166 | <div class="panel-heading"> | |
165 | <h3 class="panel-title">${_('Markup Renderer')}</h3> |
|
167 | <h3 class="panel-title">${_('Markup Renderer')}</h3> | |
166 | </div> |
|
168 | </div> | |
167 | <div class="panel-body"> |
|
169 | <div class="panel-body"> | |
168 | <div class="field select"> |
|
170 | <div class="field select"> | |
169 | ${h.select('rhodecode_markup_renderer', '', ['rst', 'markdown'])} |
|
171 | ${h.select('rhodecode_markup_renderer', '', ['rst', 'markdown'])} | |
170 | </div> |
|
172 | </div> | |
171 | <div class="field"> |
|
173 | <div class="field"> | |
172 | <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> |
|
174 | <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> | |
173 | </div> |
|
175 | </div> | |
174 | </div> |
|
176 | </div> | |
175 | </div> |
|
177 | </div> | |
176 |
|
178 | |||
177 | <div class="panel panel-default"> |
|
179 | <div class="panel panel-default"> | |
178 | <div class="panel-heading"> |
|
180 | <div class="panel-heading"> | |
179 | <h3 class="panel-title">${_('Clone URL')}</h3> |
|
181 | <h3 class="panel-title">${_('Clone URL')}</h3> | |
180 | </div> |
|
182 | </div> | |
181 | <div class="panel-body"> |
|
183 | <div class="panel-body"> | |
182 | <div class="field"> |
|
184 | <div class="field"> | |
183 | ${h.text('rhodecode_clone_uri_tmpl', size=60)} |
|
185 | ${h.text('rhodecode_clone_uri_tmpl', size=60)} | |
184 | </div> |
|
186 | </div> | |
185 |
|
187 | |||
186 | <div class="field"> |
|
188 | <div class="field"> | |
187 | <span class="help-block"> |
|
189 | <span class="help-block"> | |
188 | ${_('''Schema of clone url construction eg. '{scheme}://{user}@{netloc}/{repo}', available vars: |
|
190 | ${_('''Schema of clone url construction eg. '{scheme}://{user}@{netloc}/{repo}', available vars: | |
189 | {scheme} 'http' or 'https' sent from running RhodeCode server, |
|
191 | {scheme} 'http' or 'https' sent from running RhodeCode server, | |
190 | {user} current user username, |
|
192 | {user} current user username, | |
191 | {netloc} network location/server host of running RhodeCode server, |
|
193 | {netloc} network location/server host of running RhodeCode server, | |
192 | {repo} full repository name, |
|
194 | {repo} full repository name, | |
193 | {repoid} ID of repository, can be used to contruct clone-by-id''')} |
|
195 | {repoid} ID of repository, can be used to contruct clone-by-id''')} | |
194 | </span> |
|
196 | </span> | |
195 | </div> |
|
197 | </div> | |
196 | </div> |
|
198 | </div> | |
197 | </div> |
|
199 | </div> | |
198 |
|
200 | |||
199 | <div class="panel panel-default"> |
|
201 | <div class="panel panel-default"> | |
200 | <div class="panel-heading"> |
|
202 | <div class="panel-heading"> | |
201 | <h3 class="panel-title">${_('Custom Support Link')}</h3> |
|
203 | <h3 class="panel-title">${_('Custom Support Link')}</h3> | |
202 | </div> |
|
204 | </div> | |
203 | <div class="panel-body"> |
|
205 | <div class="panel-body"> | |
204 | <div class="field"> |
|
206 | <div class="field"> | |
205 | ${h.text('rhodecode_support_url', size=60)} |
|
207 | ${h.text('rhodecode_support_url', size=60)} | |
206 | </div> |
|
208 | </div> | |
207 | <div class="field"> |
|
209 | <div class="field"> | |
208 | <span class="help-block"> |
|
210 | <span class="help-block"> | |
209 | ${_('''Custom url for the support link located at the bottom. |
|
211 | ${_('''Custom url for the support link located at the bottom. | |
210 | The default is set to %(default_url)s. In case there's a need |
|
212 | The default is set to %(default_url)s. In case there's a need | |
211 | to change the support link to internal issue tracker, it should be done here. |
|
213 | to change the support link to internal issue tracker, it should be done here. | |
212 | ''') % {'default_url': h.url('rhodecode_support')}} |
|
214 | ''') % {'default_url': h.url('rhodecode_support')}} | |
213 | </span> |
|
215 | </span> | |
214 | </div> |
|
216 | </div> | |
215 | </div> |
|
217 | </div> | |
216 | </div> |
|
218 | </div> | |
217 |
|
219 | |||
218 | <div class="buttons"> |
|
220 | <div class="buttons"> | |
219 | ${h.submit('save',_('Save settings'),class_="btn")} |
|
221 | ${h.submit('save',_('Save settings'),class_="btn")} | |
220 | ${h.reset('reset',_('Reset'),class_="btn")} |
|
222 | ${h.reset('reset',_('Reset'),class_="btn")} | |
221 | </div> |
|
223 | </div> | |
222 |
|
224 | |||
223 |
|
225 | |||
224 | ${h.end_form()} |
|
226 | ${h.end_form()} | |
225 |
|
227 | |||
226 | <script> |
|
228 | <script> | |
227 | $(document).ready(function() { |
|
229 | $(document).ready(function() { | |
228 | $('#rhodecode_markup_renderer').select2({ |
|
230 | $('#rhodecode_markup_renderer').select2({ | |
229 | containerCssClass: 'drop-menu', |
|
231 | containerCssClass: 'drop-menu', | |
230 | dropdownCssClass: 'drop-menu-dropdown', |
|
232 | dropdownCssClass: 'drop-menu-dropdown', | |
231 | dropdownAutoWidth: true, |
|
233 | dropdownAutoWidth: true, | |
232 | minimumResultsForSearch: -1 |
|
234 | minimumResultsForSearch: -1 | |
233 | }); |
|
235 | }); | |
234 | }); |
|
236 | }); | |
235 | </script> |
|
237 | </script> |
General Comments 0
You need to be logged in to leave comments.
Login now