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