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