##// END OF EJS Templates
templating: use .mako as extensions for template files.
marcink -
r1282:90601d74 default
parent child Browse files
Show More
@@ -29,8 +29,6 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 b' 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 render('admin/settings/settings.mako'),
772 772 defaults=errors.value,
773 773 errors=errors.error_dict or {},
774 774 prefix_error=False,
@@ -795,7 +795,7 b' class SettingsController(BaseController)'
795 795 return redirect(url('admin_settings_labs'))
796 796
797 797 return htmlfill.render(
798 render('admin/settings/settings.html'),
798 render('admin/settings/settings.mako'),
799 799 defaults=self._form_defaults(),
800 800 encoding='UTF-8',
801 801 force_defaults=False)
@@ -811,7 +811,7 b' class SettingsController(BaseController)'
811 811 c.lab_settings = _LAB_SETTINGS
812 812
813 813 return htmlfill.render(
814 render('admin/settings/settings.html'),
814 render('admin/settings/settings.mako'),
815 815 defaults=self._form_defaults(),
816 816 encoding='UTF-8',
817 817 force_defaults=False)
@@ -109,7 +109,7 b' class UserGroupsController(BaseControlle'
109 109 # url('users_groups')
110 110
111 111 from rhodecode.lib.utils import PartialRenderer
112 _render = PartialRenderer('data_table/_dt_elements.html')
112 _render = PartialRenderer('data_table/_dt_elements.mako')
113 113
114 114 def user_group_name(user_group_id, user_group_name):
115 115 return _render("user_group_name", user_group_id, user_group_name)
@@ -136,7 +136,7 b' class UserGroupsController(BaseControlle'
136 136 })
137 137
138 138 c.data = json.dumps(user_groups_data)
139 return render('admin/user_groups/user_groups.html')
139 return render('admin/user_groups/user_groups.mako')
140 140
141 141 @HasPermissionAnyDecorator('hg.admin', 'hg.usergroup.create.true')
142 142 @auth.CSRFRequired()
@@ -167,7 +167,7 b' class UserGroupsController(BaseControlle'
167 167 Session().commit()
168 168 except formencode.Invalid as errors:
169 169 return htmlfill.render(
170 render('admin/user_groups/user_group_add.html'),
170 render('admin/user_groups/user_group_add.mako'),
171 171 defaults=errors.value,
172 172 errors=errors.error_dict or {},
173 173 prefix_error=False,
@@ -185,7 +185,7 b' class UserGroupsController(BaseControlle'
185 185 def new(self):
186 186 """GET /user_groups/new: Form to create a new item"""
187 187 # url('new_users_group')
188 return render('admin/user_groups/user_group_add.html')
188 return render('admin/user_groups/user_group_add.mako')
189 189
190 190 @HasUserGroupPermissionAnyDecorator('usergroup.admin')
191 191 @auth.CSRFRequired()
@@ -224,7 +224,7 b' class UserGroupsController(BaseControlle'
224 224 e = errors.error_dict or {}
225 225
226 226 return htmlfill.render(
227 render('admin/user_groups/user_group_edit.html'),
227 render('admin/user_groups/user_group_edit.mako'),
228 228 defaults=defaults,
229 229 errors=e,
230 230 prefix_error=False,
@@ -276,7 +276,7 b' class UserGroupsController(BaseControlle'
276 276 defaults = self.__load_defaults(user_group_id)
277 277
278 278 return htmlfill.render(
279 render('admin/user_groups/user_group_edit.html'),
279 render('admin/user_groups/user_group_edit.mako'),
280 280 defaults=defaults,
281 281 encoding="UTF-8",
282 282 force_defaults=False
@@ -299,7 +299,7 b' class UserGroupsController(BaseControlle'
299 299 p.permission.permission_name})
300 300
301 301 return htmlfill.render(
302 render('admin/user_groups/user_group_edit.html'),
302 render('admin/user_groups/user_group_edit.mako'),
303 303 defaults=defaults,
304 304 encoding="UTF-8",
305 305 force_defaults=False
@@ -365,7 +365,7 b' class UserGroupsController(BaseControlle'
365 365 permissions['repositories_groups'][gr.group.group_name] \
366 366 = gr.permission.permission_name
367 367 c.permissions = permissions
368 return render('admin/user_groups/user_group_edit.html')
368 return render('admin/user_groups/user_group_edit.mako')
369 369
370 370 @HasUserGroupPermissionAnyDecorator('usergroup.admin')
371 371 def edit_global_perms(self, user_group_id):
@@ -379,7 +379,7 b' class UserGroupsController(BaseControlle'
379 379 defaults.update(c.user_group.get_default_perms())
380 380
381 381 return htmlfill.render(
382 render('admin/user_groups/user_group_edit.html'),
382 render('admin/user_groups/user_group_edit.mako'),
383 383 defaults=defaults,
384 384 encoding="UTF-8",
385 385 force_defaults=False
@@ -425,7 +425,7 b' class UserGroupsController(BaseControlle'
425 425 defaults = errors.value
426 426 c.user_group = user_group
427 427 return htmlfill.render(
428 render('admin/user_groups/user_group_edit.html'),
428 render('admin/user_groups/user_group_edit.mako'),
429 429 defaults=defaults,
430 430 errors=errors.error_dict or {},
431 431 prefix_error=False,
@@ -456,7 +456,7 b' class UserGroupsController(BaseControlle'
456 456 (x.group for x in c.user_group.users_group_repo_group_to_perm),
457 457 key=lambda u: u.group_name.lower())
458 458
459 return render('admin/user_groups/user_group_edit.html')
459 return render('admin/user_groups/user_group_edit.mako')
460 460
461 461 @HasUserGroupPermissionAnyDecorator('usergroup.admin')
462 462 @XHRRequired()
@@ -82,7 +82,7 b' class UsersController(BaseController):'
82 82 # url('users')
83 83
84 84 from rhodecode.lib.utils import PartialRenderer
85 _render = PartialRenderer('data_table/_dt_elements.html')
85 _render = PartialRenderer('data_table/_dt_elements.mako')
86 86
87 87 def username(user_id, username):
88 88 return _render("user_name", user_id, username)
@@ -119,7 +119,7 b' class UsersController(BaseController):'
119 119
120 120
121 121 c.data = json.dumps(users_data)
122 return render('admin/users/users.html')
122 return render('admin/users/users.mako')
123 123
124 124 def _get_personal_repo_group_template_vars(self):
125 125 DummyUser = AttributeDict({
@@ -156,7 +156,7 b' class UsersController(BaseController):'
156 156 except formencode.Invalid as errors:
157 157 self._get_personal_repo_group_template_vars()
158 158 return htmlfill.render(
159 render('admin/users/user_add.html'),
159 render('admin/users/user_add.mako'),
160 160 defaults=errors.value,
161 161 errors=errors.error_dict or {},
162 162 prefix_error=False,
@@ -176,7 +176,7 b' class UsersController(BaseController):'
176 176 # url('new_user')
177 177 c.default_extern_type = auth_rhodecode.RhodeCodeAuthPlugin.name
178 178 self._get_personal_repo_group_template_vars()
179 return render('admin/users/user_add.html')
179 return render('admin/users/user_add.mako')
180 180
181 181 @HasPermissionAllDecorator('hg.admin')
182 182 @auth.CSRFRequired()
@@ -218,7 +218,7 b' class UsersController(BaseController):'
218 218 e = errors.error_dict or {}
219 219
220 220 return htmlfill.render(
221 render('admin/users/user_edit.html'),
221 render('admin/users/user_edit.mako'),
222 222 defaults=defaults,
223 223 errors=e,
224 224 prefix_error=False,
@@ -414,7 +414,7 b' class UsersController(BaseController):'
414 414 defaults = c.user.get_dict()
415 415 defaults.update({'language': c.user.user_data.get('language')})
416 416 return htmlfill.render(
417 render('admin/users/user_edit.html'),
417 render('admin/users/user_edit.mako'),
418 418 defaults=defaults,
419 419 encoding="UTF-8",
420 420 force_defaults=False)
@@ -446,7 +446,7 b' class UsersController(BaseController):'
446 446 '"inactive" instead of deleting it.') if has_review else ''
447 447
448 448 return htmlfill.render(
449 render('admin/users/user_edit.html'),
449 render('admin/users/user_edit.mako'),
450 450 defaults=defaults,
451 451 encoding="UTF-8",
452 452 force_defaults=False)
@@ -476,7 +476,7 b' class UsersController(BaseController):'
476 476 c.user.user_id, show_expired=show_expired)
477 477 defaults = c.user.get_dict()
478 478 return htmlfill.render(
479 render('admin/users/user_edit.html'),
479 render('admin/users/user_edit.mako'),
480 480 defaults=defaults,
481 481 encoding="UTF-8",
482 482 force_defaults=False)
@@ -539,7 +539,7 b' class UsersController(BaseController):'
539 539 defaults.update(c.user.get_default_perms())
540 540
541 541 return htmlfill.render(
542 render('admin/users/user_edit.html'),
542 render('admin/users/user_edit.mako'),
543 543 defaults=defaults,
544 544 encoding="UTF-8",
545 545 force_defaults=False)
@@ -584,7 +584,7 b' class UsersController(BaseController):'
584 584 defaults = errors.value
585 585 c.user = user
586 586 return htmlfill.render(
587 render('admin/users/user_edit.html'),
587 render('admin/users/user_edit.mako'),
588 588 defaults=defaults,
589 589 errors=errors.error_dict or {},
590 590 prefix_error=False,
@@ -607,7 +607,7 b' class UsersController(BaseController):'
607 607 c.active = 'perms_summary'
608 608 c.perm_user = AuthUser(user_id=user_id, ip_addr=self.ip_addr)
609 609
610 return render('admin/users/user_edit.html')
610 return render('admin/users/user_edit.mako')
611 611
612 612 @HasPermissionAllDecorator('hg.admin')
613 613 def edit_emails(self, user_id):
@@ -623,7 +623,7 b' class UsersController(BaseController):'
623 623
624 624 defaults = c.user.get_dict()
625 625 return htmlfill.render(
626 render('admin/users/user_edit.html'),
626 render('admin/users/user_edit.mako'),
627 627 defaults=defaults,
628 628 encoding="UTF-8",
629 629 force_defaults=False)
@@ -685,7 +685,7 b' class UsersController(BaseController):'
685 685
686 686 defaults = c.user.get_dict()
687 687 return htmlfill.render(
688 render('admin/users/user_edit.html'),
688 render('admin/users/user_edit.mako'),
689 689 defaults=defaults,
690 690 encoding="UTF-8",
691 691 force_defaults=False)
@@ -34,8 +34,8 b' log = logging.getLogger(__name__)'
34 34
35 35 class BookmarksController(BaseReferencesController):
36 36
37 partials_template = 'bookmarks/bookmarks_data.html'
38 template = 'bookmarks/bookmarks.html'
37 partials_template = 'bookmarks/bookmarks_data.mako'
38 template = 'bookmarks/bookmarks.mako'
39 39
40 40 def __before__(self):
41 41 super(BookmarksController, self).__before__()
@@ -34,8 +34,8 b' log = logging.getLogger(__name__)'
34 34
35 35 class BranchesController(BaseReferencesController):
36 36
37 partials_template = 'branches/branches_data.html'
38 template = 'branches/branches.html'
37 partials_template = 'branches/branches_data.mako'
38 template = 'branches/branches.mako'
39 39
40 40 def __before__(self):
41 41 super(BranchesController, self).__before__()
@@ -193,7 +193,7 b' class ChangelogController(BaseRepoContro'
193 193 if (request.environ.get('HTTP_X_PARTIAL_XHR')
194 194 or request.environ.get('HTTP_X_PJAX')):
195 195 # loading from ajax, we don't want the first result, it's popped
196 return render('changelog/changelog_file_history.html')
196 return render('changelog/changelog_file_history.mako')
197 197
198 198 if f_path:
199 199 revs = []
@@ -201,7 +201,7 b' class ChangelogController(BaseRepoContro'
201 201 revs = c.pagination
202 202 self._graph(c.rhodecode_repo, revs)
203 203
204 return render('changelog/changelog.html')
204 return render('changelog/changelog.mako')
205 205
206 206 @LoginRequired()
207 207 @HasRepoPermissionAnyDecorator('repository.read', 'repository.write',
@@ -209,7 +209,7 b' class ChangelogController(BaseRepoContro'
209 209 def changelog_details(self, commit_id):
210 210 if request.environ.get('HTTP_X_PARTIAL_XHR'):
211 211 c.commit = c.rhodecode_repo.get_commit(commit_id=commit_id)
212 return render('changelog/changelog_details.html')
212 return render('changelog/changelog_details.mako')
213 213 raise HTTPNotFound()
214 214
215 215 @LoginRequired()
@@ -218,5 +218,5 b' class ChangelogController(BaseRepoContro'
218 218 def changelog_summary(self, repo_name):
219 219 if request.environ.get('HTTP_X_PJAX'):
220 220 _load_changelog_summary()
221 return render('changelog/changelog_summary_data.html')
221 return render('changelog/changelog_summary_data.mako')
222 222 raise HTTPNotFound()
@@ -288,17 +288,17 b' class ChangesetController(BaseRepoContro'
288 288 elif method == 'patch':
289 289 response.content_type = 'text/plain'
290 290 c.diff = safe_unicode(diff)
291 return render('changeset/patch_changeset.html')
291 return render('changeset/patch_changeset.mako')
292 292 elif method == 'raw':
293 293 response.content_type = 'text/plain'
294 294 return diff
295 295 elif method == 'show':
296 296 if len(c.commit_ranges) == 1:
297 return render('changeset/changeset.html')
297 return render('changeset/changeset.mako')
298 298 else:
299 299 c.ancestor = None
300 300 c.target_repo = c.rhodecode_db_repo
301 return render('changeset/changeset_range.html')
301 return render('changeset/changeset_range.mako')
302 302
303 303 @LoginRequired()
304 304 @HasRepoPermissionAnyDecorator('repository.read', 'repository.write',
@@ -390,7 +390,7 b' class ChangesetController(BaseRepoContro'
390 390 if comment:
391 391 data.update(comment.get_dict())
392 392 data.update({'rendered_text':
393 render('changeset/changeset_comment_block.html')})
393 render('changeset/changeset_comment_block.mako')})
394 394
395 395 return data
396 396
@@ -92,7 +92,7 b' class CompareController(BaseRepoControll'
92 92 c.commit_statuses = ChangesetStatus.STATUSES
93 93 c.preview_mode = False
94 94 c.file_path = None
95 return render('compare/compare_diff.html')
95 return render('compare/compare_diff.mako')
96 96
97 97 @LoginRequired()
98 98 @HasRepoPermissionAnyDecorator('repository.read', 'repository.write',
@@ -217,7 +217,7 b' class CompareController(BaseRepoControll'
217 217 if partial: # for PR ajax commits loader
218 218 if not c.ancestor:
219 219 return '' # cannot merge if there is no ancestor
220 return render('compare/compare_commits.html')
220 return render('compare/compare_commits.mako')
221 221
222 222 if c.ancestor:
223 223 # case we want a simple diff without incoming commits,
@@ -279,4 +279,4 b' class CompareController(BaseRepoControll'
279 279 c.source_commit = source_commit
280 280 c.target_commit = target_commit
281 281
282 return render('compare/compare_diff.html')
282 return render('compare/compare_diff.mako')
@@ -144,7 +144,7 b' class FilesController(BaseRepoController'
144 144 log.debug('Generating cached file tree for %s, %s, %s',
145 145 repo_name, commit_id, f_path)
146 146 c.full_load = full_load
147 return render('files/files_browser_tree.html')
147 return render('files/files_browser_tree.mako')
148 148
149 149 cache_manager = self.__get_tree_cache_manager(
150 150 repo_name, caches.FILE_TREE)
@@ -255,9 +255,9 b' class FilesController(BaseRepoController'
255 255 raise HTTPNotFound()
256 256
257 257 if request.environ.get('HTTP_X_PJAX'):
258 return render('files/files_pjax.html')
258 return render('files/files_pjax.mako')
259 259
260 return render('files/files.html')
260 return render('files/files.mako')
261 261
262 262 @LoginRequired()
263 263 @HasRepoPermissionAnyDecorator('repository.read', 'repository.write',
@@ -305,7 +305,7 b' class FilesController(BaseRepoController'
305 305 c.authors.append((
306 306 h.email(author),
307 307 h.person(author, 'username_or_name_or_email')))
308 return render('files/file_authors_box.html')
308 return render('files/file_authors_box.mako')
309 309
310 310 @LoginRequired()
311 311 @HasRepoPermissionAnyDecorator('repository.read', 'repository.write',
@@ -465,7 +465,7 b' class FilesController(BaseRepoController'
465 465 'Deleted file %s via RhodeCode Enterprise') % (f_path)
466 466 c.f_path = f_path
467 467
468 return render('files/files_delete.html')
468 return render('files/files_delete.mako')
469 469
470 470 @CSRFRequired()
471 471 @LoginRequired()
@@ -574,7 +574,7 b' class FilesController(BaseRepoController'
574 574 'Edited file %s via RhodeCode Enterprise') % (f_path)
575 575 c.f_path = f_path
576 576
577 return render('files/files_edit.html')
577 return render('files/files_edit.mako')
578 578
579 579 def _is_valid_head(self, commit_id, repo):
580 580 # check if commit is a branch identifier- basically we cannot
@@ -700,7 +700,7 b' class FilesController(BaseRepoController'
700 700 c.default_message = (_('Added file via RhodeCode Enterprise'))
701 701 c.f_path = f_path
702 702
703 return render('files/files_add.html')
703 return render('files/files_add.mako')
704 704
705 705 @LoginRequired()
706 706 @HasRepoPermissionAnyDecorator('repository.read', 'repository.write',
@@ -50,9 +50,9 b' class FollowersController(BaseRepoContro'
50 50 .order_by(UserFollowing.follows_from)
51 51 c.followers_pager = Page(d, page=p, items_per_page=20)
52 52
53 c.followers_data = render('/followers/followers_data.html')
53 c.followers_data = render('/followers/followers_data.mako')
54 54
55 55 if request.environ.get('HTTP_X_PJAX'):
56 56 return c.followers_data
57 57
58 return render('/followers/followers.html')
58 return render('/followers/followers.mako')
@@ -122,12 +122,12 b' class ForksController(BaseRepoController'
122 122 d.append(r)
123 123 c.forks_pager = Page(d, page=p, items_per_page=20)
124 124
125 c.forks_data = render('/forks/forks_data.html')
125 c.forks_data = render('/forks/forks_data.mako')
126 126
127 127 if request.environ.get('HTTP_X_PJAX'):
128 128 return c.forks_data
129 129
130 return render('/forks/forks.html')
130 return render('/forks/forks.mako')
131 131
132 132 @LoginRequired()
133 133 @NotAnonymous()
@@ -144,7 +144,7 b' class ForksController(BaseRepoController'
144 144 defaults = self.__load_data(repo_name)
145 145
146 146 return htmlfill.render(
147 render('forks/fork.html'),
147 render('forks/fork.mako'),
148 148 defaults=defaults,
149 149 encoding="UTF-8",
150 150 force_defaults=False
@@ -177,7 +177,7 b' class ForksController(BaseRepoController'
177 177 except formencode.Invalid as errors:
178 178 c.new_repo = errors.value['repo_name']
179 179 return htmlfill.render(
180 render('forks/fork.html'),
180 render('forks/fork.mako'),
181 181 defaults=errors.value,
182 182 errors=errors.error_dict or {},
183 183 prefix_error=False,
@@ -97,7 +97,7 b' class HomeController(BaseController):'
97 97 c.repos_data = json.dumps(repo_data)
98 98 c.repo_groups_data = json.dumps(repo_group_data)
99 99
100 return render('/index.html')
100 return render('/index.mako')
101 101
102 102 @LoginRequired()
103 103 @HasRepoGroupPermissionAnyDecorator('group.read', 'group.write',
@@ -112,7 +112,7 b' class HomeController(BaseController):'
112 112 c.repos_data = json.dumps(repo_data)
113 113 c.repo_groups_data = json.dumps(repo_group_data)
114 114
115 return render('index_repo_group.html')
115 return render('index_repo_group.mako')
116 116
117 117 def _get_repo_list(self, name_contains=None, repo_type=None, limit=20):
118 118 query = Repository.query()\
@@ -205,11 +205,11 b' class JournalController(BaseController):'
205 205 c.journal_pager = Page(journal, page=p, items_per_page=20, url=url_generator)
206 206 c.journal_day_aggreagate = self._get_daily_aggregate(c.journal_pager)
207 207
208 c.journal_data = render('journal/journal_data.html')
208 c.journal_data = render('journal/journal_data.mako')
209 209 if request.is_xhr:
210 210 return c.journal_data
211 211
212 return render('journal/journal.html')
212 return render('journal/journal.mako')
213 213
214 214 @LoginRequired(auth_token_access=True)
215 215 @NotAnonymous()
@@ -276,10 +276,10 b' class JournalController(BaseController):'
276 276
277 277 c.journal_day_aggreagate = self._get_daily_aggregate(c.journal_pager)
278 278
279 c.journal_data = render('journal/journal_data.html')
279 c.journal_data = render('journal/journal_data.mako')
280 280 if request.is_xhr:
281 281 return c.journal_data
282 return render('journal/public_journal.html')
282 return render('journal/public_journal.mako')
283 283
284 284 @LoginRequired(auth_token_access=True)
285 285 def public_journal_atom(self):
@@ -216,7 +216,7 b' class PullrequestsController(BaseRepoCon'
216 216 if not request.is_xhr:
217 217 c.data = json.dumps(data['data'])
218 218 c.records_total = data['recordsTotal']
219 return render('/pullrequests/pullrequests.html')
219 return render('/pullrequests/pullrequests.mako')
220 220 else:
221 221 return json.dumps(data)
222 222
@@ -255,7 +255,7 b' class PullrequestsController(BaseRepoCon'
255 255 opened_by=opened_by)
256 256
257 257 from rhodecode.lib.utils import PartialRenderer
258 _render = PartialRenderer('data_table/_dt_elements.html')
258 _render = PartialRenderer('data_table/_dt_elements.mako')
259 259 data = []
260 260 for pr in pull_requests:
261 261 comments = ChangesetCommentsModel().get_all_comments(
@@ -347,7 +347,7 b' class PullrequestsController(BaseRepoCon'
347 347 }
348 348 c.default_source_ref = selected_source_ref
349 349
350 return render('/pullrequests/pullrequest.html')
350 return render('/pullrequests/pullrequest.mako')
351 351
352 352 @LoginRequired()
353 353 @NotAnonymous()
@@ -852,7 +852,7 b' class PullrequestsController(BaseRepoCon'
852 852
853 853 # this is a hack to properly display links, when creating PR, the
854 854 # compare view and others uses different notation, and
855 # compare_commits.html renders links based on the target_repo.
855 # compare_commits.mako renders links based on the target_repo.
856 856 # We need to swap that here to generate it properly on the html side
857 857 c.target_repo = c.source_repo
858 858
@@ -882,7 +882,7 b' class PullrequestsController(BaseRepoCon'
882 882 c.changes, c.file_changes = self._get_pr_version_changes(
883 883 version, pull_request_latest)
884 884
885 return render('/pullrequests/pullrequest_show.html')
885 return render('/pullrequests/pullrequest_show.mako')
886 886
887 887 @LoginRequired()
888 888 @NotAnonymous()
@@ -985,7 +985,7 b' class PullrequestsController(BaseRepoCon'
985 985 c.co = comm
986 986 data.update(comm.get_dict())
987 987 data.update({'rendered_text':
988 render('changeset/changeset_comment_block.html')})
988 render('changeset/changeset_comment_block.mako')})
989 989
990 990 return data
991 991
@@ -108,4 +108,4 b' class SearchController(BaseRepoControlle'
108 108 c.cur_query = search_query
109 109 c.search_type = search_type
110 110 # Return a rendered template
111 return render('/search/search.html')
111 return render('/search/search.mako')
@@ -165,7 +165,7 b' class SummaryController(BaseRepoControll'
165 165 c.repo_name, c.rhodecode_user.user_id)
166 166
167 167 if c.repository_requirements_missing:
168 return render('summary/missing_requirements.html')
168 return render('summary/missing_requirements.mako')
169 169
170 170 c.readme_data, c.readme_file = \
171 171 self.__get_readme_data(c.rhodecode_db_repo)
@@ -173,9 +173,9 b' class SummaryController(BaseRepoControll'
173 173 _load_changelog_summary()
174 174
175 175 if request.is_xhr:
176 return render('changelog/changelog_summary_data.html')
176 return render('changelog/changelog_summary_data.mako')
177 177
178 return render('summary/summary.html')
178 return render('summary/summary.mako')
179 179
180 180 @LoginRequired()
181 181 @XHRRequired()
@@ -31,8 +31,8 b' log = logging.getLogger(__name__)'
31 31
32 32 class TagsController(BaseReferencesController):
33 33
34 partials_template = 'tags/tags_data.html'
35 template = 'tags/tags.html'
34 partials_template = 'tags/tags_data.mako'
35 template = 'tags/tags.mako'
36 36
37 37 def _get_reference_items(self, repo):
38 38 return repo.tags.items()
@@ -40,4 +40,4 b' class UsersController(BaseController):'
40 40 raise HTTPNotFound()
41 41
42 42 c.active = 'user_profile'
43 return render('users/user.html')
43 return render('users/user.mako')
@@ -36,7 +36,7 b' def includeme(config):'
36 36 ADMIN_PREFIX + '/integrations/new')
37 37 config.add_view('rhodecode.integrations.views.GlobalIntegrationsView',
38 38 attr='new_integration',
39 renderer='rhodecode:templates/admin/integrations/new.html',
39 renderer='rhodecode:templates/admin/integrations/new.mako',
40 40 request_method='GET',
41 41 route_name='global_integrations_new')
42 42
@@ -47,7 +47,7 b' def includeme(config):'
47 47 for route_name in ['global_integrations_home', 'global_integrations_list']:
48 48 config.add_view('rhodecode.integrations.views.GlobalIntegrationsView',
49 49 attr='index',
50 renderer='rhodecode:templates/admin/integrations/list.html',
50 renderer='rhodecode:templates/admin/integrations/list.mako',
51 51 request_method='GET',
52 52 route_name=route_name)
53 53
@@ -62,12 +62,12 b' def includeme(config):'
62 62 for route_name in ['global_integrations_create', 'global_integrations_edit']:
63 63 config.add_view('rhodecode.integrations.views.GlobalIntegrationsView',
64 64 attr='settings_get',
65 renderer='rhodecode:templates/admin/integrations/form.html',
65 renderer='rhodecode:templates/admin/integrations/form.mako',
66 66 request_method='GET',
67 67 route_name=route_name)
68 68 config.add_view('rhodecode.integrations.views.GlobalIntegrationsView',
69 69 attr='settings_post',
70 renderer='rhodecode:templates/admin/integrations/form.html',
70 renderer='rhodecode:templates/admin/integrations/form.mako',
71 71 request_method='POST',
72 72 route_name=route_name)
73 73
@@ -89,7 +89,7 b' def includeme(config):'
89 89 for route_name in ['repo_group_integrations_home', 'repo_group_integrations_list']:
90 90 config.add_view('rhodecode.integrations.views.RepoGroupIntegrationsView',
91 91 attr='index',
92 renderer='rhodecode:templates/admin/integrations/list.html',
92 renderer='rhodecode:templates/admin/integrations/list.mako',
93 93 request_method='GET',
94 94 route_name=route_name)
95 95
@@ -101,7 +101,7 b' def includeme(config):'
101 101 custom_predicates=(valid_repo_group,))
102 102 config.add_view('rhodecode.integrations.views.RepoGroupIntegrationsView',
103 103 attr='new_integration',
104 renderer='rhodecode:templates/admin/integrations/new.html',
104 renderer='rhodecode:templates/admin/integrations/new.mako',
105 105 request_method='GET',
106 106 route_name='repo_group_integrations_new')
107 107
@@ -120,12 +120,12 b' def includeme(config):'
120 120 for route_name in ['repo_group_integrations_edit', 'repo_group_integrations_create']:
121 121 config.add_view('rhodecode.integrations.views.RepoGroupIntegrationsView',
122 122 attr='settings_get',
123 renderer='rhodecode:templates/admin/integrations/form.html',
123 renderer='rhodecode:templates/admin/integrations/form.mako',
124 124 request_method='GET',
125 125 route_name=route_name)
126 126 config.add_view('rhodecode.integrations.views.RepoGroupIntegrationsView',
127 127 attr='settings_post',
128 renderer='rhodecode:templates/admin/integrations/form.html',
128 renderer='rhodecode:templates/admin/integrations/form.mako',
129 129 request_method='POST',
130 130 route_name=route_name)
131 131
@@ -147,7 +147,7 b' def includeme(config):'
147 147 config.add_view('rhodecode.integrations.views.RepoIntegrationsView',
148 148 attr='index',
149 149 request_method='GET',
150 renderer='rhodecode:templates/admin/integrations/list.html',
150 renderer='rhodecode:templates/admin/integrations/list.mako',
151 151 route_name=route_name)
152 152
153 153 config.add_route('repo_integrations_new',
@@ -158,7 +158,7 b' def includeme(config):'
158 158 custom_predicates=(valid_repo,))
159 159 config.add_view('rhodecode.integrations.views.RepoIntegrationsView',
160 160 attr='new_integration',
161 renderer='rhodecode:templates/admin/integrations/new.html',
161 renderer='rhodecode:templates/admin/integrations/new.mako',
162 162 request_method='GET',
163 163 route_name='repo_integrations_new')
164 164
@@ -177,12 +177,12 b' def includeme(config):'
177 177 for route_name in ['repo_integrations_edit', 'repo_integrations_create']:
178 178 config.add_view('rhodecode.integrations.views.RepoIntegrationsView',
179 179 attr='settings_get',
180 renderer='rhodecode:templates/admin/integrations/form.html',
180 renderer='rhodecode:templates/admin/integrations/form.mako',
181 181 request_method='GET',
182 182 route_name=route_name)
183 183 config.add_view('rhodecode.integrations.views.RepoIntegrationsView',
184 184 attr='settings_post',
185 renderer='rhodecode:templates/admin/integrations/form.html',
185 renderer='rhodecode:templates/admin/integrations/form.mako',
186 186 request_method='POST',
187 187 route_name=route_name)
188 188
@@ -2792,7 +2792,7 b' class CacheKey(Base, BaseModel):'
2792 2792 """
2793 2793 get suffix that might have been used in _get_cache_key to
2794 2794 generate self.cache_key. Only used for informational purposes
2795 in repo_edit.html.
2795 in repo_edit.mako.
2796 2796 """
2797 2797 # prefix, repo_name, suffix
2798 2798 return self._cache_key_partition()[2]
@@ -2784,7 +2784,7 b' class CacheKey(Base, BaseModel):'
2784 2784 """
2785 2785 get suffix that might have been used in _get_cache_key to
2786 2786 generate self.cache_key. Only used for informational purposes
2787 in repo_edit.html.
2787 in repo_edit.mako.
2788 2788 """
2789 2789 # prefix, repo_name, suffix
2790 2790 return self._cache_key_partition()[2]
@@ -2784,7 +2784,7 b' class CacheKey(Base, BaseModel):'
2784 2784 """
2785 2785 get suffix that might have been used in _get_cache_key to
2786 2786 generate self.cache_key. Only used for informational purposes
2787 in repo_edit.html.
2787 in repo_edit.mako.
2788 2788 """
2789 2789 # prefix, repo_name, suffix
2790 2790 return self._cache_key_partition()[2]
@@ -2788,7 +2788,7 b' class CacheKey(Base, BaseModel):'
2788 2788 """
2789 2789 get suffix that might have been used in _get_cache_key to
2790 2790 generate self.cache_key. Only used for informational purposes
2791 in repo_edit.html.
2791 in repo_edit.mako.
2792 2792 """
2793 2793 # prefix, repo_name, suffix
2794 2794 return self._cache_key_partition()[2]
@@ -2788,7 +2788,7 b' class CacheKey(Base, BaseModel):'
2788 2788 """
2789 2789 get suffix that might have been used in _get_cache_key to
2790 2790 generate self.cache_key. Only used for informational purposes
2791 in repo_edit.html.
2791 in repo_edit.mako.
2792 2792 """
2793 2793 # prefix, repo_name, suffix
2794 2794 return self._cache_key_partition()[2]
@@ -914,7 +914,7 b' def person_by_id(id_, show_attr="usernam'
914 914
915 915 def gravatar_with_user(author, show_disabled=False):
916 916 from rhodecode.lib.utils import PartialRenderer
917 _render = PartialRenderer('base/base.html')
917 _render = PartialRenderer('base/base.mako')
918 918 return _render('gravatar_with_user', author, show_disabled=show_disabled)
919 919
920 920
@@ -903,7 +903,7 b' class PartialRenderer(object):'
903 903 Partial renderer used to render chunks of html used in datagrids
904 904 use like::
905 905
906 _render = PartialRenderer('data_table/_dt_elements.html')
906 _render = PartialRenderer('data_table/_dt_elements.mako')
907 907 _render('quick_menu', args, kwargs)
908 908 PartialRenderer.h,
909 909 c,
@@ -127,7 +127,7 b' class LoginView(object):'
127 127
128 128 @view_config(
129 129 route_name='login', request_method='GET',
130 renderer='rhodecode:templates/login.html')
130 renderer='rhodecode:templates/login.mako')
131 131 def login(self):
132 132 came_from = get_came_from(self.request)
133 133 user = self.request.user
@@ -153,7 +153,7 b' class LoginView(object):'
153 153
154 154 @view_config(
155 155 route_name='login', request_method='POST',
156 renderer='rhodecode:templates/login.html')
156 renderer='rhodecode:templates/login.mako')
157 157 def login_post(self):
158 158 came_from = get_came_from(self.request)
159 159 session = self.request.session
@@ -198,7 +198,7 b' class LoginView(object):'
198 198 'hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate')
199 199 @view_config(
200 200 route_name='register', request_method='GET',
201 renderer='rhodecode:templates/register.html',)
201 renderer='rhodecode:templates/register.mako',)
202 202 def register(self, defaults=None, errors=None):
203 203 defaults = defaults or {}
204 204 errors = errors or {}
@@ -224,7 +224,7 b' class LoginView(object):'
224 224 'hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate')
225 225 @view_config(
226 226 route_name='register', request_method='POST',
227 renderer='rhodecode:templates/register.html')
227 renderer='rhodecode:templates/register.mako')
228 228 def register_post(self):
229 229 captcha = self._get_captcha_data()
230 230 auto_active = 'hg.register.auto_activate' in User.get_default_user()\
@@ -275,7 +275,7 b' class LoginView(object):'
275 275
276 276 @view_config(
277 277 route_name='reset_password', request_method=('GET', 'POST'),
278 renderer='rhodecode:templates/password_reset.html')
278 renderer='rhodecode:templates/password_reset.mako')
279 279 def password_reset(self):
280 280 captcha = self._get_captcha_data()
281 281
@@ -2802,7 +2802,7 b' class CacheKey(Base, BaseModel):'
2802 2802 """
2803 2803 get suffix that might have been used in _get_cache_key to
2804 2804 generate self.cache_key. Only used for informational purposes
2805 in repo_edit.html.
2805 in repo_edit.mako.
2806 2806 """
2807 2807 # prefix, repo_name, suffix
2808 2808 return self._cache_key_partition()[2]
@@ -241,7 +241,7 b' class RepoModel(BaseModel):'
241 241 super_user_actions=False):
242 242
243 243 from rhodecode.lib.utils import PartialRenderer
244 _render = PartialRenderer('data_table/_dt_elements.html')
244 _render = PartialRenderer('data_table/_dt_elements.mako')
245 245 c = _render.c
246 246
247 247 def quick_menu(repo_name):
@@ -652,7 +652,7 b' class RepoGroupModel(BaseModel):'
652 652 super_user_actions=False):
653 653
654 654 from rhodecode.lib.utils import PartialRenderer
655 _render = PartialRenderer('data_table/_dt_elements.html')
655 _render = PartialRenderer('data_table/_dt_elements.mako')
656 656 c = _render.c
657 657 h = _render.h
658 658
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('Admin journal')}
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%namespace name="base" file="/base/base.html"/>
2 <%namespace name="base" file="/base/base.mako"/>
3 3
4 4 %if c.users_log:
5 5 <table class="rctable admin_log">
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('Authentication Settings')}
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('Authentication Settings')}
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('Repositories defaults')}
@@ -33,7 +33,7 b''
33 33 </div>
34 34
35 35 <div class="main-content-full-width">
36 <%include file="/admin/defaults/defaults_${c.active}.html"/>
36 <%include file="/admin/defaults/defaults_${c.active}.mako"/>
37 37 </div>
38 38
39 39 </div>
1 NO CONTENT: file renamed from rhodecode/templates/admin/defaults/defaults_repositories.html to rhodecode/templates/admin/defaults/defaults_repositories.mako
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('Edit Gist')} &middot; ${c.gist.gist_access_id}
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 %if c.show_private:
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('New Gist')}
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="robots()">
5 5 %if c.gist.gist_type != 'public':
@@ -2,11 +2,11 b''
2 2 <%!
3 3 def inherit(context):
4 4 if context['c'].repo:
5 return "/admin/repos/repo_edit.html"
5 return "/admin/repos/repo_edit.mako"
6 6 elif context['c'].repo_group:
7 return "/admin/repo_groups/repo_group_edit.html"
7 return "/admin/repo_groups/repo_group_edit.mako"
8 8 else:
9 return "/admin/settings/settings.html"
9 return "/admin/settings/settings.mako"
10 10 %>
11 11 <%inherit file="${inherit(context)}" />
12 12
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="base.html"/>
2 <%inherit file="base.mako"/>
3 3
4 4 <%def name="breadcrumbs_links()">
5 5 %if c.repo:
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="base.html"/>
2 <%inherit file="base.mako"/>
3 3
4 4 <%def name="breadcrumbs_links()">
5 5 %if c.repo:
@@ -1,6 +1,6 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="base.html"/>
3 <%namespace name="widgets" file="/widgets.html"/>
2 <%inherit file="base.mako"/>
3 <%namespace name="widgets" file="/widgets.mako"/>
4 4
5 5 <%def name="breadcrumbs_links()">
6 6 %if c.repo:
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('My account')} ${c.rhodecode_user.username}
@@ -44,7 +44,7 b''
44 44 </div>
45 45
46 46 <div class="main-content-full-width">
47 <%include file="/admin/my_account/my_account_${c.active}.html"/>
47 <%include file="/admin/my_account/my_account_${c.active}.mako"/>
48 48 </div>
49 49 </div>
50 50 </div>
1 NO CONTENT: file renamed from rhodecode/templates/admin/my_account/my_account_auth_tokens.html to rhodecode/templates/admin/my_account/my_account_auth_tokens.mako
@@ -1,4 +1,4 b''
1 <%namespace name="base" file="/base/base.html"/>
1 <%namespace name="base" file="/base/base.mako"/>
2 2
3 3 <div class="panel panel-default">
4 4 <div class="panel-heading">
1 NO CONTENT: file renamed from rhodecode/templates/admin/my_account/my_account_notifications.html to rhodecode/templates/admin/my_account/my_account_notifications.mako
@@ -1,4 +1,4 b''
1 <%namespace name="widgets" file="/widgets.html"/>
1 <%namespace name="widgets" file="/widgets.mako"/>
2 2
3 3 <%widgets:panel title="${_('Change Your Account Password')}">
4 4
@@ -1,5 +1,5 b''
1 1 ## permissions overview
2 2 <div id="perms_container">
3 <%namespace name="p" file="/base/perms_summary.html"/>
3 <%namespace name="p" file="/base/perms_summary.mako"/>
4 4 ${p.perms_summary(c.perm_user.permissions, actions=False)}
5 5 </div>
@@ -1,4 +1,4 b''
1 <%namespace name="base" file="/base/base.html"/>
1 <%namespace name="base" file="/base/base.mako"/>
2 2 <div class="panel panel-default user-profile">
3 3 <div class="panel-heading">
4 4 <h3 class="panel-title">${_('My Profile')}</h3>
@@ -1,4 +1,4 b''
1 <%namespace name="base" file="/base/base.html"/>
1 <%namespace name="base" file="/base/base.mako"/>
2 2 <div class="panel panel-default user-profile">
3 3 <div class="panel-heading">
4 4 <h3 class="panel-title">${_('My Profile')}</h3>
@@ -1,4 +1,4 b''
1 <%namespace name="base" file="/base/base.html"/>
1 <%namespace name="base" file="/base/base.mako"/>
2 2
3 3 <div class="panel panel-default">
4 4 <div class="panel-body">
1 NO CONTENT: file renamed from rhodecode/templates/admin/my_account/my_account_repos.html to rhodecode/templates/admin/my_account/my_account_repos.mako
1 NO CONTENT: file renamed from rhodecode/templates/admin/my_account/my_account_watched.html to rhodecode/templates/admin/my_account/my_account_watched.mako
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('My Notifications')} ${c.rhodecode_user.username}
@@ -40,7 +40,7 b''
40 40 </div>
41 41 </div>
42 42 <div id='notification_data' class='main-content-full'>
43 <%include file='notifications_data.html'/>
43 <%include file='notifications_data.mako'/>
44 44 </div>
45 45 </div>
46 46 <script type="text/javascript">
@@ -1,4 +1,4 b''
1 <%namespace name="base" file="/base/base.html"/>
1 <%namespace name="base" file="/base/base.mako"/>
2 2 %if c.notifications:
3 3 <%
4 4 unread = lambda n:{False:'unread'}.get(n)
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('Show notification')} ${c.rhodecode_user.username}
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('Permissions Administration')}
@@ -48,7 +48,7 b''
48 48 </div>
49 49
50 50 <div class="main-content-full-width">
51 <%include file="/admin/permissions/permissions_${c.active}.html"/>
51 <%include file="/admin/permissions/permissions_${c.active}.mako"/>
52 52 </div>
53 53 </div>
54 54 </div>
1 NO CONTENT: file renamed from rhodecode/templates/admin/permissions/permissions_application.html to rhodecode/templates/admin/permissions/permissions_application.mako
@@ -3,7 +3,7 b''
3 3 <div class="form permissions-global">
4 4 <!-- fields -->
5 5 <div class="fields">
6 <%namespace name="dpb" file="/base/default_perms_box.html"/>
6 <%namespace name="dpb" file="/base/default_perms_box.mako"/>
7 7 ${dpb.default_perms_radios(global_permissions_template = True)}
8 8 </div>
9 9 </div>
1 NO CONTENT: file renamed from rhodecode/templates/admin/permissions/permissions_ips.html to rhodecode/templates/admin/permissions/permissions_ips.mako
1 NO CONTENT: file renamed from rhodecode/templates/admin/permissions/permissions_objects.html to rhodecode/templates/admin/permissions/permissions_objects.mako
@@ -1,5 +1,5 b''
1 1 <h2>${_('Default User Permissions Overview')}</h2>
2 2
3 3 ## permissions overview
4 <%namespace name="p" file="/base/perms_summary.html"/>
4 <%namespace name="p" file="/base/perms_summary.mako"/>
5 5 ${p.perms_summary(c.perm_user.permissions, show_all=True)}
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('Add repository group')}
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('%s repository group settings') % c.repo_group.name}
@@ -31,7 +31,7 b''
31 31 </%def>
32 32
33 33 <%def name="main_content()">
34 <%include file="/admin/repo_groups/repo_group_edit_${c.active}.html"/>
34 <%include file="/admin/repo_groups/repo_group_edit_${c.active}.mako"/>
35 35 </%def>
36 36
37 37 <%def name="main()">
@@ -1,4 +1,4 b''
1 <%namespace name="base" file="/base/base.html"/>
1 <%namespace name="base" file="/base/base.mako"/>
2 2
3 3 <%
4 4 elems = [
@@ -1,4 +1,4 b''
1 <%namespace name="base" file="/base/base.html"/>
1 <%namespace name="base" file="/base/base.mako"/>
2 2
3 3 <div class="panel panel-default">
4 4 <div class="panel-heading">
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%namespace name="base" file="/base/base.html"/>
2 <%namespace name="base" file="/base/base.mako"/>
3 3
4 4 <div class="panel panel-default">
5 5 <div class="panel-heading">
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('Repository groups administration')}
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('Add repository')}
@@ -32,6 +32,6 b''
32 32 <div class="title">
33 33 ${self.breadcrumbs()}
34 34 </div>
35 <%include file="repo_add_base.html"/>
35 <%include file="repo_add_base.mako"/>
36 36 </div>
37 37 </%def>
1 NO CONTENT: file renamed from rhodecode/templates/admin/repos/repo_add_base.html to rhodecode/templates/admin/repos/repo_add_base.mako
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('%s Creating repository') % c.repo_name}
@@ -2,7 +2,7 b''
2 2 ##
3 3 ## See also repo_settings.html
4 4 ##
5 <%inherit file="/base/base.html"/>
5 <%inherit file="/base/base.mako"/>
6 6
7 7 <%def name="title()">
8 8 ${_('%s repository settings') % c.repo_info.repo_name}
@@ -24,7 +24,7 b''
24 24 </%def>
25 25
26 26 <%def name="main_content()">
27 <%include file="/admin/repos/repo_edit_${c.active}.html"/>
27 <%include file="/admin/repos/repo_edit_${c.active}.mako"/>
28 28 </%def>
29 29
30 30
@@ -1,4 +1,4 b''
1 <%namespace name="base" file="/base/base.html"/>
1 <%namespace name="base" file="/base/base.mako"/>
2 2
3 3 <%
4 4 elems = [
1 NO CONTENT: file renamed from rhodecode/templates/admin/repos/repo_edit_caches.html to rhodecode/templates/admin/repos/repo_edit_caches.mako
1 NO CONTENT: file renamed from rhodecode/templates/admin/repos/repo_edit_fields.html to rhodecode/templates/admin/repos/repo_edit_fields.mako
1 NO CONTENT: file renamed from rhodecode/templates/admin/repos/repo_edit_fork.html to rhodecode/templates/admin/repos/repo_edit_fork.mako
@@ -1,4 +1,4 b''
1 <%namespace name="its" file="/base/issue_tracker_settings.html"/>
1 <%namespace name="its" file="/base/issue_tracker_settings.mako"/>
2 2
3 3 <div id="repo_issue_tracker" class="${'inherited' if c.settings_model.inherit_global_settings else ''}">
4 4 ${h.secure_form(url('repo_issuetracker_save', repo_name=c.repo_name), method='post', id="inherit-form")}
@@ -1,4 +1,4 b''
1 <%namespace name="base" file="/base/base.html"/>
1 <%namespace name="base" file="/base/base.mako"/>
2 2
3 3 <div class="panel panel-default">
4 4 <div class="panel-heading">
1 NO CONTENT: file renamed from rhodecode/templates/admin/repos/repo_edit_remote.html to rhodecode/templates/admin/repos/repo_edit_remote.mako
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%namespace name="base" file="/base/base.html"/>
2 <%namespace name="base" file="/base/base.mako"/>
3 3
4 4 <div class="panel panel-default">
5 5 <div class="panel-heading">
1 NO CONTENT: file renamed from rhodecode/templates/admin/repos/repo_edit_statistics.html to rhodecode/templates/admin/repos/repo_edit_statistics.mako
@@ -1,4 +1,4 b''
1 <%namespace name="vcss" file="/base/vcs_settings.html"/>
1 <%namespace name="vcss" file="/base/vcs_settings.mako"/>
2 2
3 3 <div id="repo_vcs_settings" class="${'inherited' if c.inherit_global_settings else ''}">
4 4 ${h.secure_form(url('repo_vcs_settings', repo_name=c.repo_info.repo_name), method='post')}
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('Repositories administration')}
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('Settings administration')}
@@ -27,7 +27,7 b''
27 27 </%def>
28 28
29 29 <%def name="main_content()">
30 <%include file="/admin/settings/settings_${c.active}.html"/>
30 <%include file="/admin/settings/settings_${c.active}.mako"/>
31 31 </%def>
32 32
33 33 <%def name="main()">
1 NO CONTENT: file renamed from rhodecode/templates/admin/settings/settings_email.html to rhodecode/templates/admin/settings/settings_email.mako
1 NO CONTENT: file renamed from rhodecode/templates/admin/settings/settings_global.html to rhodecode/templates/admin/settings/settings_global.mako
1 NO CONTENT: file renamed from rhodecode/templates/admin/settings/settings_hooks.html to rhodecode/templates/admin/settings/settings_hooks.mako
@@ -1,4 +1,4 b''
1 <%namespace name="its" file="/base/issue_tracker_settings.html"/>
1 <%namespace name="its" file="/base/issue_tracker_settings.mako"/>
2 2
3 3 <div class="panel panel-default">
4 4 <div class="panel-heading">
1 NO CONTENT: file renamed from rhodecode/templates/admin/settings/settings_labs.html to rhodecode/templates/admin/settings/settings_labs.mako
1 NO CONTENT: file renamed from rhodecode/templates/admin/settings/settings_mapping.html to rhodecode/templates/admin/settings/settings_mapping.mako
1 NO CONTENT: file renamed from rhodecode/templates/admin/settings/settings_open_source.html to rhodecode/templates/admin/settings/settings_open_source.mako
1 NO CONTENT: file renamed from rhodecode/templates/admin/settings/settings_search.html to rhodecode/templates/admin/settings/settings_search.mako
1 NO CONTENT: file renamed from rhodecode/templates/admin/settings/settings_supervisor.html to rhodecode/templates/admin/settings/settings_supervisor.mako
1 NO CONTENT: file renamed from rhodecode/templates/admin/settings/settings_supervisor_tail.html to rhodecode/templates/admin/settings/settings_supervisor_tail.mako
1 NO CONTENT: file renamed from rhodecode/templates/admin/settings/settings_system.html to rhodecode/templates/admin/settings/settings_system.mako
1 NO CONTENT: file renamed from rhodecode/templates/admin/settings/settings_system_snapshot.html to rhodecode/templates/admin/settings/settings_system_snapshot.mako
1 NO CONTENT: file renamed from rhodecode/templates/admin/settings/settings_system_update.html to rhodecode/templates/admin/settings/settings_system_update.mako
@@ -1,4 +1,4 b''
1 <%namespace name="vcss" file="/base/vcs_settings.html"/>
1 <%namespace name="vcss" file="/base/vcs_settings.mako"/>
2 2
3 3 ${h.secure_form(url('admin_settings_vcs'), method='post')}
4 4 <div>
1 NO CONTENT: file renamed from rhodecode/templates/admin/settings/settings_visual.html to rhodecode/templates/admin/settings/settings_visual.mako
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('Add user group')}
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('%s user group settings') % c.user_group.users_group_name}
@@ -39,7 +39,7 b''
39 39 </div>
40 40
41 41 <div class="main-content-full-width">
42 <%include file="/admin/user_groups/user_group_edit_${c.active}.html"/>
42 <%include file="/admin/user_groups/user_group_edit_${c.active}.mako"/>
43 43 </div>
44 44 </div>
45 45 </div>
@@ -1,4 +1,4 b''
1 <%namespace name="base" file="/base/base.html"/>
1 <%namespace name="base" file="/base/base.mako"/>
2 2
3 3 <%
4 4 elems = [
@@ -1,3 +1,3 b''
1 <%namespace name="dpb" file="/base/default_perms_box.html"/>
1 <%namespace name="dpb" file="/base/default_perms_box.mako"/>
2 2 ${dpb.default_perms_box(url('edit_user_group_global_perms', user_group_id=c.user_group.users_group_id))}
3 3
@@ -1,4 +1,4 b''
1 <%namespace name="base" file="/base/base.html"/>
1 <%namespace name="base" file="/base/base.mako"/>
2 2
3 3 <div class="panel panel-default">
4 4 <div class="panel-heading">
@@ -1,3 +1,3 b''
1 1 ## permissions overview
2 <%namespace name="p" file="/base/perms_summary.html"/>
2 <%namespace name="p" file="/base/perms_summary.mako"/>
3 3 ${p.perms_summary(c.permissions)}
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%namespace name="base" file="/base/base.html"/>
2 <%namespace name="base" file="/base/base.mako"/>
3 3
4 4 <div class="panel panel-default">
5 5 <div class="panel-heading">
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('User groups administration')}
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('Add user')}
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('%s user settings') % c.user.username}
@@ -41,7 +41,7 b''
41 41 </div>
42 42
43 43 <div class="main-content-full-width">
44 <%include file="/admin/users/user_edit_${c.active}.html"/>
44 <%include file="/admin/users/user_edit_${c.active}.mako"/>
45 45 </div>
46 46 </div>
47 47 </div>
@@ -1,4 +1,4 b''
1 <%namespace name="base" file="/base/base.html"/>
1 <%namespace name="base" file="/base/base.mako"/>
2 2
3 3 <%
4 4 elems = [
1 NO CONTENT: file renamed from rhodecode/templates/admin/users/user_edit_auth_tokens.html to rhodecode/templates/admin/users/user_edit_auth_tokens.mako
@@ -1,4 +1,4 b''
1 <%namespace name="base" file="/base/base.html"/>
1 <%namespace name="base" file="/base/base.mako"/>
2 2
3 3 <div class="panel panel-default">
4 4 <div class="panel-heading">
@@ -1,2 +1,2 b''
1 <%namespace name="dpb" file="/base/default_perms_box.html"/>
1 <%namespace name="dpb" file="/base/default_perms_box.mako"/>
2 2 ${dpb.default_perms_box(url('edit_user_global_perms', user_id=c.user.user_id))}
1 NO CONTENT: file renamed from rhodecode/templates/admin/users/user_edit_ips.html to rhodecode/templates/admin/users/user_edit_ips.mako
@@ -1,3 +1,3 b''
1 1 ## permissions overview
2 <%namespace name="p" file="/base/perms_summary.html"/>
2 <%namespace name="p" file="/base/perms_summary.mako"/>
3 3 ${p.perms_summary(c.perm_user.permissions, show_all=True)}
@@ -1,4 +1,4 b''
1 <%namespace name="base" file="/base/base.html"/>
1 <%namespace name="base" file="/base/base.mako"/>
2 2
3 3 <div class="panel panel-default user-profile">
4 4 <div class="panel-heading">
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('Users administration')}
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="root.html"/>
2 <%inherit file="root.mako"/>
3 3
4 4 <div class="outerwrapper">
5 5 <!-- HEADER -->
@@ -1,6 +1,6 b''
1 1 ## snippet for displaying default permission box
2 2 ## usage:
3 ## <%namespace name="dpb" file="/base/default_perms_box.html"/>
3 ## <%namespace name="dpb" file="/base/default_perms_box.mako"/>
4 4 ## ${dpb.default_perms_box(<url_to_form>)}
5 5 ## ${dpb.default_perms_radios()}
6 6
@@ -1,6 +1,6 b''
1 1 ## snippet for displaying issue tracker settings
2 2 ## usage:
3 ## <%namespace name="its" file="/base/issue_tracker_settings.html"/>
3 ## <%namespace name="its" file="/base/issue_tracker_settings.mako"/>
4 4 ## ${its.issue_tracker_settings_table(patterns, form_url, delete_url)}
5 5 ## ${its.issue_tracker_settings_test(test_url)}
6 6
@@ -1,6 +1,6 b''
1 1 ## snippet for displaying permissions overview for users
2 2 ## usage:
3 ## <%namespace name="p" file="/base/perms_summary.html"/>
3 ## <%namespace name="p" file="/base/perms_summary.mako"/>
4 4 ## ${p.perms_summary(c.perm_user.permissions)}
5 5
6 6 <%def name="perms_summary(permissions, show_all=False, actions=True)">
1 NO CONTENT: file renamed from rhodecode/templates/base/plugins_base.html to rhodecode/templates/base/plugins_base.mako
@@ -116,7 +116,7 b" c.template_context['visual']['default_re"
116 116 };
117 117
118 118 </script>
119 <%include file="/base/plugins_base.html"/>
119 <%include file="/base/plugins_base.mako"/>
120 120 <!--[if lt IE 9]>
121 121 <script language="javascript" type="text/javascript" src="${h.asset('js/excanvas.min.js')}"></script>
122 122 <![endif]-->
@@ -1,6 +1,6 b''
1 1 ## snippet for displaying vcs settings
2 2 ## usage:
3 ## <%namespace name="vcss" file="/base/vcssettings.html"/>
3 ## <%namespace name="vcss" file="/base/vcssettings.mako"/>
4 4 ## ${vcss.vcs_settings_fields()}
5 5
6 6 <%def name="vcs_settings_fields(suffix='', svn_branch_patterns=None, svn_tag_patterns=None, repo_type=None, display_globals=False, allow_repo_location_change=False, **kwargs)">
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('%s Bookmarks') % c.repo_name}
@@ -1,6 +1,6 b''
1 1 ## DATA TABLE RE USABLE ELEMENTS FOR BOOKMARKS
2 2 ## usage:
3 ## <%namespace name="bookmarks" file="/bookmarks/bookmarks_data.html"/>
3 ## <%namespace name="bookmarks" file="/bookmarks/bookmarks_data.mako"/>
4 4 ## bookmarks.<func_name>(arg,arg2)
5 5
6 6 <%def name="compare(commit_id)">
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('%s Branches') % c.repo_name}
@@ -1,6 +1,6 b''
1 1 ## DATA TABLE RE USABLE ELEMENTS FOR BRANCHES
2 2 ## usage:
3 ## <%namespace name="branch" file="/branches/branches_data.html"/>
3 ## <%namespace name="branch" file="/branches/branches_data.mako"/>
4 4 ## branch.<func_name>(arg,arg2)
5 5
6 6 <%def name="compare(commit_id)">
@@ -1,6 +1,6 b''
1 1 ## -*- coding: utf-8 -*-
2 2
3 <%inherit file="/base/base.html"/>
3 <%inherit file="/base/base.mako"/>
4 4
5 5 <%def name="title()">
6 6 ${_('%s Changelog') % c.repo_name}
1 NO CONTENT: file renamed from rhodecode/templates/changelog/changelog_details.html to rhodecode/templates/changelog/changelog_details.mako
@@ -1,4 +1,4 b''
1 <%namespace name="base" file="/base/base.html"/>
1 <%namespace name="base" file="/base/base.mako"/>
2 2 <div class="table">
3 3
4 4 <table class="table rctable file_history">
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%namespace name="base" file="/base/base.html"/>
2 <%namespace name="base" file="/base/base.mako"/>
3 3 %if c.repo_commits:
4 4 <table class="rctable repo_summary table_disp">
5 5 <tr>
@@ -1,7 +1,7 b''
1 1 ## -*- coding: utf-8 -*-
2 2
3 <%inherit file="/base/base.html"/>
4 <%namespace name="diff_block" file="/changeset/diff_block.html"/>
3 <%inherit file="/base/base.mako"/>
4 <%namespace name="diff_block" file="/changeset/diff_block.mako"/>
5 5
6 6 <%def name="title()">
7 7 ${_('%s Commit') % c.repo_name} - ${h.show_id(c.commit)}
@@ -170,14 +170,14 b''
170 170 </div><!-- end sidebar -->
171 171 </div> <!-- end summary -->
172 172 <div class="cs_files">
173 <%namespace name="cbdiffs" file="/codeblocks/diffs.html"/>
173 <%namespace name="cbdiffs" file="/codeblocks/diffs.mako"/>
174 174 ${cbdiffs.render_diffset_menu()}
175 175 ${cbdiffs.render_diffset(
176 176 c.changes[c.commit.raw_id], commit=c.commit, use_comments=True)}
177 177 </div>
178 178
179 179 ## template for inline comment form
180 <%namespace name="comment" file="/changeset/changeset_file_comment.html"/>
180 <%namespace name="comment" file="/changeset/changeset_file_comment.mako"/>
181 181
182 182 ## render comments
183 183 ${comment.generate_comments()}
@@ -1,4 +1,4 b''
1 1 ## this is a dummy html file for partial rendering on server and sending
2 2 ## generated output via ajax after comment submit
3 <%namespace name="comment" file="/changeset/changeset_file_comment.html"/>
3 <%namespace name="comment" file="/changeset/changeset_file_comment.mako"/>
4 4 ${comment.comment_block(c.co, inline=True)}
@@ -1,9 +1,9 b''
1 1 ## -*- coding: utf-8 -*-
2 2 ## usage:
3 ## <%namespace name="comment" file="/changeset/changeset_file_comment.html"/>
3 ## <%namespace name="comment" file="/changeset/changeset_file_comment.mako"/>
4 4 ## ${comment.comment_block(comment)}
5 5 ##
6 <%namespace name="base" file="/base/base.html"/>
6 <%namespace name="base" file="/base/base.mako"/>
7 7
8 8 <%def name="comment_block(comment, inline=False)">
9 9 <% outdated_at_ver = comment.outdated_at_version(getattr(c, 'at_version', None)) %>
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('%s Commits') % c.repo_name} -
@@ -107,11 +107,11 b''
107 107 </div>
108 108 </div>
109 109 ## Commit range generated below
110 <%include file="../compare/compare_commits.html"/>
110 <%include file="../compare/compare_commits.mako"/>
111 111 <div class="cs_files">
112 <%namespace name="cbdiffs" file="/codeblocks/diffs.html"/>
113 <%namespace name="comment" file="/changeset/changeset_file_comment.html"/>
114 <%namespace name="diff_block" file="/changeset/diff_block.html"/>
112 <%namespace name="cbdiffs" file="/codeblocks/diffs.mako"/>
113 <%namespace name="comment" file="/changeset/changeset_file_comment.mako"/>
114 <%namespace name="diff_block" file="/changeset/diff_block.mako"/>
115 115 ${cbdiffs.render_diffset_menu()}
116 116 %for commit in c.commit_ranges:
117 117 ${cbdiffs.render_diffset(
@@ -1,6 +1,6 b''
1 1 ## -*- coding: utf-8 -*-
2 2 ##usage:
3 ## <%namespace name="diff_block" file="/changeset/diff_block.html"/>
3 ## <%namespace name="diff_block" file="/changeset/diff_block.mako"/>
4 4 ## ${diff_block.diff_block_changeset_table(change)}
5 5 ##
6 6 <%def name="changeset_message()">
1 NO CONTENT: file renamed from rhodecode/templates/changeset/patch_changeset.html to rhodecode/templates/changeset/patch_changeset.mako
1 NO CONTENT: file renamed from rhodecode/templates/channelstream/plugin_init.html to rhodecode/templates/channelstream/plugin_init.mako
@@ -508,7 +508,7 b' from rhodecode.lib.diffs import NEW_FILE'
508 508 </%def>
509 509
510 510
511 <%namespace name="commentblock" file="/changeset/changeset_file_comment.html"/>
511 <%namespace name="commentblock" file="/changeset/changeset_file_comment.mako"/>
512 512 <%def name="inline_comments_container(comments)">
513 513 <div class="inline-comments">
514 514 %for comment in comments:
1 NO CONTENT: file renamed from rhodecode/templates/codeblocks/source.html to rhodecode/templates/codeblocks/source.mako
@@ -1,5 +1,5 b''
1 1 ## Changesets table !
2 <%namespace name="base" file="/base/base.html"/>
2 <%namespace name="base" file="/base/base.mako"/>
3 3
4 4 %if c.ancestor:
5 5 <div class="ancestor">${_('Common Ancestor Commit')}:
@@ -1,6 +1,6 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
3 <%namespace name="cbdiffs" file="/codeblocks/diffs.html"/>
2 <%inherit file="/base/base.mako"/>
3 <%namespace name="cbdiffs" file="/codeblocks/diffs.mako"/>
4 4
5 5 <%def name="title()">
6 6 %if c.compare_home:
@@ -159,7 +159,7 b''
159 159 ${_('Commit status')}:
160 160 </div>
161 161 <div class="right-content">
162 <%namespace name="comment" file="/changeset/changeset_file_comment.html"/>
162 <%namespace name="comment" file="/changeset/changeset_file_comment.mako"/>
163 163 ## main comment form and it status
164 164 <%
165 165 def revs(_revs):
@@ -365,7 +365,7 b''
365 365 </div>
366 366 <div style="padding:0 10px 10px 0px" class="pull-left"></div>
367 367 ## commit compare generated below
368 <%include file="compare_commits.html"/>
368 <%include file="compare_commits.mako"/>
369 369 ${cbdiffs.render_diffset_menu()}
370 370 ${cbdiffs.render_diffset(c.diffset)}
371 371 </div>
@@ -1,7 +1,7 b''
1 1 ## DATA TABLE RE USABLE ELEMENTS
2 2 ## usage:
3 ## <%namespace name="dt" file="/data_table/_dt_elements.html"/>
4 <%namespace name="base" file="/base/base.html"/>
3 ## <%namespace name="dt" file="/data_table/_dt_elements.mako"/>
4 <%namespace name="base" file="/base/base.mako"/>
5 5
6 6 ## REPOSITORY RENDERERS
7 7 <%def name="quick_menu(repo_name)">
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%namespace name="base" file="/base/base.html"/>
2 <%namespace name="base" file="/base/base.mako"/>
3 3 <%inherit file="/debug_style/index.html"/>
4 4
5 5 <%def name="breadcrumbs_links()">
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('Debug Style')}
@@ -6,4 +6,4 b''
6 6 %>
7 7
8 8 ## Include the original file here for easy operation
9 <%include file="/login.html" />
9 <%include file="/login.mako" />
1 NO CONTENT: file renamed from rhodecode/templates/errors/error_document.html to rhodecode/templates/errors/error_document.mako
1 NO CONTENT: file renamed from rhodecode/templates/files/base.html to rhodecode/templates/files/base.mako
@@ -1,4 +1,4 b''
1 <%namespace name="base" file="/base/base.html"/>
1 <%namespace name="base" file="/base/base.mako"/>
2 2
3 3 <div class="summary-detail-header">
4 4 <h4 class="item">
@@ -1,4 +1,4 b''
1 <%namespace name="base" file="/base/base.html"/>
1 <%namespace name="base" file="/base/base.mako"/>
2 2
3 3 <div class="summary-detail-header">
4 4 <h4 class="item">
@@ -1,4 +1,4 b''
1 <%namespace name="file_base" file="/files/base.html"/>
1 <%namespace name="file_base" file="/files/base.mako"/>
2 2
3 3 <div class="fieldset collapsable-content no-hide" data-toggle="summary-details">
4 4 <div class="left-label">
@@ -1,4 +1,4 b''
1 <%inherit file="/base/base.html"/>
1 <%inherit file="/base/base.mako"/>
2 2
3 3 <%def name="title(*args)">
4 4 ${_('%s Files') % c.repo_name}
@@ -33,7 +33,7 b''
33 33
34 34 <div id="pjax-container" class="summary">
35 35 <div id="files_data">
36 <%include file='files_pjax.html'/>
36 <%include file='files_pjax.mako'/>
37 37 </div>
38 38 </div>
39 39 <script>
@@ -1,4 +1,4 b''
1 <%inherit file="/base/base.html"/>
1 <%inherit file="/base/base.mako"/>
2 2
3 3 <%def name="title()">
4 4 ${_('%s Files Add') % c.repo_name}
1 NO CONTENT: file renamed from rhodecode/templates/files/files_browser.html to rhodecode/templates/files/files_browser.mako
1 NO CONTENT: file renamed from rhodecode/templates/files/files_browser_tree.html to rhodecode/templates/files/files_browser_tree.mako
@@ -1,4 +1,4 b''
1 <%inherit file="/base/base.html"/>
1 <%inherit file="/base/base.mako"/>
2 2
3 3 <%def name="title()">
4 4 ${_('%s Files Delete') % c.repo_name}
@@ -1,4 +1,4 b''
1 <%namespace name="file_base" file="/files/base.html"/>
1 <%namespace name="file_base" file="/files/base.mako"/>
2 2
3 3 <div class="fieldset collapsable-content no-hide" data-toggle="summary-details">
4 4 <div class="left-label">
@@ -1,4 +1,4 b''
1 <%inherit file="/base/base.html"/>
1 <%inherit file="/base/base.mako"/>
2 2
3 3 <%def name="title()">
4 4 ${_('%s File Edit') % c.repo_name}
@@ -28,9 +28,9 b''
28 28 % if c.file.is_submodule():
29 29 <span class="submodule-dir">Submodule ${h.escape(c.file.name)}</span>
30 30 % elif c.file.is_dir():
31 <%include file='file_tree_detail.html'/>
31 <%include file='file_tree_detail.mako'/>
32 32 % else:
33 <%include file='files_detail.html'/>
33 <%include file='files_detail.mako'/>
34 34 % endif
35 35
36 36 </div> <!--end summary-detail-->
@@ -40,16 +40,16 b''
40 40 </script>
41 41 % if c.file.is_dir():
42 42 <div id="commit-stats" class="sidebar-right">
43 <%include file='file_tree_author_box.html'/>
43 <%include file='file_tree_author_box.mako'/>
44 44 </div>
45 45
46 <%include file='files_browser.html'/>
46 <%include file='files_browser.mako'/>
47 47 % else:
48 48 <div id="file_authors" class="sidebar-right">
49 <%include file='file_authors_box.html'/>
49 <%include file='file_authors_box.mako'/>
50 50 </div>
51 51
52 <%include file='files_source.html'/>
52 <%include file='files_source.mako'/>
53 53 % endif
54 54
55 55 </div> No newline at end of file
@@ -1,4 +1,4 b''
1 <%namespace name="sourceblock" file="/codeblocks/source.html"/>
1 <%namespace name="sourceblock" file="/codeblocks/source.mako"/>
2 2
3 3 <div id="codeblock" class="codeblock">
4 4 <div class="codeblock-header">
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('%s Followers') % c.repo_name}
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%namespace name="base" file="/base/base.html"/>
2 <%namespace name="base" file="/base/base.mako"/>
3 3 <table class="rctable followers_data">
4 4 <tr>
5 5 <th>${_('Follower Name')}</th>
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('Fork repository %s') % c.repo_name}
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('%s Forks') % c.repo_name}
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%namespace name="base" file="/base/base.html"/>
2 <%namespace name="base" file="/base/base.mako"/>
3 3
4 4 % if c.forks_pager:
5 5 <table class="rctable fork_summary">
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="index_base.html"/>
2 <%inherit file="index_base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('Dashboard')}
@@ -1,4 +1,4 b''
1 <%inherit file="/base/base.html"/>
1 <%inherit file="/base/base.mako"/>
2 2
3 3 <%def name="main()">
4 4 <div class="box">
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="index_base.html"/>
2 <%inherit file="index_base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('%s Repository group dashboard') % c.repo_group.group_name}
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3 <%def name="title()">
4 4 ${_('Journal')}
5 5 %if c.rhodecode_name:
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%namespace name="base" file="/base/base.html"/>
2 <%namespace name="base" file="/base/base.mako"/>
3 3
4 4 %if c.journal_day_aggreagate:
5 5 %for day,items in c.journal_day_aggreagate:
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3 <%def name="title()">
4 4 ${_('Public Journal')}
5 5 %if c.rhodecode_name:
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="base/root.html"/>
2 <%inherit file="base/root.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('Sign In')}
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="base/root.html"/>
2 <%inherit file="base/root.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('Reset Password')}
@@ -1,4 +1,4 b''
1 <%inherit file="/base/base.html"/>
1 <%inherit file="/base/base.mako"/>
2 2
3 3 <%def name="title()">
4 4 ${c.repo_name} ${_('New pull request')}
@@ -1,4 +1,4 b''
1 <%inherit file="/base/base.html"/>
1 <%inherit file="/base/base.mako"/>
2 2
3 3 <%def name="title()">
4 4 ${_('%s Pull Request #%s') % (c.repo_name, c.pull_request.pull_request_id)}
@@ -431,9 +431,9 b' Changed files:'
431 431
432 432 </div>
433 433 % if not c.missing_commits:
434 <%include file="/compare/compare_commits.html" />
434 <%include file="/compare/compare_commits.mako" />
435 435 <div class="cs_files">
436 <%namespace name="cbdiffs" file="/codeblocks/diffs.html"/>
436 <%namespace name="cbdiffs" file="/codeblocks/diffs.mako"/>
437 437 ${cbdiffs.render_diffset_menu()}
438 438 ${cbdiffs.render_diffset(
439 439 c.diffset, use_comments=True,
@@ -446,7 +446,7 b' Changed files:'
446 446 </div>
447 447
448 448 ## template for inline comment form
449 <%namespace name="comment" file="/changeset/changeset_file_comment.html"/>
449 <%namespace name="comment" file="/changeset/changeset_file_comment.mako"/>
450 450
451 451 ## render general comments
452 452 ${comment.generate_comments(include_pull_request=True, is_pull_request=True)}
@@ -1,4 +1,4 b''
1 <%inherit file="/base/base.html"/>
1 <%inherit file="/base/base.mako"/>
2 2
3 3 <%def name="title()">
4 4 ${_('%s Pull Requests') % c.repo_name}
@@ -1,5 +1,5 b''
1 ## -*- coding: utf-8 -*-
2 <%inherit file="base/root.html"/>
1 =## -*- coding: utf-8 -*-
2 <%inherit file="base/root.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('Create an Account')}
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 %if c.repo_name:
@@ -78,13 +78,13 b''
78 78 ${h.end_form()}
79 79 <div class="search">
80 80 % if c.search_type == 'content':
81 <%include file='search_content.html'/>
81 <%include file='search_content.mako'/>
82 82 % elif c.search_type == 'path':
83 <%include file='search_path.html'/>
83 <%include file='search_path.mako'/>
84 84 % elif c.search_type == 'commit':
85 <%include file='search_commit.html'/>
85 <%include file='search_commit.mako'/>
86 86 % elif c.search_type == 'repository':
87 <%include file='search_repository.html'/>
87 <%include file='search_repository.mako'/>
88 88 % endif
89 89 </div>
90 90 </div>
@@ -1,4 +1,4 b''
1 <%namespace name="base" file="/base/base.html"/>
1 <%namespace name="base" file="/base/base.mako"/>
2 2
3 3 <table class="rctable search-results">
4 4 <tr>
1 NO CONTENT: file renamed from rhodecode/templates/search/search_content.html to rhodecode/templates/search/search_content.mako
1 NO CONTENT: file renamed from rhodecode/templates/search/search_path.html to rhodecode/templates/search/search_path.mako
1 NO CONTENT: file renamed from rhodecode/templates/search/search_repository.html to rhodecode/templates/search/search_repository.mako
@@ -1,4 +1,4 b''
1 <%inherit file="/base/base.html"/>
1 <%inherit file="/base/base.mako"/>
2 2
3 3 <%def name="title()">
4 4 ## represents page title
1 NO CONTENT: file renamed from rhodecode/templates/summary/components.html to rhodecode/templates/summary/components.mako
@@ -1,6 +1,6 b''
1 <%inherit file="/summary/base.html"/>
1 <%inherit file="/summary/base.mako"/>
2 2
3 <%namespace name="components" file="/summary/components.html"/>
3 <%namespace name="components" file="/summary/components.mako"/>
4 4
5 5 <%def name="main()">
6 6 <div class="title">
@@ -1,6 +1,6 b''
1 <%inherit file="/summary/base.html"/>
1 <%inherit file="/summary/base.mako"/>
2 2
3 <%namespace name="components" file="/summary/components.html"/>
3 <%namespace name="components" file="/summary/components.mako"/>
4 4
5 5
6 6 <%def name="menu_bar_subnav()">
@@ -37,7 +37,7 b''
37 37 %endif
38 38 <div class="table">
39 39 <div id="shortlog_data">
40 <%include file='../changelog/changelog_summary_data.html'/>
40 <%include file='../changelog/changelog_summary_data.mako'/>
41 41 </div>
42 42 </div>
43 43 </div>
@@ -1,5 +1,5 b''
1 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('%s Tags') % c.repo_name}
@@ -1,6 +1,6 b''
1 1 ## DATA TABLE RE USABLE ELEMENTS FOR TAGS
2 2 ## usage:
3 ## <%namespace name="tags" file="/tags/tags_data.html"/>
3 ## <%namespace name="tags" file="/tags/tags_data.mako"/>
4 4 ## tags.<func_name>(arg,arg2)
5 5
6 6 <%def name="compare(commit_id)">
@@ -1,4 +1,4 b''
1 <%inherit file="/base/base.html"/>
1 <%inherit file="/base/base.mako"/>
2 2
3 3 <%def name="title()">
4 4 ${c.user.username}
@@ -38,7 +38,7 b''
38 38 </div>
39 39
40 40 <div class="main-content-full-width">
41 <%include file="/users/${c.active}.html"/>
41 <%include file="/users/${c.active}.mako"/>
42 42 </div>
43 43 </div>
44 44 </div>
@@ -1,4 +1,4 b''
1 <%namespace name="base" file="/base/base.html"/>
1 <%namespace name="base" file="/base/base.mako"/>
2 2
3 3 <div class="panel panel-default user-profile">
4 4 <div class="panel-heading">
1 NO CONTENT: file renamed from rhodecode/templates/widgets.html to rhodecode/templates/widgets.mako
General Comments 0
You need to be logged in to leave comments. Login now