##// END OF EJS Templates
templating: use .mako as extensions for template files.
marcink -
r1282:90601d74 default
parent child
Show More
@@ -29,8 +29,6 recursive-include rhodecode *.mako
29 29 # 502 page
30 30 include rhodecode/public/502.html
31 31
32 # 502 page
33 include rhodecode/public/502.html
34 32
35 33 # images, css
36 34 include rhodecode/public/css/*.css
@@ -48,7 +48,7 class AdminSettingsView(object):
48 48 @HasPermissionAllDecorator('hg.admin')
49 49 @view_config(
50 50 route_name='admin_settings_open_source', request_method='GET',
51 renderer='rhodecode:templates/admin/settings/settings.html')
51 renderer='rhodecode:templates/admin/settings/settings.mako')
52 52 def open_source_licenses(self):
53 53 c.active = 'open_source'
54 54 c.navlist = navigation_list(self.request)
@@ -197,14 +197,14 class RhodeCodeAuthPlugin(RhodeCodeExter
197 197 config.add_view(
198 198 'rhodecode.authentication.views.AuthnPluginViewBase',
199 199 attr='settings_get',
200 renderer='rhodecode:templates/admin/auth/plugin_settings.html',
200 renderer='rhodecode:templates/admin/auth/plugin_settings.mako',
201 201 request_method='GET',
202 202 route_name='auth_home',
203 203 context=CrowdAuthnResource)
204 204 config.add_view(
205 205 'rhodecode.authentication.views.AuthnPluginViewBase',
206 206 attr='settings_post',
207 renderer='rhodecode:templates/admin/auth/plugin_settings.html',
207 renderer='rhodecode:templates/admin/auth/plugin_settings.mako',
208 208 request_method='POST',
209 209 route_name='auth_home',
210 210 context=CrowdAuthnResource)
@@ -83,14 +83,14 class RhodeCodeAuthPlugin(RhodeCodeExter
83 83 config.add_view(
84 84 'rhodecode.authentication.views.AuthnPluginViewBase',
85 85 attr='settings_get',
86 renderer='rhodecode:templates/admin/auth/plugin_settings.html',
86 renderer='rhodecode:templates/admin/auth/plugin_settings.mako',
87 87 request_method='GET',
88 88 route_name='auth_home',
89 89 context=HeadersAuthnResource)
90 90 config.add_view(
91 91 'rhodecode.authentication.views.AuthnPluginViewBase',
92 92 attr='settings_post',
93 renderer='rhodecode:templates/admin/auth/plugin_settings.html',
93 renderer='rhodecode:templates/admin/auth/plugin_settings.mako',
94 94 request_method='POST',
95 95 route_name='auth_home',
96 96 context=HeadersAuthnResource)
@@ -74,14 +74,14 class RhodeCodeAuthPlugin(RhodeCodeExter
74 74 config.add_view(
75 75 'rhodecode.authentication.views.AuthnPluginViewBase',
76 76 attr='settings_get',
77 renderer='rhodecode:templates/admin/auth/plugin_settings.html',
77 renderer='rhodecode:templates/admin/auth/plugin_settings.mako',
78 78 request_method='GET',
79 79 route_name='auth_home',
80 80 context=JasigCasAuthnResource)
81 81 config.add_view(
82 82 'rhodecode.authentication.views.AuthnPluginViewBase',
83 83 attr='settings_post',
84 renderer='rhodecode:templates/admin/auth/plugin_settings.html',
84 renderer='rhodecode:templates/admin/auth/plugin_settings.mako',
85 85 request_method='POST',
86 86 route_name='auth_home',
87 87 context=JasigCasAuthnResource)
@@ -332,14 +332,14 class RhodeCodeAuthPlugin(RhodeCodeExter
332 332 config.add_view(
333 333 'rhodecode.authentication.views.AuthnPluginViewBase',
334 334 attr='settings_get',
335 renderer='rhodecode:templates/admin/auth/plugin_settings.html',
335 renderer='rhodecode:templates/admin/auth/plugin_settings.mako',
336 336 request_method='GET',
337 337 route_name='auth_home',
338 338 context=LdapAuthnResource)
339 339 config.add_view(
340 340 'rhodecode.authentication.views.AuthnPluginViewBase',
341 341 attr='settings_post',
342 renderer='rhodecode:templates/admin/auth/plugin_settings.html',
342 renderer='rhodecode:templates/admin/auth/plugin_settings.mako',
343 343 request_method='POST',
344 344 route_name='auth_home',
345 345 context=LdapAuthnResource)
@@ -82,14 +82,14 class RhodeCodeAuthPlugin(RhodeCodeExter
82 82 config.add_view(
83 83 'rhodecode.authentication.views.AuthnPluginViewBase',
84 84 attr='settings_get',
85 renderer='rhodecode:templates/admin/auth/plugin_settings.html',
85 renderer='rhodecode:templates/admin/auth/plugin_settings.mako',
86 86 request_method='GET',
87 87 route_name='auth_home',
88 88 context=PamAuthnResource)
89 89 config.add_view(
90 90 'rhodecode.authentication.views.AuthnPluginViewBase',
91 91 attr='settings_post',
92 renderer='rhodecode:templates/admin/auth/plugin_settings.html',
92 renderer='rhodecode:templates/admin/auth/plugin_settings.mako',
93 93 request_method='POST',
94 94 route_name='auth_home',
95 95 context=PamAuthnResource)
@@ -52,14 +52,14 class RhodeCodeAuthPlugin(RhodeCodeAuthP
52 52 config.add_view(
53 53 'rhodecode.authentication.views.AuthnPluginViewBase',
54 54 attr='settings_get',
55 renderer='rhodecode:templates/admin/auth/plugin_settings.html',
55 renderer='rhodecode:templates/admin/auth/plugin_settings.mako',
56 56 request_method='GET',
57 57 route_name='auth_home',
58 58 context=RhodecodeAuthnResource)
59 59 config.add_view(
60 60 'rhodecode.authentication.views.AuthnPluginViewBase',
61 61 attr='settings_post',
62 renderer='rhodecode:templates/admin/auth/plugin_settings.html',
62 renderer='rhodecode:templates/admin/auth/plugin_settings.mako',
63 63 request_method='POST',
64 64 route_name='auth_home',
65 65 context=RhodecodeAuthnResource)
@@ -55,14 +55,14 class RhodeCodeAuthPlugin(RhodeCodeAuthP
55 55 config.add_view(
56 56 'rhodecode.authentication.views.AuthnPluginViewBase',
57 57 attr='settings_get',
58 renderer='rhodecode:templates/admin/auth/plugin_settings.html',
58 renderer='rhodecode:templates/admin/auth/plugin_settings.mako',
59 59 request_method='GET',
60 60 route_name='auth_home',
61 61 context=RhodecodeAuthnResource)
62 62 config.add_view(
63 63 'rhodecode.authentication.views.AuthnPluginViewBase',
64 64 attr='settings_post',
65 renderer='rhodecode:templates/admin/auth/plugin_settings.html',
65 renderer='rhodecode:templates/admin/auth/plugin_settings.mako',
66 66 request_method='POST',
67 67 route_name='auth_home',
68 68 context=RhodecodeAuthnResource)
@@ -134,7 +134,7 class AuthSettingsView(object):
134 134 'available_plugins': authn_registry.get_plugins(),
135 135 'enabled_plugins': enabled_plugins,
136 136 }
137 html = render('rhodecode:templates/admin/auth/auth_settings.html',
137 html = render('rhodecode:templates/admin/auth/auth_settings.mako',
138 138 template_context,
139 139 request=self.request)
140 140
@@ -46,7 +46,7 PLUGIN_DEFINITION = {
46 46 'javascript': [],
47 47 'css': [],
48 48 'template_hooks': {
49 'plugin_init_template': 'rhodecode:templates/channelstream/plugin_init.html'
49 'plugin_init_template': 'rhodecode:templates/channelstream/plugin_init.mako'
50 50 },
51 51 'url_gen': url_gen,
52 52 'static': None,
@@ -251,7 +251,7 def error_handler(exception, request):
251 251 c.causes = base_response.causes
252 252
253 253 response = render_to_response(
254 '/errors/error_document.html', {'c': c}, request=request,
254 '/errors/error_document.mako', {'c': c}, request=request,
255 255 response=base_response)
256 256
257 257 return response
@@ -153,11 +153,11 class AdminController(BaseController):
153 153
154 154 c.users_log = Page(users_log, page=p, items_per_page=10,
155 155 url=url_generator)
156 c.log_data = render('admin/admin_log.html')
156 c.log_data = render('admin/admin_log.mako')
157 157
158 158 if request.is_xhr:
159 159 return c.log_data
160 return render('admin/admin.html')
160 return render('admin/admin.mako')
161 161
162 162 # global redirect doesn't need permissions
163 163 def pull_requests(self, pull_request_id):
@@ -57,7 +57,7 class DefaultsController(BaseController)
57 57 defaults = SettingsModel().get_default_repo_settings()
58 58
59 59 return htmlfill.render(
60 render('admin/defaults/defaults.html'),
60 render('admin/defaults/defaults.mako'),
61 61 defaults=defaults,
62 62 encoding="UTF-8",
63 63 force_defaults=False
@@ -88,7 +88,7 class DefaultsController(BaseController)
88 88 defaults = errors.value
89 89
90 90 return htmlfill.render(
91 render('admin/defaults/defaults.html'),
91 render('admin/defaults/defaults.mako'),
92 92 defaults=defaults,
93 93 errors=errors.error_dict or {},
94 94 prefix_error=False,
@@ -114,7 +114,7 class GistsController(BaseController):
114 114 c.active = 'public'
115 115
116 116 from rhodecode.lib.utils import PartialRenderer
117 _render = PartialRenderer('data_table/_dt_elements.html')
117 _render = PartialRenderer('data_table/_dt_elements.mako')
118 118
119 119 data = []
120 120
@@ -130,7 +130,7 class GistsController(BaseController):
130 130 'description': _render('gist_description', gist.gist_description)
131 131 })
132 132 c.data = json.dumps(data)
133 return render('admin/gists/index.html')
133 return render('admin/gists/index.mako')
134 134
135 135 @LoginRequired()
136 136 @NotAnonymous()
@@ -186,7 +186,7 class GistsController(BaseController):
186 186 del errors['nodes.0.filename']
187 187
188 188 return formencode.htmlfill.render(
189 render('admin/gists/new.html'),
189 render('admin/gists/new.mako'),
190 190 defaults=defaults,
191 191 errors=errors,
192 192 prefix_error=False,
@@ -206,7 +206,7 class GistsController(BaseController):
206 206 """GET /admin/gists/new: Form to create a new item"""
207 207 # url('new_gist')
208 208 self.__load_defaults()
209 return render('admin/gists/new.html')
209 return render('admin/gists/new.mako')
210 210
211 211 @LoginRequired()
212 212 @NotAnonymous()
@@ -266,7 +266,7 class GistsController(BaseController):
266 266 if (f_path is None or f.path == f_path)])
267 267 response.content_type = 'text/plain'
268 268 return content
269 return render('admin/gists/show.html')
269 return render('admin/gists/show.mako')
270 270
271 271 @LoginRequired()
272 272 @NotAnonymous()
@@ -344,7 +344,7 class GistsController(BaseController):
344 344 expiry = h.age(h.time_to_datetime(c.gist.gist_expires))
345 345 self.__load_defaults(
346 346 extra_values=(0, _('%(expiry)s - current value') % {'expiry': expiry}))
347 return render('admin/gists/edit.html')
347 return render('admin/gists/edit.mako')
348 348
349 349 @LoginRequired()
350 350 @NotAnonymous()
@@ -144,7 +144,7 class MyAccountController(BaseController
144 144
145 145 except formencode.Invalid as errors:
146 146 return htmlfill.render(
147 render('admin/my_account/my_account.html'),
147 render('admin/my_account/my_account.mako'),
148 148 defaults=errors.value,
149 149 errors=errors.error_dict or {},
150 150 prefix_error=False,
@@ -159,7 +159,7 class MyAccountController(BaseController
159 159 return redirect('my_account')
160 160
161 161 return htmlfill.render(
162 render('admin/my_account/my_account.html'),
162 render('admin/my_account/my_account.mako'),
163 163 defaults=defaults,
164 164 encoding="UTF-8",
165 165 force_defaults=False
@@ -175,7 +175,7 class MyAccountController(BaseController
175 175
176 176 defaults = c.user.get_dict()
177 177 return htmlfill.render(
178 render('admin/my_account/my_account.html'),
178 render('admin/my_account/my_account.mako'),
179 179 defaults=defaults, encoding="UTF-8", force_defaults=False)
180 180
181 181 def my_account_edit(self):
@@ -190,7 +190,7 class MyAccountController(BaseController
190 190
191 191 defaults = c.user.get_dict()
192 192 return htmlfill.render(
193 render('admin/my_account/my_account.html'),
193 render('admin/my_account/my_account.mako'),
194 194 defaults=defaults,
195 195 encoding="UTF-8",
196 196 force_defaults=False
@@ -235,7 +235,7 class MyAccountController(BaseController
235 235 return redirect(url('my_account_password'))
236 236
237 237 c.form = form
238 return render('admin/my_account/my_account.html')
238 return render('admin/my_account/my_account.mako')
239 239
240 240 def my_account_repos(self):
241 241 c.active = 'repos'
@@ -243,7 +243,7 class MyAccountController(BaseController
243 243
244 244 # json used to render the grid
245 245 c.data = self._load_my_repos_data()
246 return render('admin/my_account/my_account.html')
246 return render('admin/my_account/my_account.mako')
247 247
248 248 def my_account_watched(self):
249 249 c.active = 'watched'
@@ -251,14 +251,14 class MyAccountController(BaseController
251 251
252 252 # json used to render the grid
253 253 c.data = self._load_my_repos_data(watched=True)
254 return render('admin/my_account/my_account.html')
254 return render('admin/my_account/my_account.mako')
255 255
256 256 def my_account_perms(self):
257 257 c.active = 'perms'
258 258 self.__load_data()
259 259 c.perm_user = c.auth_user
260 260
261 return render('admin/my_account/my_account.html')
261 return render('admin/my_account/my_account.mako')
262 262
263 263 def my_account_emails(self):
264 264 c.active = 'emails'
@@ -266,7 +266,7 class MyAccountController(BaseController
266 266
267 267 c.user_email_map = UserEmailMap.query()\
268 268 .filter(UserEmailMap.user == c.user).all()
269 return render('admin/my_account/my_account.html')
269 return render('admin/my_account/my_account.mako')
270 270
271 271 @auth.CSRFRequired()
272 272 def my_account_emails_add(self):
@@ -318,7 +318,7 class MyAccountController(BaseController
318 318 user_id=c.rhodecode_user.user_id, statuses=statuses)
319 319
320 320 from rhodecode.lib.utils import PartialRenderer
321 _render = PartialRenderer('data_table/_dt_elements.html')
321 _render = PartialRenderer('data_table/_dt_elements.mako')
322 322 data = []
323 323 for pr in pull_requests:
324 324 repo_id = pr.target_repo_id
@@ -372,7 +372,7 class MyAccountController(BaseController
372 372 if not request.is_xhr:
373 373 c.data_participate = json.dumps(data['data'])
374 374 c.records_total_participate = data['recordsTotal']
375 return render('admin/my_account/my_account.html')
375 return render('admin/my_account/my_account.mako')
376 376 else:
377 377 return json.dumps(data)
378 378
@@ -393,7 +393,7 class MyAccountController(BaseController
393 393 c.role_options = [(c.role_values, _("Role"))]
394 394 c.user_auth_tokens = AuthTokenModel().get_auth_tokens(
395 395 c.rhodecode_user.user_id, show_expired=show_expired)
396 return render('admin/my_account/my_account.html')
396 return render('admin/my_account/my_account.mako')
397 397
398 398 @auth.CSRFRequired()
399 399 def my_account_auth_tokens_add(self):
@@ -426,7 +426,7 class MyAccountController(BaseController
426 426
427 427 def my_notifications(self):
428 428 c.active = 'notifications'
429 return render('admin/my_account/my_account.html')
429 return render('admin/my_account/my_account.mako')
430 430
431 431 @auth.CSRFRequired()
432 432 @jsonify
@@ -82,9 +82,9 class NotificationsController(BaseContro
82 82 c.current_filter = 'comment'
83 83
84 84 if request.is_xhr:
85 return render('admin/notifications/notifications_data.html')
85 return render('admin/notifications/notifications_data.mako')
86 86
87 return render('admin/notifications/notifications.html')
87 return render('admin/notifications/notifications.mako')
88 88
89 89
90 90 @auth.CSRFRequired()
@@ -102,7 +102,7 class NotificationsController(BaseContro
102 102 url('notifications'), request.GET)
103 103 c.notifications = Page(notif, page=1, items_per_page=10,
104 104 url=notifications_url)
105 return render('admin/notifications/notifications_data.html')
105 return render('admin/notifications/notifications_data.mako')
106 106
107 107 def _has_permissions(self, notification):
108 108 def is_owner():
@@ -173,6 +173,6 class NotificationsController(BaseContro
173 173 Session().commit()
174 174 c.notification = no
175 175
176 return render('admin/notifications/show_notification.html')
176 return render('admin/notifications/show_notification.mako')
177 177
178 178 return abort(403)
@@ -80,7 +80,7 class PermissionsController(BaseControll
80 80 defaults.update(c.user.get_default_perms())
81 81
82 82 return htmlfill.render(
83 render('admin/permissions/permissions.html'),
83 render('admin/permissions/permissions.mako'),
84 84 defaults=defaults,
85 85 encoding="UTF-8",
86 86 force_defaults=False)
@@ -116,7 +116,7 class PermissionsController(BaseControll
116 116 defaults = errors.value
117 117
118 118 return htmlfill.render(
119 render('admin/permissions/permissions.html'),
119 render('admin/permissions/permissions.mako'),
120 120 defaults=defaults,
121 121 errors=errors.error_dict or {},
122 122 prefix_error=False,
@@ -137,7 +137,7 class PermissionsController(BaseControll
137 137 defaults = {}
138 138 defaults.update(c.user.get_default_perms())
139 139 return htmlfill.render(
140 render('admin/permissions/permissions.html'),
140 render('admin/permissions/permissions.mako'),
141 141 defaults=defaults,
142 142 encoding="UTF-8",
143 143 force_defaults=False)
@@ -165,7 +165,7 class PermissionsController(BaseControll
165 165 defaults = errors.value
166 166
167 167 return htmlfill.render(
168 render('admin/permissions/permissions.html'),
168 render('admin/permissions/permissions.mako'),
169 169 defaults=defaults,
170 170 errors=errors.error_dict or {},
171 171 prefix_error=False,
@@ -188,7 +188,7 class PermissionsController(BaseControll
188 188 defaults.update(c.user.get_default_perms())
189 189
190 190 return htmlfill.render(
191 render('admin/permissions/permissions.html'),
191 render('admin/permissions/permissions.mako'),
192 192 defaults=defaults,
193 193 encoding="UTF-8",
194 194 force_defaults=False)
@@ -219,7 +219,7 class PermissionsController(BaseControll
219 219 defaults = errors.value
220 220
221 221 return htmlfill.render(
222 render('admin/permissions/permissions.html'),
222 render('admin/permissions/permissions.mako'),
223 223 defaults=defaults,
224 224 errors=errors.error_dict or {},
225 225 prefix_error=False,
@@ -239,11 +239,11 class PermissionsController(BaseControll
239 239 c.user_ip_map = (
240 240 UserIpMap.query().filter(UserIpMap.user == c.user).all())
241 241
242 return render('admin/permissions/permissions.html')
242 return render('admin/permissions/permissions.mako')
243 243
244 244 @HasPermissionAllDecorator('hg.admin')
245 245 def permission_perms(self):
246 246 c.active = 'perms'
247 247 c.user = User.get_default_user()
248 248 c.perm_user = c.user.AuthUser
249 return render('admin/permissions/permissions.html')
249 return render('admin/permissions/permissions.mako')
@@ -162,7 +162,7 class RepoGroupsController(BaseControlle
162 162 repo_group_data = RepoGroupModel().get_repo_groups_as_dict(
163 163 repo_group_list=repo_group_list_acl, admin=True)
164 164 c.data = json.dumps(repo_group_data)
165 return render('admin/repo_groups/repo_groups.html')
165 return render('admin/repo_groups/repo_groups.mako')
166 166
167 167 # perm checks inside
168 168 @NotAnonymous()
@@ -199,7 +199,7 class RepoGroupsController(BaseControlle
199 199 # TODO: in futureaction_logger(, '', '', '', self.sa)
200 200 except formencode.Invalid as errors:
201 201 return htmlfill.render(
202 render('admin/repo_groups/repo_group_add.html'),
202 render('admin/repo_groups/repo_group_add.mako'),
203 203 defaults=errors.value,
204 204 errors=errors.error_dict or {},
205 205 prefix_error=False,
@@ -224,7 +224,7 class RepoGroupsController(BaseControlle
224 224 return abort(403)
225 225
226 226 self.__load_defaults()
227 return render('admin/repo_groups/repo_group_add.html')
227 return render('admin/repo_groups/repo_group_add.mako')
228 228
229 229 @HasRepoGroupPermissionAnyDecorator('group.admin')
230 230 @auth.CSRFRequired()
@@ -263,7 +263,7 class RepoGroupsController(BaseControlle
263 263 except formencode.Invalid as errors:
264 264 c.active = 'settings'
265 265 return htmlfill.render(
266 render('admin/repo_groups/repo_group_edit.html'),
266 render('admin/repo_groups/repo_group_edit.mako'),
267 267 defaults=errors.value,
268 268 errors=errors.error_dict or {},
269 269 prefix_error=False,
@@ -338,7 +338,7 class RepoGroupsController(BaseControlle
338 338 defaults = self.__load_data(c.repo_group.group_id)
339 339
340 340 return htmlfill.render(
341 render('admin/repo_groups/repo_group_edit.html'),
341 render('admin/repo_groups/repo_group_edit.mako'),
342 342 defaults=defaults,
343 343 encoding="UTF-8",
344 344 force_defaults=False
@@ -351,7 +351,7 class RepoGroupsController(BaseControlle
351 351 c.active = 'advanced'
352 352 c.repo_group = RepoGroupModel()._get_repo_group(group_name)
353 353
354 return render('admin/repo_groups/repo_group_edit.html')
354 return render('admin/repo_groups/repo_group_edit.mako')
355 355
356 356 @HasRepoGroupPermissionAnyDecorator('group.admin')
357 357 def edit_repo_group_perms(self, group_name):
@@ -363,7 +363,7 class RepoGroupsController(BaseControlle
363 363 defaults = self.__load_data(c.repo_group.group_id)
364 364
365 365 return htmlfill.render(
366 render('admin/repo_groups/repo_group_edit.html'),
366 render('admin/repo_groups/repo_group_edit.mako'),
367 367 defaults=defaults,
368 368 encoding="UTF-8",
369 369 force_defaults=False
@@ -147,7 +147,7 class ReposController(BaseRepoController
147 147 # json used to render the grid
148 148 c.data = json.dumps(repos_data)
149 149
150 return render('admin/repos/repos.html')
150 return render('admin/repos/repos.mako')
151 151
152 152 # perms check inside
153 153 @NotAnonymous()
@@ -175,7 +175,7 class ReposController(BaseRepoController
175 175 task_id = task.task_id
176 176 except formencode.Invalid as errors:
177 177 return htmlfill.render(
178 render('admin/repos/repo_add.html'),
178 render('admin/repos/repo_add.mako'),
179 179 defaults=errors.value,
180 180 errors=errors.error_dict or {},
181 181 prefix_error=False,
@@ -235,7 +235,7 class ReposController(BaseRepoController
235 235 defaults.update({'repo_group': parent_group_choice})
236 236
237 237 return htmlfill.render(
238 render('admin/repos/repo_add.html'),
238 render('admin/repos/repo_add.mako'),
239 239 defaults=defaults,
240 240 errors={},
241 241 prefix_error=False,
@@ -249,7 +249,7 class ReposController(BaseRepoController
249 249 c.task_id = request.GET.get('task_id')
250 250 if not c.repo:
251 251 raise HTTPNotFound()
252 return render('admin/repos/repo_creating.html')
252 return render('admin/repos/repo_creating.mako')
253 253
254 254 @NotAnonymous()
255 255 @jsonify
@@ -334,7 +334,7 class ReposController(BaseRepoController
334 334 defaults = self.__load_data(repo_name)
335 335 defaults.update(errors.value)
336 336 return htmlfill.render(
337 render('admin/repos/repo_edit.html'),
337 render('admin/repos/repo_edit.mako'),
338 338 defaults=defaults,
339 339 errors=errors.error_dict or {},
340 340 prefix_error=False,
@@ -410,7 +410,7 class ReposController(BaseRepoController
410 410 c.personal_repo_group = c.rhodecode_user.personal_repo_group
411 411 c.active = 'settings'
412 412 return htmlfill.render(
413 render('admin/repos/repo_edit.html'),
413 render('admin/repos/repo_edit.mako'),
414 414 defaults=defaults,
415 415 encoding="UTF-8",
416 416 force_defaults=False)
@@ -424,7 +424,7 class ReposController(BaseRepoController
424 424 defaults = RepoModel()._get_defaults(repo_name)
425 425
426 426 return htmlfill.render(
427 render('admin/repos/repo_edit.html'),
427 render('admin/repos/repo_edit.mako'),
428 428 defaults=defaults,
429 429 encoding="UTF-8",
430 430 force_defaults=False)
@@ -454,7 +454,7 class ReposController(BaseRepoController
454 454 if request.POST:
455 455
456 456 return redirect(url('repo_edit_fields'))
457 return render('admin/repos/repo_edit.html')
457 return render('admin/repos/repo_edit.mako')
458 458
459 459 @HasRepoPermissionAllDecorator('repository.admin')
460 460 @auth.CSRFRequired()
@@ -509,7 +509,7 class ReposController(BaseRepoController
509 509
510 510 if request.POST:
511 511 return redirect(url('repo_edit_advanced'))
512 return render('admin/repos/repo_edit.html')
512 return render('admin/repos/repo_edit.mako')
513 513
514 514 @HasRepoPermissionAllDecorator('repository.admin')
515 515 @auth.CSRFRequired()
@@ -642,7 +642,7 class ReposController(BaseRepoController
642 642 c.repo_info = self._load_repo(repo_name)
643 643 c.active = 'caches'
644 644
645 return render('admin/repos/repo_edit.html')
645 return render('admin/repos/repo_edit.mako')
646 646
647 647 @HasRepoPermissionAllDecorator('repository.admin')
648 648 @auth.CSRFRequired()
@@ -664,7 +664,7 class ReposController(BaseRepoController
664 664 c.repo_info = self._load_repo(repo_name)
665 665 c.active = 'remote'
666 666
667 return render('admin/repos/repo_edit.html')
667 return render('admin/repos/repo_edit.mako')
668 668
669 669 @HasRepoPermissionAllDecorator('repository.admin')
670 670 @auth.CSRFRequired()
@@ -702,7 +702,7 class ReposController(BaseRepoController
702 702
703 703 c.active = 'statistics'
704 704
705 return render('admin/repos/repo_edit.html')
705 return render('admin/repos/repo_edit.mako')
706 706
707 707 @HasRepoPermissionAllDecorator('repository.admin')
708 708 @auth.CSRFRequired()
@@ -771,7 +771,7 class ReposController(BaseRepoController
771 771 c.global_patterns = c.settings_model.get_global_settings()
772 772 c.repo_patterns = c.settings_model.get_repo_settings()
773 773
774 return render('admin/repos/repo_edit.html')
774 return render('admin/repos/repo_edit.mako')
775 775
776 776 @HasRepoPermissionAllDecorator('repository.admin')
777 777 def repo_settings_vcs(self, repo_name):
@@ -791,7 +791,7 class ReposController(BaseRepoController
791 791 rhodecode.CONFIG.get('labs_settings_active', 'true'))
792 792
793 793 return htmlfill.render(
794 render('admin/repos/repo_edit.html'),
794 render('admin/repos/repo_edit.mako'),
795 795 defaults=defaults,
796 796 encoding="UTF-8",
797 797 force_defaults=False)
@@ -819,7 +819,7 class ReposController(BaseRepoController
819 819 _("Some form inputs contain invalid data."),
820 820 category='error')
821 821 return htmlfill.render(
822 render('admin/repos/repo_edit.html'),
822 render('admin/repos/repo_edit.mako'),
823 823 defaults=errors.value,
824 824 errors=errors.error_dict or {},
825 825 prefix_error=False,
@@ -842,7 +842,7 class ReposController(BaseRepoController
842 842 return redirect(url('repo_vcs_settings', repo_name=repo_name))
843 843
844 844 return htmlfill.render(
845 render('admin/repos/repo_edit.html'),
845 render('admin/repos/repo_edit.mako'),
846 846 defaults=self._vcs_form_defaults(repo_name),
847 847 encoding="UTF-8",
848 848 force_defaults=False)
@@ -150,7 +150,7 class SettingsController(BaseController)
150 150 _("Some form inputs contain invalid data."),
151 151 category='error')
152 152 return htmlfill.render(
153 render('admin/settings/settings.html'),
153 render('admin/settings/settings.mako'),
154 154 defaults=errors.value,
155 155 errors=errors.error_dict or {},
156 156 prefix_error=False,
@@ -179,7 +179,7 class SettingsController(BaseController)
179 179 return redirect(url('admin_settings_vcs'))
180 180
181 181 return htmlfill.render(
182 render('admin/settings/settings.html'),
182 render('admin/settings/settings.mako'),
183 183 defaults=self._form_defaults(),
184 184 encoding="UTF-8",
185 185 force_defaults=False)
@@ -198,7 +198,7 class SettingsController(BaseController)
198 198 c.svn_proxy_generate_config = pyramid_settings[generate_config]
199 199
200 200 return htmlfill.render(
201 render('admin/settings/settings.html'),
201 render('admin/settings/settings.mako'),
202 202 defaults=self._form_defaults(),
203 203 encoding="UTF-8",
204 204 force_defaults=False)
@@ -235,7 +235,7 class SettingsController(BaseController)
235 235 c.active = 'mapping'
236 236
237 237 return htmlfill.render(
238 render('admin/settings/settings.html'),
238 render('admin/settings/settings.mako'),
239 239 defaults=self._form_defaults(),
240 240 encoding="UTF-8",
241 241 force_defaults=False)
@@ -253,7 +253,7 class SettingsController(BaseController)
253 253 form_result = application_form.to_python(dict(request.POST))
254 254 except formencode.Invalid as errors:
255 255 return htmlfill.render(
256 render('admin/settings/settings.html'),
256 render('admin/settings/settings.mako'),
257 257 defaults=errors.value,
258 258 errors=errors.error_dict or {},
259 259 prefix_error=False,
@@ -296,7 +296,7 class SettingsController(BaseController)
296 296 .get_personal_group_name_pattern()
297 297
298 298 return htmlfill.render(
299 render('admin/settings/settings.html'),
299 render('admin/settings/settings.mako'),
300 300 defaults=self._form_defaults(),
301 301 encoding="UTF-8",
302 302 force_defaults=False)
@@ -312,7 +312,7 class SettingsController(BaseController)
312 312 form_result = application_form.to_python(dict(request.POST))
313 313 except formencode.Invalid as errors:
314 314 return htmlfill.render(
315 render('admin/settings/settings.html'),
315 render('admin/settings/settings.mako'),
316 316 defaults=errors.value,
317 317 errors=errors.error_dict or {},
318 318 prefix_error=False,
@@ -360,7 +360,7 class SettingsController(BaseController)
360 360 c.active = 'visual'
361 361
362 362 return htmlfill.render(
363 render('admin/settings/settings.html'),
363 render('admin/settings/settings.mako'),
364 364 defaults=self._form_defaults(),
365 365 encoding="UTF-8",
366 366 force_defaults=False)
@@ -406,7 +406,7 class SettingsController(BaseController)
406 406 'desc': defaults.get('rhodecode_issuetracker_desc_' + uid),
407 407 })
408 408
409 return render('admin/settings/settings.html')
409 return render('admin/settings/settings.mako')
410 410
411 411 @HasPermissionAllDecorator('hg.admin')
412 412 @auth.CSRFRequired()
@@ -469,7 +469,7 class SettingsController(BaseController)
469 469 c.rhodecode_ini = rhodecode.CONFIG
470 470
471 471 return htmlfill.render(
472 render('admin/settings/settings.html'),
472 render('admin/settings/settings.mako'),
473 473 defaults=self._form_defaults(),
474 474 encoding="UTF-8",
475 475 force_defaults=False)
@@ -526,7 +526,7 class SettingsController(BaseController)
526 526 c.custom_hooks = model.get_custom_hooks()
527 527
528 528 return htmlfill.render(
529 render('admin/settings/settings.html'),
529 render('admin/settings/settings.mako'),
530 530 defaults=self._form_defaults(),
531 531 encoding="UTF-8",
532 532 force_defaults=False)
@@ -541,7 +541,7 class SettingsController(BaseController)
541 541 searcher = searcher_from_config(config)
542 542 c.statistics = searcher.statistics()
543 543
544 return render('admin/settings/settings.html')
544 return render('admin/settings/settings.mako')
545 545
546 546 @HasPermissionAllDecorator('hg.admin')
547 547 def settings_system(self):
@@ -635,12 +635,12 class SettingsController(BaseController)
635 635 if snapshot:
636 636 if c.allowed_to_snapshot:
637 637 c.data_items.pop(0) # remove server info
638 return render('admin/settings/settings_system_snapshot.html')
638 return render('admin/settings/settings_system_snapshot.mako')
639 639 else:
640 640 h.flash('You are not allowed to do this', category='warning')
641 641
642 642 return htmlfill.render(
643 render('admin/settings/settings.html'),
643 render('admin/settings/settings.mako'),
644 644 defaults=defaults,
645 645 encoding="UTF-8",
646 646 force_defaults=False)
@@ -688,7 +688,7 class SettingsController(BaseController)
688 688 c.should_upgrade = True
689 689 c.important_notices = latest['general']
690 690
691 return render('admin/settings/settings_system_update.html')
691 return render('admin/settings/settings_system_update.mako')
692 692
693 693 @HasPermissionAllDecorator('hg.admin')
694 694 def settings_supervisor(self):
@@ -710,7 +710,7 class SettingsController(BaseController)
710 710 except Exception as e:
711 711 c.connection_error = str(e)
712 712 log.exception("Exception reading supervisor data")
713 return render('admin/settings/settings.html')
713 return render('admin/settings/settings.mako')
714 714
715 715 groupid = c.rhodecode_ini.get('supervisor.group_id')
716 716
@@ -734,7 +734,7 class SettingsController(BaseController)
734 734 log.exception("Exception reading supervisor data")
735 735 c.supervisor_procs[k] = {'_rhodecode_error': str(e)}
736 736
737 return render('admin/settings/settings.html')
737 return render('admin/settings/settings.mako')
738 738
739 739 @HasPermissionAllDecorator('hg.admin')
740 740 def settings_supervisor_log(self, procid):
@@ -751,7 +751,7 class SettingsController(BaseController)
751 751 offset = abs(safe_int(request.GET.get('offset', c.log_size))) * -1
752 752 c.log = supervisor.read_process_log(_connection, procid, offset, 0)
753 753
754 return render('admin/settings/settings.html')
754 return render('admin/settings/settings.mako')
755 755
756 756 @HasPermissionAllDecorator('hg.admin')
757 757 @auth.CSRFRequired()
@@ -768,7 +768,7 class SettingsController(BaseController)
768 768 _('Some form inputs contain invalid data.'),
769 769 category='error')
770 770 return htmlfill.render(
771 render('admin/settings/settings.html'),
771