Show More
@@ -29,8 +29,6 b' recursive-include rhodecode *.mako' | |||||
29 | # 502 page |
|
29 | # 502 page | |
30 | include rhodecode/public/502.html |
|
30 | include rhodecode/public/502.html | |
31 |
|
31 | |||
32 | # 502 page |
|
|||
33 | include rhodecode/public/502.html |
|
|||
34 |
|
32 | |||
35 | # images, css |
|
33 | # images, css | |
36 | include rhodecode/public/css/*.css |
|
34 | include rhodecode/public/css/*.css |
@@ -48,7 +48,7 b' class AdminSettingsView(object):' | |||||
48 | @HasPermissionAllDecorator('hg.admin') |
|
48 | @HasPermissionAllDecorator('hg.admin') | |
49 | @view_config( |
|
49 | @view_config( | |
50 | route_name='admin_settings_open_source', request_method='GET', |
|
50 | route_name='admin_settings_open_source', request_method='GET', | |
51 |
renderer='rhodecode:templates/admin/settings/settings. |
|
51 | renderer='rhodecode:templates/admin/settings/settings.mako') | |
52 | def open_source_licenses(self): |
|
52 | def open_source_licenses(self): | |
53 | c.active = 'open_source' |
|
53 | c.active = 'open_source' | |
54 | c.navlist = navigation_list(self.request) |
|
54 | c.navlist = navigation_list(self.request) |
@@ -197,14 +197,14 b' class RhodeCodeAuthPlugin(RhodeCodeExter' | |||||
197 | config.add_view( |
|
197 | config.add_view( | |
198 | 'rhodecode.authentication.views.AuthnPluginViewBase', |
|
198 | 'rhodecode.authentication.views.AuthnPluginViewBase', | |
199 | attr='settings_get', |
|
199 | attr='settings_get', | |
200 |
renderer='rhodecode:templates/admin/auth/plugin_settings. |
|
200 | renderer='rhodecode:templates/admin/auth/plugin_settings.mako', | |
201 | request_method='GET', |
|
201 | request_method='GET', | |
202 | route_name='auth_home', |
|
202 | route_name='auth_home', | |
203 | context=CrowdAuthnResource) |
|
203 | context=CrowdAuthnResource) | |
204 | config.add_view( |
|
204 | config.add_view( | |
205 | 'rhodecode.authentication.views.AuthnPluginViewBase', |
|
205 | 'rhodecode.authentication.views.AuthnPluginViewBase', | |
206 | attr='settings_post', |
|
206 | attr='settings_post', | |
207 |
renderer='rhodecode:templates/admin/auth/plugin_settings. |
|
207 | renderer='rhodecode:templates/admin/auth/plugin_settings.mako', | |
208 | request_method='POST', |
|
208 | request_method='POST', | |
209 | route_name='auth_home', |
|
209 | route_name='auth_home', | |
210 | context=CrowdAuthnResource) |
|
210 | context=CrowdAuthnResource) |
@@ -83,14 +83,14 b' class RhodeCodeAuthPlugin(RhodeCodeExter' | |||||
83 | config.add_view( |
|
83 | config.add_view( | |
84 | 'rhodecode.authentication.views.AuthnPluginViewBase', |
|
84 | 'rhodecode.authentication.views.AuthnPluginViewBase', | |
85 | attr='settings_get', |
|
85 | attr='settings_get', | |
86 |
renderer='rhodecode:templates/admin/auth/plugin_settings. |
|
86 | renderer='rhodecode:templates/admin/auth/plugin_settings.mako', | |
87 | request_method='GET', |
|
87 | request_method='GET', | |
88 | route_name='auth_home', |
|
88 | route_name='auth_home', | |
89 | context=HeadersAuthnResource) |
|
89 | context=HeadersAuthnResource) | |
90 | config.add_view( |
|
90 | config.add_view( | |
91 | 'rhodecode.authentication.views.AuthnPluginViewBase', |
|
91 | 'rhodecode.authentication.views.AuthnPluginViewBase', | |
92 | attr='settings_post', |
|
92 | attr='settings_post', | |
93 |
renderer='rhodecode:templates/admin/auth/plugin_settings. |
|
93 | renderer='rhodecode:templates/admin/auth/plugin_settings.mako', | |
94 | request_method='POST', |
|
94 | request_method='POST', | |
95 | route_name='auth_home', |
|
95 | route_name='auth_home', | |
96 | context=HeadersAuthnResource) |
|
96 | context=HeadersAuthnResource) |
@@ -74,14 +74,14 b' class RhodeCodeAuthPlugin(RhodeCodeExter' | |||||
74 | config.add_view( |
|
74 | config.add_view( | |
75 | 'rhodecode.authentication.views.AuthnPluginViewBase', |
|
75 | 'rhodecode.authentication.views.AuthnPluginViewBase', | |
76 | attr='settings_get', |
|
76 | attr='settings_get', | |
77 |
renderer='rhodecode:templates/admin/auth/plugin_settings. |
|
77 | renderer='rhodecode:templates/admin/auth/plugin_settings.mako', | |
78 | request_method='GET', |
|
78 | request_method='GET', | |
79 | route_name='auth_home', |
|
79 | route_name='auth_home', | |
80 | context=JasigCasAuthnResource) |
|
80 | context=JasigCasAuthnResource) | |
81 | config.add_view( |
|
81 | config.add_view( | |
82 | 'rhodecode.authentication.views.AuthnPluginViewBase', |
|
82 | 'rhodecode.authentication.views.AuthnPluginViewBase', | |
83 | attr='settings_post', |
|
83 | attr='settings_post', | |
84 |
renderer='rhodecode:templates/admin/auth/plugin_settings. |
|
84 | renderer='rhodecode:templates/admin/auth/plugin_settings.mako', | |
85 | request_method='POST', |
|
85 | request_method='POST', | |
86 | route_name='auth_home', |
|
86 | route_name='auth_home', | |
87 | context=JasigCasAuthnResource) |
|
87 | context=JasigCasAuthnResource) |
@@ -332,14 +332,14 b' class RhodeCodeAuthPlugin(RhodeCodeExter' | |||||
332 | config.add_view( |
|
332 | config.add_view( | |
333 | 'rhodecode.authentication.views.AuthnPluginViewBase', |
|
333 | 'rhodecode.authentication.views.AuthnPluginViewBase', | |
334 | attr='settings_get', |
|
334 | attr='settings_get', | |
335 |
renderer='rhodecode:templates/admin/auth/plugin_settings. |
|
335 | renderer='rhodecode:templates/admin/auth/plugin_settings.mako', | |
336 | request_method='GET', |
|
336 | request_method='GET', | |
337 | route_name='auth_home', |
|
337 | route_name='auth_home', | |
338 | context=LdapAuthnResource) |
|
338 | context=LdapAuthnResource) | |
339 | config.add_view( |
|
339 | config.add_view( | |
340 | 'rhodecode.authentication.views.AuthnPluginViewBase', |
|
340 | 'rhodecode.authentication.views.AuthnPluginViewBase', | |
341 | attr='settings_post', |
|
341 | attr='settings_post', | |
342 |
renderer='rhodecode:templates/admin/auth/plugin_settings. |
|
342 | renderer='rhodecode:templates/admin/auth/plugin_settings.mako', | |
343 | request_method='POST', |
|
343 | request_method='POST', | |
344 | route_name='auth_home', |
|
344 | route_name='auth_home', | |
345 | context=LdapAuthnResource) |
|
345 | context=LdapAuthnResource) |
@@ -82,14 +82,14 b' class RhodeCodeAuthPlugin(RhodeCodeExter' | |||||
82 | config.add_view( |
|
82 | config.add_view( | |
83 | 'rhodecode.authentication.views.AuthnPluginViewBase', |
|
83 | 'rhodecode.authentication.views.AuthnPluginViewBase', | |
84 | attr='settings_get', |
|
84 | attr='settings_get', | |
85 |
renderer='rhodecode:templates/admin/auth/plugin_settings. |
|
85 | renderer='rhodecode:templates/admin/auth/plugin_settings.mako', | |
86 | request_method='GET', |
|
86 | request_method='GET', | |
87 | route_name='auth_home', |
|
87 | route_name='auth_home', | |
88 | context=PamAuthnResource) |
|
88 | context=PamAuthnResource) | |
89 | config.add_view( |
|
89 | config.add_view( | |
90 | 'rhodecode.authentication.views.AuthnPluginViewBase', |
|
90 | 'rhodecode.authentication.views.AuthnPluginViewBase', | |
91 | attr='settings_post', |
|
91 | attr='settings_post', | |
92 |
renderer='rhodecode:templates/admin/auth/plugin_settings. |
|
92 | renderer='rhodecode:templates/admin/auth/plugin_settings.mako', | |
93 | request_method='POST', |
|
93 | request_method='POST', | |
94 | route_name='auth_home', |
|
94 | route_name='auth_home', | |
95 | context=PamAuthnResource) |
|
95 | context=PamAuthnResource) |
@@ -52,14 +52,14 b' class RhodeCodeAuthPlugin(RhodeCodeAuthP' | |||||
52 | config.add_view( |
|
52 | config.add_view( | |
53 | 'rhodecode.authentication.views.AuthnPluginViewBase', |
|
53 | 'rhodecode.authentication.views.AuthnPluginViewBase', | |
54 | attr='settings_get', |
|
54 | attr='settings_get', | |
55 |
renderer='rhodecode:templates/admin/auth/plugin_settings. |
|
55 | renderer='rhodecode:templates/admin/auth/plugin_settings.mako', | |
56 | request_method='GET', |
|
56 | request_method='GET', | |
57 | route_name='auth_home', |
|
57 | route_name='auth_home', | |
58 | context=RhodecodeAuthnResource) |
|
58 | context=RhodecodeAuthnResource) | |
59 | config.add_view( |
|
59 | config.add_view( | |
60 | 'rhodecode.authentication.views.AuthnPluginViewBase', |
|
60 | 'rhodecode.authentication.views.AuthnPluginViewBase', | |
61 | attr='settings_post', |
|
61 | attr='settings_post', | |
62 |
renderer='rhodecode:templates/admin/auth/plugin_settings. |
|
62 | renderer='rhodecode:templates/admin/auth/plugin_settings.mako', | |
63 | request_method='POST', |
|
63 | request_method='POST', | |
64 | route_name='auth_home', |
|
64 | route_name='auth_home', | |
65 | context=RhodecodeAuthnResource) |
|
65 | context=RhodecodeAuthnResource) |
@@ -55,14 +55,14 b' class RhodeCodeAuthPlugin(RhodeCodeAuthP' | |||||
55 | config.add_view( |
|
55 | config.add_view( | |
56 | 'rhodecode.authentication.views.AuthnPluginViewBase', |
|
56 | 'rhodecode.authentication.views.AuthnPluginViewBase', | |
57 | attr='settings_get', |
|
57 | attr='settings_get', | |
58 |
renderer='rhodecode:templates/admin/auth/plugin_settings. |
|
58 | renderer='rhodecode:templates/admin/auth/plugin_settings.mako', | |
59 | request_method='GET', |
|
59 | request_method='GET', | |
60 | route_name='auth_home', |
|
60 | route_name='auth_home', | |
61 | context=RhodecodeAuthnResource) |
|
61 | context=RhodecodeAuthnResource) | |
62 | config.add_view( |
|
62 | config.add_view( | |
63 | 'rhodecode.authentication.views.AuthnPluginViewBase', |
|
63 | 'rhodecode.authentication.views.AuthnPluginViewBase', | |
64 | attr='settings_post', |
|
64 | attr='settings_post', | |
65 |
renderer='rhodecode:templates/admin/auth/plugin_settings. |
|
65 | renderer='rhodecode:templates/admin/auth/plugin_settings.mako', | |
66 | request_method='POST', |
|
66 | request_method='POST', | |
67 | route_name='auth_home', |
|
67 | route_name='auth_home', | |
68 | context=RhodecodeAuthnResource) |
|
68 | context=RhodecodeAuthnResource) |
@@ -134,7 +134,7 b' class AuthSettingsView(object):' | |||||
134 | 'available_plugins': authn_registry.get_plugins(), |
|
134 | 'available_plugins': authn_registry.get_plugins(), | |
135 | 'enabled_plugins': enabled_plugins, |
|
135 | 'enabled_plugins': enabled_plugins, | |
136 | } |
|
136 | } | |
137 |
html = render('rhodecode:templates/admin/auth/auth_settings. |
|
137 | html = render('rhodecode:templates/admin/auth/auth_settings.mako', | |
138 | template_context, |
|
138 | template_context, | |
139 | request=self.request) |
|
139 | request=self.request) | |
140 |
|
140 |
@@ -46,7 +46,7 b' PLUGIN_DEFINITION = {' | |||||
46 | 'javascript': [], |
|
46 | 'javascript': [], | |
47 | 'css': [], |
|
47 | 'css': [], | |
48 | 'template_hooks': { |
|
48 | 'template_hooks': { | |
49 |
'plugin_init_template': 'rhodecode:templates/channelstream/plugin_init. |
|
49 | 'plugin_init_template': 'rhodecode:templates/channelstream/plugin_init.mako' | |
50 | }, |
|
50 | }, | |
51 | 'url_gen': url_gen, |
|
51 | 'url_gen': url_gen, | |
52 | 'static': None, |
|
52 | 'static': None, |
@@ -251,7 +251,7 b' def error_handler(exception, request):' | |||||
251 | c.causes = base_response.causes |
|
251 | c.causes = base_response.causes | |
252 |
|
252 | |||
253 | response = render_to_response( |
|
253 | response = render_to_response( | |
254 |
'/errors/error_document. |
|
254 | '/errors/error_document.mako', {'c': c}, request=request, | |
255 | response=base_response) |
|
255 | response=base_response) | |
256 |
|
256 | |||
257 | return response |
|
257 | return response |
@@ -153,11 +153,11 b' class AdminController(BaseController):' | |||||
153 |
|
153 | |||
154 | c.users_log = Page(users_log, page=p, items_per_page=10, |
|
154 | c.users_log = Page(users_log, page=p, items_per_page=10, | |
155 | url=url_generator) |
|
155 | url=url_generator) | |
156 |
c.log_data = render('admin/admin_log. |
|
156 | c.log_data = render('admin/admin_log.mako') | |
157 |
|
157 | |||
158 | if request.is_xhr: |
|
158 | if request.is_xhr: | |
159 | return c.log_data |
|
159 | return c.log_data | |
160 |
return render('admin/admin. |
|
160 | return render('admin/admin.mako') | |
161 |
|
161 | |||
162 | # global redirect doesn't need permissions |
|
162 | # global redirect doesn't need permissions | |
163 | def pull_requests(self, pull_request_id): |
|
163 | def pull_requests(self, pull_request_id): |
@@ -57,7 +57,7 b' class DefaultsController(BaseController)' | |||||
57 | defaults = SettingsModel().get_default_repo_settings() |
|
57 | defaults = SettingsModel().get_default_repo_settings() | |
58 |
|
58 | |||
59 | return htmlfill.render( |
|
59 | return htmlfill.render( | |
60 |
render('admin/defaults/defaults. |
|
60 | render('admin/defaults/defaults.mako'), | |
61 | defaults=defaults, |
|
61 | defaults=defaults, | |
62 | encoding="UTF-8", |
|
62 | encoding="UTF-8", | |
63 | force_defaults=False |
|
63 | force_defaults=False | |
@@ -88,7 +88,7 b' class DefaultsController(BaseController)' | |||||
88 | defaults = errors.value |
|
88 | defaults = errors.value | |
89 |
|
89 | |||
90 | return htmlfill.render( |
|
90 | return htmlfill.render( | |
91 |
render('admin/defaults/defaults. |
|
91 | render('admin/defaults/defaults.mako'), | |
92 | defaults=defaults, |
|
92 | defaults=defaults, | |
93 | errors=errors.error_dict or {}, |
|
93 | errors=errors.error_dict or {}, | |
94 | prefix_error=False, |
|
94 | prefix_error=False, |
@@ -114,7 +114,7 b' class GistsController(BaseController):' | |||||
114 | c.active = 'public' |
|
114 | c.active = 'public' | |
115 |
|
115 | |||
116 | from rhodecode.lib.utils import PartialRenderer |
|
116 | from rhodecode.lib.utils import PartialRenderer | |
117 |
_render = PartialRenderer('data_table/_dt_elements. |
|
117 | _render = PartialRenderer('data_table/_dt_elements.mako') | |
118 |
|
118 | |||
119 | data = [] |
|
119 | data = [] | |
120 |
|
120 | |||
@@ -130,7 +130,7 b' class GistsController(BaseController):' | |||||
130 | 'description': _render('gist_description', gist.gist_description) |
|
130 | 'description': _render('gist_description', gist.gist_description) | |
131 | }) |
|
131 | }) | |
132 | c.data = json.dumps(data) |
|
132 | c.data = json.dumps(data) | |
133 |
return render('admin/gists/index. |
|
133 | return render('admin/gists/index.mako') | |
134 |
|
134 | |||
135 | @LoginRequired() |
|
135 | @LoginRequired() | |
136 | @NotAnonymous() |
|
136 | @NotAnonymous() | |
@@ -186,7 +186,7 b' class GistsController(BaseController):' | |||||
186 | del errors['nodes.0.filename'] |
|
186 | del errors['nodes.0.filename'] | |
187 |
|
187 | |||
188 | return formencode.htmlfill.render( |
|
188 | return formencode.htmlfill.render( | |
189 |
render('admin/gists/new. |
|
189 | render('admin/gists/new.mako'), | |
190 | defaults=defaults, |
|
190 | defaults=defaults, | |
191 | errors=errors, |
|
191 | errors=errors, | |
192 | prefix_error=False, |
|
192 | prefix_error=False, | |
@@ -206,7 +206,7 b' class GistsController(BaseController):' | |||||
206 | """GET /admin/gists/new: Form to create a new item""" |
|
206 | """GET /admin/gists/new: Form to create a new item""" | |
207 | # url('new_gist') |
|
207 | # url('new_gist') | |
208 | self.__load_defaults() |
|
208 | self.__load_defaults() | |
209 |
return render('admin/gists/new. |
|
209 | return render('admin/gists/new.mako') | |
210 |
|
210 | |||
211 | @LoginRequired() |
|
211 | @LoginRequired() | |
212 | @NotAnonymous() |
|
212 | @NotAnonymous() | |
@@ -266,7 +266,7 b' class GistsController(BaseController):' | |||||
266 | if (f_path is None or f.path == f_path)]) |
|
266 | if (f_path is None or f.path == f_path)]) | |
267 | response.content_type = 'text/plain' |
|
267 | response.content_type = 'text/plain' | |
268 | return content |
|
268 | return content | |
269 |
return render('admin/gists/show. |
|
269 | return render('admin/gists/show.mako') | |
270 |
|
270 | |||
271 | @LoginRequired() |
|
271 | @LoginRequired() | |
272 | @NotAnonymous() |
|
272 | @NotAnonymous() | |
@@ -344,7 +344,7 b' class GistsController(BaseController):' | |||||
344 | expiry = h.age(h.time_to_datetime(c.gist.gist_expires)) |
|
344 | expiry = h.age(h.time_to_datetime(c.gist.gist_expires)) | |
345 | self.__load_defaults( |
|
345 | self.__load_defaults( | |
346 | extra_values=(0, _('%(expiry)s - current value') % {'expiry': expiry})) |
|
346 | extra_values=(0, _('%(expiry)s - current value') % {'expiry': expiry})) | |
347 |
return render('admin/gists/edit. |
|
347 | return render('admin/gists/edit.mako') | |
348 |
|
348 | |||
349 | @LoginRequired() |
|
349 | @LoginRequired() | |
350 | @NotAnonymous() |
|
350 | @NotAnonymous() |
@@ -144,7 +144,7 b' class MyAccountController(BaseController' | |||||
144 |
|
144 | |||
145 | except formencode.Invalid as errors: |
|
145 | except formencode.Invalid as errors: | |
146 | return htmlfill.render( |
|
146 | return htmlfill.render( | |
147 |
render('admin/my_account/my_account. |
|
147 | render('admin/my_account/my_account.mako'), | |
148 | defaults=errors.value, |
|
148 | defaults=errors.value, | |
149 | errors=errors.error_dict or {}, |
|
149 | errors=errors.error_dict or {}, | |
150 | prefix_error=False, |
|
150 | prefix_error=False, | |
@@ -159,7 +159,7 b' class MyAccountController(BaseController' | |||||
159 | return redirect('my_account') |
|
159 | return redirect('my_account') | |
160 |
|
160 | |||
161 | return htmlfill.render( |
|
161 | return htmlfill.render( | |
162 |
render('admin/my_account/my_account. |
|
162 | render('admin/my_account/my_account.mako'), | |
163 | defaults=defaults, |
|
163 | defaults=defaults, | |
164 | encoding="UTF-8", |
|
164 | encoding="UTF-8", | |
165 | force_defaults=False |
|
165 | force_defaults=False | |
@@ -175,7 +175,7 b' class MyAccountController(BaseController' | |||||
175 |
|
175 | |||
176 | defaults = c.user.get_dict() |
|
176 | defaults = c.user.get_dict() | |
177 | return htmlfill.render( |
|
177 | return htmlfill.render( | |
178 |
render('admin/my_account/my_account. |
|
178 | render('admin/my_account/my_account.mako'), | |
179 | defaults=defaults, encoding="UTF-8", force_defaults=False) |
|
179 | defaults=defaults, encoding="UTF-8", force_defaults=False) | |
180 |
|
180 | |||
181 | def my_account_edit(self): |
|
181 | def my_account_edit(self): | |
@@ -190,7 +190,7 b' class MyAccountController(BaseController' | |||||
190 |
|
190 | |||
191 | defaults = c.user.get_dict() |
|
191 | defaults = c.user.get_dict() | |
192 | return htmlfill.render( |
|
192 | return htmlfill.render( | |
193 |
render('admin/my_account/my_account. |
|
193 | render('admin/my_account/my_account.mako'), | |
194 | defaults=defaults, |
|
194 | defaults=defaults, | |
195 | encoding="UTF-8", |
|
195 | encoding="UTF-8", | |
196 | force_defaults=False |
|
196 | force_defaults=False | |
@@ -235,7 +235,7 b' class MyAccountController(BaseController' | |||||
235 | return redirect(url('my_account_password')) |
|
235 | return redirect(url('my_account_password')) | |
236 |
|
236 | |||
237 | c.form = form |
|
237 | c.form = form | |
238 |
return render('admin/my_account/my_account. |
|
238 | return render('admin/my_account/my_account.mako') | |
239 |
|
239 | |||
240 | def my_account_repos(self): |
|
240 | def my_account_repos(self): | |
241 | c.active = 'repos' |
|
241 | c.active = 'repos' | |
@@ -243,7 +243,7 b' class MyAccountController(BaseController' | |||||
243 |
|
243 | |||
244 | # json used to render the grid |
|
244 | # json used to render the grid | |
245 | c.data = self._load_my_repos_data() |
|
245 | c.data = self._load_my_repos_data() | |
246 |
return render('admin/my_account/my_account. |
|
246 | return render('admin/my_account/my_account.mako') | |
247 |
|
247 | |||
248 | def my_account_watched(self): |
|
248 | def my_account_watched(self): | |
249 | c.active = 'watched' |
|
249 | c.active = 'watched' | |
@@ -251,14 +251,14 b' class MyAccountController(BaseController' | |||||
251 |
|
251 | |||
252 | # json used to render the grid |
|
252 | # json used to render the grid | |
253 | c.data = self._load_my_repos_data(watched=True) |
|
253 | c.data = self._load_my_repos_data(watched=True) | |
254 |
return render('admin/my_account/my_account. |
|
254 | return render('admin/my_account/my_account.mako') | |
255 |
|
255 | |||
256 | def my_account_perms(self): |
|
256 | def my_account_perms(self): | |
257 | c.active = 'perms' |
|
257 | c.active = 'perms' | |
258 | self.__load_data() |
|
258 | self.__load_data() | |
259 | c.perm_user = c.auth_user |
|
259 | c.perm_user = c.auth_user | |
260 |
|
260 | |||
261 |
return render('admin/my_account/my_account. |
|
261 | return render('admin/my_account/my_account.mako') | |
262 |
|
262 | |||
263 | def my_account_emails(self): |
|
263 | def my_account_emails(self): | |
264 | c.active = 'emails' |
|
264 | c.active = 'emails' | |
@@ -266,7 +266,7 b' class MyAccountController(BaseController' | |||||
266 |
|
266 | |||
267 | c.user_email_map = UserEmailMap.query()\ |
|
267 | c.user_email_map = UserEmailMap.query()\ | |
268 | .filter(UserEmailMap.user == c.user).all() |
|
268 | .filter(UserEmailMap.user == c.user).all() | |
269 |
return render('admin/my_account/my_account. |
|
269 | return render('admin/my_account/my_account.mako') | |
270 |
|
270 | |||
271 | @auth.CSRFRequired() |
|
271 | @auth.CSRFRequired() | |
272 | def my_account_emails_add(self): |
|
272 | def my_account_emails_add(self): | |
@@ -318,7 +318,7 b' class MyAccountController(BaseController' | |||||
318 | user_id=c.rhodecode_user.user_id, statuses=statuses) |
|
318 | user_id=c.rhodecode_user.user_id, statuses=statuses) | |
319 |
|
319 | |||
320 | from rhodecode.lib.utils import PartialRenderer |
|
320 | from rhodecode.lib.utils import PartialRenderer | |
321 |
_render = PartialRenderer('data_table/_dt_elements. |
|
321 | _render = PartialRenderer('data_table/_dt_elements.mako') | |
322 | data = [] |
|
322 | data = [] | |
323 | for pr in pull_requests: |
|
323 | for pr in pull_requests: | |
324 | repo_id = pr.target_repo_id |
|
324 | repo_id = pr.target_repo_id | |
@@ -372,7 +372,7 b' class MyAccountController(BaseController' | |||||
372 | if not request.is_xhr: |
|
372 | if not request.is_xhr: | |
373 | c.data_participate = json.dumps(data['data']) |
|
373 | c.data_participate = json.dumps(data['data']) | |
374 | c.records_total_participate = data['recordsTotal'] |
|
374 | c.records_total_participate = data['recordsTotal'] | |
375 |
return render('admin/my_account/my_account. |
|
375 | return render('admin/my_account/my_account.mako') | |
376 | else: |
|
376 | else: | |
377 | return json.dumps(data) |
|
377 | return json.dumps(data) | |
378 |
|
378 | |||
@@ -393,7 +393,7 b' class MyAccountController(BaseController' | |||||
393 | c.role_options = [(c.role_values, _("Role"))] |
|
393 | c.role_options = [(c.role_values, _("Role"))] | |
394 | c.user_auth_tokens = AuthTokenModel().get_auth_tokens( |
|
394 | c.user_auth_tokens = AuthTokenModel().get_auth_tokens( | |
395 | c.rhodecode_user.user_id, show_expired=show_expired) |
|
395 | c.rhodecode_user.user_id, show_expired=show_expired) | |
396 |
return render('admin/my_account/my_account. |
|
396 | return render('admin/my_account/my_account.mako') | |
397 |
|
397 | |||
398 | @auth.CSRFRequired() |
|
398 | @auth.CSRFRequired() | |
399 | def my_account_auth_tokens_add(self): |
|
399 | def my_account_auth_tokens_add(self): | |
@@ -426,7 +426,7 b' class MyAccountController(BaseController' | |||||
426 |
|
426 | |||
427 | def my_notifications(self): |
|
427 | def my_notifications(self): | |
428 | c.active = 'notifications' |
|
428 | c.active = 'notifications' | |
429 |
return render('admin/my_account/my_account. |
|
429 | return render('admin/my_account/my_account.mako') | |
430 |
|
430 | |||
431 | @auth.CSRFRequired() |
|
431 | @auth.CSRFRequired() | |
432 | @jsonify |
|
432 | @jsonify |
@@ -82,9 +82,9 b' class NotificationsController(BaseContro' | |||||
82 | c.current_filter = 'comment' |
|
82 | c.current_filter = 'comment' | |
83 |
|
83 | |||
84 | if request.is_xhr: |
|
84 | if request.is_xhr: | |
85 |
return render('admin/notifications/notifications_data. |
|
85 | return render('admin/notifications/notifications_data.mako') | |
86 |
|
86 | |||
87 |
return render('admin/notifications/notifications. |
|
87 | return render('admin/notifications/notifications.mako') | |
88 |
|
88 | |||
89 |
|
89 | |||
90 | @auth.CSRFRequired() |
|
90 | @auth.CSRFRequired() | |
@@ -102,7 +102,7 b' class NotificationsController(BaseContro' | |||||
102 | url('notifications'), request.GET) |
|
102 | url('notifications'), request.GET) | |
103 | c.notifications = Page(notif, page=1, items_per_page=10, |
|
103 | c.notifications = Page(notif, page=1, items_per_page=10, | |
104 | url=notifications_url) |
|
104 | url=notifications_url) | |
105 |
return render('admin/notifications/notifications_data. |
|
105 | return render('admin/notifications/notifications_data.mako') | |
106 |
|
106 | |||
107 | def _has_permissions(self, notification): |
|
107 | def _has_permissions(self, notification): | |
108 | def is_owner(): |
|
108 | def is_owner(): | |
@@ -173,6 +173,6 b' class NotificationsController(BaseContro' | |||||
173 | Session().commit() |
|
173 | Session().commit() | |
174 | c.notification = no |
|
174 | c.notification = no | |
175 |
|
175 | |||
176 |
return render('admin/notifications/show_notification. |
|
176 | return render('admin/notifications/show_notification.mako') | |
177 |
|
177 | |||
178 | return abort(403) |
|
178 | return abort(403) |
@@ -80,7 +80,7 b' class PermissionsController(BaseControll' | |||||
80 | defaults.update(c.user.get_default_perms()) |
|
80 | defaults.update(c.user.get_default_perms()) | |
81 |
|
81 | |||
82 | return htmlfill.render( |
|
82 | return htmlfill.render( | |
83 |
render('admin/permissions/permissions. |
|
83 | render('admin/permissions/permissions.mako'), | |
84 | defaults=defaults, |
|
84 | defaults=defaults, | |
85 | encoding="UTF-8", |
|
85 | encoding="UTF-8", | |
86 | force_defaults=False) |
|
86 | force_defaults=False) | |
@@ -116,7 +116,7 b' class PermissionsController(BaseControll' | |||||
116 | defaults = errors.value |
|
116 | defaults = errors.value | |
117 |
|
117 | |||
118 | return htmlfill.render( |
|
118 | return htmlfill.render( | |
119 |
render('admin/permissions/permissions. |
|
119 | render('admin/permissions/permissions.mako'), | |
120 | defaults=defaults, |
|
120 | defaults=defaults, | |
121 | errors=errors.error_dict or {}, |
|
121 | errors=errors.error_dict or {}, | |
122 | prefix_error=False, |
|
122 | prefix_error=False, | |
@@ -137,7 +137,7 b' class PermissionsController(BaseControll' | |||||
137 | defaults = {} |
|
137 | defaults = {} | |
138 | defaults.update(c.user.get_default_perms()) |
|
138 | defaults.update(c.user.get_default_perms()) | |
139 | return htmlfill.render( |
|
139 | return htmlfill.render( | |
140 |
render('admin/permissions/permissions. |
|
140 | render('admin/permissions/permissions.mako'), | |
141 | defaults=defaults, |
|
141 | defaults=defaults, | |
142 | encoding="UTF-8", |
|
142 | encoding="UTF-8", | |
143 | force_defaults=False) |
|
143 | force_defaults=False) | |
@@ -165,7 +165,7 b' class PermissionsController(BaseControll' | |||||
165 | defaults = errors.value |
|
165 | defaults = errors.value | |
166 |
|
166 | |||
167 | return htmlfill.render( |
|
167 | return htmlfill.render( | |
168 |
render('admin/permissions/permissions. |
|
168 | render('admin/permissions/permissions.mako'), | |
169 | defaults=defaults, |
|
169 | defaults=defaults, | |
170 | errors=errors.error_dict or {}, |
|
170 | errors=errors.error_dict or {}, | |
171 | prefix_error=False, |
|
171 | prefix_error=False, | |
@@ -188,7 +188,7 b' class PermissionsController(BaseControll' | |||||
188 | defaults.update(c.user.get_default_perms()) |
|
188 | defaults.update(c.user.get_default_perms()) | |
189 |
|
189 | |||
190 | return htmlfill.render( |
|
190 | return htmlfill.render( | |
191 |
render('admin/permissions/permissions. |
|
191 | render('admin/permissions/permissions.mako'), | |
192 | defaults=defaults, |
|
192 | defaults=defaults, | |
193 | encoding="UTF-8", |
|
193 | encoding="UTF-8", | |
194 | force_defaults=False) |
|
194 | force_defaults=False) | |
@@ -219,7 +219,7 b' class PermissionsController(BaseControll' | |||||
219 | defaults = errors.value |
|
219 | defaults = errors.value | |
220 |
|
220 | |||
221 | return htmlfill.render( |
|
221 | return htmlfill.render( | |
222 |
render('admin/permissions/permissions. |
|
222 | render('admin/permissions/permissions.mako'), | |
223 | defaults=defaults, |
|
223 | defaults=defaults, | |
224 | errors=errors.error_dict or {}, |
|
224 | errors=errors.error_dict or {}, | |
225 | prefix_error=False, |
|
225 | prefix_error=False, | |
@@ -239,11 +239,11 b' class PermissionsController(BaseControll' | |||||
239 | c.user_ip_map = ( |
|
239 | c.user_ip_map = ( | |
240 | UserIpMap.query().filter(UserIpMap.user == c.user).all()) |
|
240 | UserIpMap.query().filter(UserIpMap.user == c.user).all()) | |
241 |
|
241 | |||
242 |
return render('admin/permissions/permissions. |
|
242 | return render('admin/permissions/permissions.mako') | |
243 |
|
243 | |||
244 | @HasPermissionAllDecorator('hg.admin') |
|
244 | @HasPermissionAllDecorator('hg.admin') | |
245 | def permission_perms(self): |
|
245 | def permission_perms(self): | |
246 | c.active = 'perms' |
|
246 | c.active = 'perms' | |
247 | c.user = User.get_default_user() |
|
247 | c.user = User.get_default_user() | |
248 | c.perm_user = c.user.AuthUser |
|
248 | c.perm_user = c.user.AuthUser | |
249 |
return render('admin/permissions/permissions. |
|
249 | return render('admin/permissions/permissions.mako') |
@@ -162,7 +162,7 b' class RepoGroupsController(BaseControlle' | |||||
162 | repo_group_data = RepoGroupModel().get_repo_groups_as_dict( |
|
162 | repo_group_data = RepoGroupModel().get_repo_groups_as_dict( | |
163 | repo_group_list=repo_group_list_acl, admin=True) |
|
163 | repo_group_list=repo_group_list_acl, admin=True) | |
164 | c.data = json.dumps(repo_group_data) |
|
164 | c.data = json.dumps(repo_group_data) | |
165 |
return render('admin/repo_groups/repo_groups. |
|
165 | return render('admin/repo_groups/repo_groups.mako') | |
166 |
|
166 | |||
167 | # perm checks inside |
|
167 | # perm checks inside | |
168 | @NotAnonymous() |
|
168 | @NotAnonymous() | |
@@ -199,7 +199,7 b' class RepoGroupsController(BaseControlle' | |||||
199 | # TODO: in futureaction_logger(, '', '', '', self.sa) |
|
199 | # TODO: in futureaction_logger(, '', '', '', self.sa) | |
200 | except formencode.Invalid as errors: |
|
200 | except formencode.Invalid as errors: | |
201 | return htmlfill.render( |
|
201 | return htmlfill.render( | |
202 |
render('admin/repo_groups/repo_group_add. |
|
202 | render('admin/repo_groups/repo_group_add.mako'), | |
203 | defaults=errors.value, |
|
203 | defaults=errors.value, | |
204 | errors=errors.error_dict or {}, |
|
204 | errors=errors.error_dict or {}, | |
205 | prefix_error=False, |
|
205 | prefix_error=False, | |
@@ -224,7 +224,7 b' class RepoGroupsController(BaseControlle' | |||||
224 | return abort(403) |
|
224 | return abort(403) | |
225 |
|
225 | |||
226 | self.__load_defaults() |
|
226 | self.__load_defaults() | |
227 |
return render('admin/repo_groups/repo_group_add. |
|
227 | return render('admin/repo_groups/repo_group_add.mako') | |
228 |
|
228 | |||
229 | @HasRepoGroupPermissionAnyDecorator('group.admin') |
|
229 | @HasRepoGroupPermissionAnyDecorator('group.admin') | |
230 | @auth.CSRFRequired() |
|
230 | @auth.CSRFRequired() | |
@@ -263,7 +263,7 b' class RepoGroupsController(BaseControlle' | |||||
263 | except formencode.Invalid as errors: |
|
263 | except formencode.Invalid as errors: | |
264 | c.active = 'settings' |
|
264 | c.active = 'settings' | |
265 | return htmlfill.render( |
|
265 | return htmlfill.render( | |
266 |
render('admin/repo_groups/repo_group_edit. |
|
266 | render('admin/repo_groups/repo_group_edit.mako'), | |
267 | defaults=errors.value, |
|
267 | defaults=errors.value, | |
268 | errors=errors.error_dict or {}, |
|
268 | errors=errors.error_dict or {}, | |
269 | prefix_error=False, |
|
269 | prefix_error=False, | |
@@ -338,7 +338,7 b' class RepoGroupsController(BaseControlle' | |||||
338 | defaults = self.__load_data(c.repo_group.group_id) |
|
338 | defaults = self.__load_data(c.repo_group.group_id) | |
339 |
|
339 | |||
340 | return htmlfill.render( |
|
340 | return htmlfill.render( | |
341 |
render('admin/repo_groups/repo_group_edit. |
|
341 | render('admin/repo_groups/repo_group_edit.mako'), | |
342 | defaults=defaults, |
|
342 | defaults=defaults, | |
343 | encoding="UTF-8", |
|
343 | encoding="UTF-8", | |
344 | force_defaults=False |
|
344 | force_defaults=False | |
@@ -351,7 +351,7 b' class RepoGroupsController(BaseControlle' | |||||
351 | c.active = 'advanced' |
|
351 | c.active = 'advanced' | |
352 | c.repo_group = RepoGroupModel()._get_repo_group(group_name) |
|
352 | c.repo_group = RepoGroupModel()._get_repo_group(group_name) | |
353 |
|
353 | |||
354 |
return render('admin/repo_groups/repo_group_edit. |
|
354 | return render('admin/repo_groups/repo_group_edit.mako') | |
355 |
|
355 | |||
356 | @HasRepoGroupPermissionAnyDecorator('group.admin') |
|
356 | @HasRepoGroupPermissionAnyDecorator('group.admin') | |
357 | def edit_repo_group_perms(self, group_name): |
|
357 | def edit_repo_group_perms(self, group_name): | |
@@ -363,7 +363,7 b' class RepoGroupsController(BaseControlle' | |||||
363 | defaults = self.__load_data(c.repo_group.group_id) |
|
363 | defaults = self.__load_data(c.repo_group.group_id) | |
364 |
|
364 | |||
365 | return htmlfill.render( |
|
365 | return htmlfill.render( | |
366 |
render('admin/repo_groups/repo_group_edit. |
|
366 | render('admin/repo_groups/repo_group_edit.mako'), | |
367 | defaults=defaults, |
|
367 | defaults=defaults, | |
368 | encoding="UTF-8", |
|
368 | encoding="UTF-8", | |
369 | force_defaults=False |
|
369 | force_defaults=False |
@@ -147,7 +147,7 b' class ReposController(BaseRepoController' | |||||
147 | # json used to render the grid |
|
147 | # json used to render the grid | |
148 | c.data = json.dumps(repos_data) |
|
148 | c.data = json.dumps(repos_data) | |
149 |
|
149 | |||
150 |
return render('admin/repos/repos. |
|
150 | return render('admin/repos/repos.mako') | |
151 |
|
151 | |||
152 | # perms check inside |
|
152 | # perms check inside | |
153 | @NotAnonymous() |
|
153 | @NotAnonymous() | |
@@ -175,7 +175,7 b' class ReposController(BaseRepoController' | |||||
175 | task_id = task.task_id |
|
175 | task_id = task.task_id | |
176 | except formencode.Invalid as errors: |
|
176 | except formencode.Invalid as errors: | |
177 | return htmlfill.render( |
|
177 | return htmlfill.render( | |
178 |
render('admin/repos/repo_add. |
|
178 | render('admin/repos/repo_add.mako'), | |
179 | defaults=errors.value, |
|
179 | defaults=errors.value, | |
180 | errors=errors.error_dict or {}, |
|
180 | errors=errors.error_dict or {}, | |
181 | prefix_error=False, |
|
181 | prefix_error=False, | |
@@ -235,7 +235,7 b' class ReposController(BaseRepoController' | |||||
235 | defaults.update({'repo_group': parent_group_choice}) |
|
235 | defaults.update({'repo_group': parent_group_choice}) | |
236 |
|
236 | |||
237 | return htmlfill.render( |
|
237 | return htmlfill.render( | |
238 |
render('admin/repos/repo_add. |
|
238 | render('admin/repos/repo_add.mako'), | |
239 | defaults=defaults, |
|
239 | defaults=defaults, | |
240 | errors={}, |
|
240 | errors={}, | |
241 | prefix_error=False, |
|
241 | prefix_error=False, | |
@@ -249,7 +249,7 b' class ReposController(BaseRepoController' | |||||
249 | c.task_id = request.GET.get('task_id') |
|
249 | c.task_id = request.GET.get('task_id') | |
250 | if not c.repo: |
|
250 | if not c.repo: | |
251 | raise HTTPNotFound() |
|
251 | raise HTTPNotFound() | |
252 |
return render('admin/repos/repo_creating. |
|
252 | return render('admin/repos/repo_creating.mako') | |
253 |
|
253 | |||
254 | @NotAnonymous() |
|
254 | @NotAnonymous() | |
255 | @jsonify |
|
255 | @jsonify | |
@@ -334,7 +334,7 b' class ReposController(BaseRepoController' | |||||
334 | defaults = self.__load_data(repo_name) |
|
334 | defaults = self.__load_data(repo_name) | |
335 | defaults.update(errors.value) |
|
335 | defaults.update(errors.value) | |
336 | return htmlfill.render( |
|
336 | return htmlfill.render( | |
337 |
render('admin/repos/repo_edit. |
|
337 | render('admin/repos/repo_edit.mako'), | |
338 | defaults=defaults, |
|
338 | defaults=defaults, | |
339 | errors=errors.error_dict or {}, |
|
339 | errors=errors.error_dict or {}, | |
340 | prefix_error=False, |
|
340 | prefix_error=False, | |
@@ -410,7 +410,7 b' class ReposController(BaseRepoController' | |||||
410 | c.personal_repo_group = c.rhodecode_user.personal_repo_group |
|
410 | c.personal_repo_group = c.rhodecode_user.personal_repo_group | |
411 | c.active = 'settings' |
|
411 | c.active = 'settings' | |
412 | return htmlfill.render( |
|
412 | return htmlfill.render( | |
413 |
render('admin/repos/repo_edit. |
|
413 | render('admin/repos/repo_edit.mako'), | |
414 | defaults=defaults, |
|
414 | defaults=defaults, | |
415 | encoding="UTF-8", |
|
415 | encoding="UTF-8", | |
416 | force_defaults=False) |
|
416 | force_defaults=False) | |
@@ -424,7 +424,7 b' class ReposController(BaseRepoController' | |||||
424 | defaults = RepoModel()._get_defaults(repo_name) |
|
424 | defaults = RepoModel()._get_defaults(repo_name) | |
425 |
|
425 | |||
426 | return htmlfill.render( |
|
426 | return htmlfill.render( | |
427 |
render('admin/repos/repo_edit. |
|
427 | render('admin/repos/repo_edit.mako'), | |
428 | defaults=defaults, |
|
428 | defaults=defaults, | |
429 | encoding="UTF-8", |
|
429 | encoding="UTF-8", | |
430 | force_defaults=False) |
|
430 | force_defaults=False) | |
@@ -454,7 +454,7 b' class ReposController(BaseRepoController' | |||||
454 | if request.POST: |
|
454 | if request.POST: | |
455 |
|
455 | |||
456 | return redirect(url('repo_edit_fields')) |
|
456 | return redirect(url('repo_edit_fields')) | |
457 |
return render('admin/repos/repo_edit. |
|
457 | return render('admin/repos/repo_edit.mako') | |
458 |
|
458 | |||
459 | @HasRepoPermissionAllDecorator('repository.admin') |
|
459 | @HasRepoPermissionAllDecorator('repository.admin') | |
460 | @auth.CSRFRequired() |
|
460 | @auth.CSRFRequired() | |
@@ -509,7 +509,7 b' class ReposController(BaseRepoController' | |||||
509 |
|
509 | |||
510 | if request.POST: |
|
510 | if request.POST: | |
511 | return redirect(url('repo_edit_advanced')) |
|
511 | return redirect(url('repo_edit_advanced')) | |
512 |
return render('admin/repos/repo_edit. |
|
512 | return render('admin/repos/repo_edit.mako') | |
513 |
|
513 | |||
514 | @HasRepoPermissionAllDecorator('repository.admin') |
|
514 | @HasRepoPermissionAllDecorator('repository.admin') | |
515 | @auth.CSRFRequired() |
|
515 | @auth.CSRFRequired() | |
@@ -642,7 +642,7 b' class ReposController(BaseRepoController' | |||||
642 | c.repo_info = self._load_repo(repo_name) |
|
642 | c.repo_info = self._load_repo(repo_name) | |
643 | c.active = 'caches' |
|
643 | c.active = 'caches' | |
644 |
|
644 | |||
645 |
return render('admin/repos/repo_edit. |
|
645 | return render('admin/repos/repo_edit.mako') | |
646 |
|
646 | |||
647 | @HasRepoPermissionAllDecorator('repository.admin') |
|
647 | @HasRepoPermissionAllDecorator('repository.admin') | |
648 | @auth.CSRFRequired() |
|
648 | @auth.CSRFRequired() | |
@@ -664,7 +664,7 b' class ReposController(BaseRepoController' | |||||
664 | c.repo_info = self._load_repo(repo_name) |
|
664 | c.repo_info = self._load_repo(repo_name) | |
665 | c.active = 'remote' |
|
665 | c.active = 'remote' | |
666 |
|
666 | |||
667 |
return render('admin/repos/repo_edit. |
|
667 | return render('admin/repos/repo_edit.mako') | |
668 |
|
668 | |||
669 | @HasRepoPermissionAllDecorator('repository.admin') |
|
669 | @HasRepoPermissionAllDecorator('repository.admin') | |
670 | @auth.CSRFRequired() |
|
670 | @auth.CSRFRequired() | |
@@ -702,7 +702,7 b' class ReposController(BaseRepoController' | |||||
702 |
|
702 | |||
703 | c.active = 'statistics' |
|
703 | c.active = 'statistics' | |
704 |
|
704 | |||
705 |
return render('admin/repos/repo_edit. |
|
705 | return render('admin/repos/repo_edit.mako') | |
706 |
|
706 | |||
707 | @HasRepoPermissionAllDecorator('repository.admin') |
|
707 | @HasRepoPermissionAllDecorator('repository.admin') | |
708 | @auth.CSRFRequired() |
|
708 | @auth.CSRFRequired() | |
@@ -771,7 +771,7 b' class ReposController(BaseRepoController' | |||||
771 | c.global_patterns = c.settings_model.get_global_settings() |
|
771 | c.global_patterns = c.settings_model.get_global_settings() | |
772 | c.repo_patterns = c.settings_model.get_repo_settings() |
|
772 | c.repo_patterns = c.settings_model.get_repo_settings() | |
773 |
|
773 | |||
774 |
return render('admin/repos/repo_edit. |
|
774 | return render('admin/repos/repo_edit.mako') | |
775 |
|
775 | |||
776 | @HasRepoPermissionAllDecorator('repository.admin') |
|
776 | @HasRepoPermissionAllDecorator('repository.admin') | |
777 | def repo_settings_vcs(self, repo_name): |
|
777 | def repo_settings_vcs(self, repo_name): | |
@@ -791,7 +791,7 b' class ReposController(BaseRepoController' | |||||
791 | rhodecode.CONFIG.get('labs_settings_active', 'true')) |
|
791 | rhodecode.CONFIG.get('labs_settings_active', 'true')) | |
792 |
|
792 | |||
793 | return htmlfill.render( |
|
793 | return htmlfill.render( | |
794 |
render('admin/repos/repo_edit. |
|
794 | render('admin/repos/repo_edit.mako'), | |
795 | defaults=defaults, |
|
795 | defaults=defaults, | |
796 | encoding="UTF-8", |
|
796 | encoding="UTF-8", | |
797 | force_defaults=False) |
|
797 | force_defaults=False) | |
@@ -819,7 +819,7 b' class ReposController(BaseRepoController' | |||||
819 | _("Some form inputs contain invalid data."), |
|
819 | _("Some form inputs contain invalid data."), | |
820 | category='error') |
|
820 | category='error') | |
821 | return htmlfill.render( |
|
821 | return htmlfill.render( | |
822 |
render('admin/repos/repo_edit. |
|
822 | render('admin/repos/repo_edit.mako'), | |
823 | defaults=errors.value, |
|
823 | defaults=errors.value, | |
824 | errors=errors.error_dict or {}, |
|
824 | errors=errors.error_dict or {}, | |
825 | prefix_error=False, |
|
825 | prefix_error=False, | |
@@ -842,7 +842,7 b' class ReposController(BaseRepoController' | |||||
842 | return redirect(url('repo_vcs_settings', repo_name=repo_name)) |
|
842 | return redirect(url('repo_vcs_settings', repo_name=repo_name)) | |
843 |
|
843 | |||
844 | return htmlfill.render( |
|
844 | return htmlfill.render( | |
845 |
render('admin/repos/repo_edit. |
|
845 | render('admin/repos/repo_edit.mako'), | |
846 | defaults=self._vcs_form_defaults(repo_name), |
|
846 | defaults=self._vcs_form_defaults(repo_name), | |
847 | encoding="UTF-8", |
|
847 | encoding="UTF-8", | |
848 | force_defaults=False) |
|
848 | force_defaults=False) |
@@ -150,7 +150,7 b' class SettingsController(BaseController)' | |||||
150 | _("Some form inputs contain invalid data."), |
|
150 | _("Some form inputs contain invalid data."), | |
151 | category='error') |
|
151 | category='error') | |
152 | return htmlfill.render( |
|
152 | return htmlfill.render( | |
153 |
render('admin/settings/settings. |
|
153 | render('admin/settings/settings.mako'), | |
154 | defaults=errors.value, |
|
154 | defaults=errors.value, | |
155 | errors=errors.error_dict or {}, |
|
155 | errors=errors.error_dict or {}, | |
156 | prefix_error=False, |
|
156 | prefix_error=False, | |
@@ -179,7 +179,7 b' class SettingsController(BaseController)' | |||||
179 | return redirect(url('admin_settings_vcs')) |
|
179 | return redirect(url('admin_settings_vcs')) | |
180 |
|
180 | |||
181 | return htmlfill.render( |
|
181 | return htmlfill.render( | |
182 |
render('admin/settings/settings. |
|
182 | render('admin/settings/settings.mako'), | |
183 | defaults=self._form_defaults(), |
|
183 | defaults=self._form_defaults(), | |
184 | encoding="UTF-8", |
|
184 | encoding="UTF-8", | |
185 | force_defaults=False) |
|
185 | force_defaults=False) | |
@@ -198,7 +198,7 b' class SettingsController(BaseController)' | |||||
198 | c.svn_proxy_generate_config = pyramid_settings[generate_config] |
|
198 | c.svn_proxy_generate_config = pyramid_settings[generate_config] | |
199 |
|
199 | |||
200 | return htmlfill.render( |
|
200 | return htmlfill.render( | |
201 |
render('admin/settings/settings. |
|
201 | render('admin/settings/settings.mako'), | |
202 | defaults=self._form_defaults(), |
|
202 | defaults=self._form_defaults(), | |
203 | encoding="UTF-8", |
|
203 | encoding="UTF-8", | |
204 | force_defaults=False) |
|
204 | force_defaults=False) | |
@@ -235,7 +235,7 b' class SettingsController(BaseController)' | |||||
235 | c.active = 'mapping' |
|
235 | c.active = 'mapping' | |
236 |
|
236 | |||
237 | return htmlfill.render( |
|
237 | return htmlfill.render( | |
238 |
render('admin/settings/settings. |
|
238 | render('admin/settings/settings.mako'), | |
239 | defaults=self._form_defaults(), |
|
239 | defaults=self._form_defaults(), | |
240 | encoding="UTF-8", |
|
240 | encoding="UTF-8", | |
241 | force_defaults=False) |
|
241 | force_defaults=False) | |
@@ -253,7 +253,7 b' class SettingsController(BaseController)' | |||||
253 | form_result = application_form.to_python(dict(request.POST)) |
|
253 | form_result = application_form.to_python(dict(request.POST)) | |
254 | except formencode.Invalid as errors: |
|
254 | except formencode.Invalid as errors: | |
255 | return htmlfill.render( |
|
255 | return htmlfill.render( | |
256 |
render('admin/settings/settings. |
|
256 | render('admin/settings/settings.mako'), | |
257 | defaults=errors.value, |
|
257 | defaults=errors.value, | |
258 | errors=errors.error_dict or {}, |
|
258 | errors=errors.error_dict or {}, | |
259 | prefix_error=False, |
|
259 | prefix_error=False, | |
@@ -296,7 +296,7 b' class SettingsController(BaseController)' | |||||
296 | .get_personal_group_name_pattern() |
|
296 | .get_personal_group_name_pattern() | |
297 |
|
297 | |||
298 | return htmlfill.render( |
|
298 | return htmlfill.render( | |
299 |
render('admin/settings/settings. |
|
299 | render('admin/settings/settings.mako'), | |
300 | defaults=self._form_defaults(), |
|
300 | defaults=self._form_defaults(), | |
301 | encoding="UTF-8", |
|
301 | encoding="UTF-8", | |
302 | force_defaults=False) |
|
302 | force_defaults=False) | |
@@ -312,7 +312,7 b' class SettingsController(BaseController)' | |||||
312 | form_result = application_form.to_python(dict(request.POST)) |
|
312 | form_result = application_form.to_python(dict(request.POST)) | |
313 | except formencode.Invalid as errors: |
|
313 | except formencode.Invalid as errors: | |
314 | return htmlfill.render( |
|
314 | return htmlfill.render( | |
315 |
render('admin/settings/settings. |
|
315 | render('admin/settings/settings.mako'), | |
316 | defaults=errors.value, |
|
316 | defaults=errors.value, | |
317 | errors=errors.error_dict or {}, |
|
317 | errors=errors.error_dict or {}, | |
318 | prefix_error=False, |
|
318 | prefix_error=False, | |
@@ -360,7 +360,7 b' class SettingsController(BaseController)' | |||||
360 | c.active = 'visual' |
|
360 | c.active = 'visual' | |
361 |
|
361 | |||
362 | return htmlfill.render( |
|
362 | return htmlfill.render( | |
363 |
render('admin/settings/settings. |
|
363 | render('admin/settings/settings.mako'), | |
364 | defaults=self._form_defaults(), |
|
364 | defaults=self._form_defaults(), | |
365 | encoding="UTF-8", |
|
365 | encoding="UTF-8", | |
366 | force_defaults=False) |
|
366 | force_defaults=False) | |
@@ -406,7 +406,7 b' class SettingsController(BaseController)' | |||||
406 | 'desc': defaults.get('rhodecode_issuetracker_desc_' + uid), |
|
406 | 'desc': defaults.get('rhodecode_issuetracker_desc_' + uid), | |
407 | }) |
|
407 | }) | |
408 |
|
408 | |||
409 |
return render('admin/settings/settings. |
|
409 | return render('admin/settings/settings.mako') | |
410 |
|
410 | |||
411 | @HasPermissionAllDecorator('hg.admin') |
|
411 | @HasPermissionAllDecorator('hg.admin') | |
412 | @auth.CSRFRequired() |
|
412 | @auth.CSRFRequired() | |
@@ -469,7 +469,7 b' class SettingsController(BaseController)' | |||||
469 | c.rhodecode_ini = rhodecode.CONFIG |
|
469 | c.rhodecode_ini = rhodecode.CONFIG | |
470 |
|
470 | |||
471 | return htmlfill.render( |
|
471 | return htmlfill.render( | |
472 |
render('admin/settings/settings. |
|
472 | render('admin/settings/settings.mako'), | |
473 | defaults=self._form_defaults(), |
|
473 | defaults=self._form_defaults(), | |
474 | encoding="UTF-8", |
|
474 | encoding="UTF-8", | |
475 | force_defaults=False) |
|
475 | force_defaults=False) | |
@@ -526,7 +526,7 b' class SettingsController(BaseController)' | |||||
526 | c.custom_hooks = model.get_custom_hooks() |
|
526 | c.custom_hooks = model.get_custom_hooks() | |
527 |
|
527 | |||
528 | return htmlfill.render( |
|
528 | return htmlfill.render( | |
529 |
render('admin/settings/settings. |
|
529 | render('admin/settings/settings.mako'), | |
530 | defaults=self._form_defaults(), |
|
530 | defaults=self._form_defaults(), | |
531 | encoding="UTF-8", |
|
531 | encoding="UTF-8", | |
532 | force_defaults=False) |
|
532 | force_defaults=False) | |
@@ -541,7 +541,7 b' class SettingsController(BaseController)' | |||||
541 | searcher = searcher_from_config(config) |
|
541 | searcher = searcher_from_config(config) | |
542 | c.statistics = searcher.statistics() |
|
542 | c.statistics = searcher.statistics() | |
543 |
|
543 | |||
544 |
return render('admin/settings/settings. |
|
544 | return render('admin/settings/settings.mako') | |
545 |
|
545 | |||
546 | @HasPermissionAllDecorator('hg.admin') |
|
546 | @HasPermissionAllDecorator('hg.admin') | |
547 | def settings_system(self): |
|
547 | def settings_system(self): | |
@@ -635,12 +635,12 b' class SettingsController(BaseController)' | |||||
635 | if snapshot: |
|
635 | if snapshot: | |
636 | if c.allowed_to_snapshot: |
|
636 | if c.allowed_to_snapshot: | |
637 | c.data_items.pop(0) # remove server info |
|
637 | c.data_items.pop(0) # remove server info | |
638 |
return render('admin/settings/settings_system_snapshot. |
|
638 | return render('admin/settings/settings_system_snapshot.mako') | |
639 | else: |
|
639 | else: | |
640 | h.flash('You are not allowed to do this', category='warning') |
|
640 | h.flash('You are not allowed to do this', category='warning') | |
641 |
|
641 | |||
642 | return htmlfill.render( |
|
642 | return htmlfill.render( | |
643 |
render('admin/settings/settings. |
|
643 | render('admin/settings/settings.mako'), | |
644 | defaults=defaults, |
|
644 | defaults=defaults, | |
645 | encoding="UTF-8", |
|
645 | encoding="UTF-8", | |
646 | force_defaults=False) |
|
646 | force_defaults=False) | |
@@ -688,7 +688,7 b' class SettingsController(BaseController)' | |||||
688 | c.should_upgrade = True |
|
688 | c.should_upgrade = True | |
689 | c.important_notices = latest['general'] |
|
689 | c.important_notices = latest['general'] | |
690 |
|
690 | |||
691 |
return render('admin/settings/settings_system_update. |
|
691 | return render('admin/settings/settings_system_update.mako') | |
692 |
|
692 | |||
693 | @HasPermissionAllDecorator('hg.admin') |
|
693 | @HasPermissionAllDecorator('hg.admin') | |
694 | def settings_supervisor(self): |
|
694 | def settings_supervisor(self): | |
@@ -710,7 +710,7 b' class SettingsController(BaseController)' | |||||
710 | except Exception as e: |
|
710 | except Exception as e: | |
711 | c.connection_error = str(e) |
|
711 | c.connection_error = str(e) | |
712 | log.exception("Exception reading supervisor data") |
|
712 | log.exception("Exception reading supervisor data") | |
713 |
return render('admin/settings/settings. |
|
713 | return render('admin/settings/settings.mako') | |
714 |
|
714 | |||
715 | groupid = c.rhodecode_ini.get('supervisor.group_id') |
|
715 | groupid = c.rhodecode_ini.get('supervisor.group_id') | |
716 |
|
716 | |||
@@ -734,7 +734,7 b' class SettingsController(BaseController)' | |||||
734 | log.exception("Exception reading supervisor data") |
|
734 | log.exception("Exception reading supervisor data") | |
735 | c.supervisor_procs[k] = {'_rhodecode_error': str(e)} |
|
735 | c.supervisor_procs[k] = {'_rhodecode_error': str(e)} | |
736 |
|
736 | |||
737 |
return render('admin/settings/settings. |
|
737 | return render('admin/settings/settings.mako') | |
738 |
|
738 | |||
739 | @HasPermissionAllDecorator('hg.admin') |
|
739 | @HasPermissionAllDecorator('hg.admin') | |
740 | def settings_supervisor_log(self, procid): |
|
740 | def settings_supervisor_log(self, procid): | |
@@ -751,7 +751,7 b' class SettingsController(BaseController)' | |||||
751 | offset = abs(safe_int(request.GET.get('offset', c.log_size))) * -1 |
|
751 | offset = abs(safe_int(request.GET.get('offset', c.log_size))) * -1 | |
752 | c.log = supervisor.read_process_log(_connection, procid, offset, 0) |
|
752 | c.log = supervisor.read_process_log(_connection, procid, offset, 0) | |
753 |
|
753 | |||
754 |
return render('admin/settings/settings. |
|
754 | return render('admin/settings/settings.mako') | |
755 |
|
755 | |||
756 | @HasPermissionAllDecorator('hg.admin') |
|
756 | @HasPermissionAllDecorator('hg.admin') | |
757 | @auth.CSRFRequired() |
|
757 | @auth.CSRFRequired() | |
@@ -768,7 +768,7 b' class SettingsController(BaseController)' | |||||
768 | _('Some form inputs contain invalid data.'), |
|
768 | _('Some form inputs contain invalid data.'), | |
769 | category='error') |
|
769 | category='error') | |
770 | return htmlfill.render( |
|
770 | return htmlfill.render( | |
771 |
render('admin/settings/settings. |
|
771 | render('admin/settings/settings.mako'), | |
772 | defaults=errors.value, |
|
772 | defaults=errors.value, | |
773 | errors=errors.error_dict or {}, |
|
773 | errors=errors.error_dict or {}, | |
774 | prefix_error=False, |
|
774 | prefix_error=False, | |
@@ -795,7 +795,7 b' class SettingsController(BaseController)' | |||||
795 | return redirect(url('admin_settings_labs')) |
|
795 | return redirect(url('admin_settings_labs')) | |
796 |
|
796 | |||
797 | return htmlfill.render( |
|
797 | return htmlfill.render( | |
798 |
render('admin/settings/settings. |
|
798 | render('admin/settings/settings.mako'), | |
799 | defaults=self._form_defaults(), |
|
799 | defaults=self._form_defaults(), | |
800 | encoding='UTF-8', |
|
800 | encoding='UTF-8', | |
801 | force_defaults=False) |
|
801 | force_defaults=False) | |
@@ -811,7 +811,7 b' class SettingsController(BaseController)' | |||||
811 | c.lab_settings = _LAB_SETTINGS |
|
811 | c.lab_settings = _LAB_SETTINGS | |
812 |
|
812 | |||
813 | return htmlfill.render( |
|
813 | return htmlfill.render( | |
814 |
render('admin/settings/settings. |
|
814 | render('admin/settings/settings.mako'), | |
815 | defaults=self._form_defaults(), |
|
815 | defaults=self._form_defaults(), | |
816 | encoding='UTF-8', |
|
816 | encoding='UTF-8', | |
817 | force_defaults=False) |
|
817 | force_defaults=False) |
@@ -109,7 +109,7 b' class UserGroupsController(BaseControlle' | |||||
109 | # url('users_groups') |
|
109 | # url('users_groups') | |
110 |
|
110 | |||
111 | from rhodecode.lib.utils import PartialRenderer |
|
111 | from rhodecode.lib.utils import PartialRenderer | |
112 |
_render = PartialRenderer('data_table/_dt_elements. |
|
112 | _render = PartialRenderer('data_table/_dt_elements.mako') | |
113 |
|
113 | |||
114 | def user_group_name(user_group_id, user_group_name): |
|
114 | def user_group_name(user_group_id, user_group_name): | |
115 | return _render("user_group_name", user_group_id, user_group_name) |
|
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 | c.data = json.dumps(user_groups_data) |
|
138 | c.data = json.dumps(user_groups_data) | |
139 |
return render('admin/user_groups/user_groups. |
|
139 | return render('admin/user_groups/user_groups.mako') | |
140 |
|
140 | |||
141 | @HasPermissionAnyDecorator('hg.admin', 'hg.usergroup.create.true') |
|
141 | @HasPermissionAnyDecorator('hg.admin', 'hg.usergroup.create.true') | |
142 | @auth.CSRFRequired() |
|
142 | @auth.CSRFRequired() | |
@@ -167,7 +167,7 b' class UserGroupsController(BaseControlle' | |||||
167 | Session().commit() |
|
167 | Session().commit() | |
168 | except formencode.Invalid as errors: |
|
168 | except formencode.Invalid as errors: | |
169 | return htmlfill.render( |
|
169 | return htmlfill.render( | |
170 |
render('admin/user_groups/user_group_add. |
|
170 | render('admin/user_groups/user_group_add.mako'), | |
171 | defaults=errors.value, |
|
171 | defaults=errors.value, | |
172 | errors=errors.error_dict or {}, |
|
172 | errors=errors.error_dict or {}, | |
173 | prefix_error=False, |
|
173 | prefix_error=False, | |
@@ -185,7 +185,7 b' class UserGroupsController(BaseControlle' | |||||
185 | def new(self): |
|
185 | def new(self): | |
186 | """GET /user_groups/new: Form to create a new item""" |
|
186 | """GET /user_groups/new: Form to create a new item""" | |
187 | # url('new_users_group') |
|
187 | # url('new_users_group') | |
188 |
return render('admin/user_groups/user_group_add. |
|
188 | return render('admin/user_groups/user_group_add.mako') | |
189 |
|
189 | |||
190 | @HasUserGroupPermissionAnyDecorator('usergroup.admin') |
|
190 | @HasUserGroupPermissionAnyDecorator('usergroup.admin') | |
191 | @auth.CSRFRequired() |
|
191 | @auth.CSRFRequired() | |
@@ -224,7 +224,7 b' class UserGroupsController(BaseControlle' | |||||
224 | e = errors.error_dict or {} |
|
224 | e = errors.error_dict or {} | |
225 |
|
225 | |||
226 | return htmlfill.render( |
|
226 | return htmlfill.render( | |
227 |
render('admin/user_groups/user_group_edit. |
|
227 | render('admin/user_groups/user_group_edit.mako'), | |
228 | defaults=defaults, |
|
228 | defaults=defaults, | |
229 | errors=e, |
|
229 | errors=e, | |
230 | prefix_error=False, |
|
230 | prefix_error=False, | |
@@ -276,7 +276,7 b' class UserGroupsController(BaseControlle' | |||||
276 | defaults = self.__load_defaults(user_group_id) |
|
276 | defaults = self.__load_defaults(user_group_id) | |
277 |
|
277 | |||
278 | return htmlfill.render( |
|
278 | return htmlfill.render( | |
279 |
render('admin/user_groups/user_group_edit. |
|
279 | render('admin/user_groups/user_group_edit.mako'), | |
280 | defaults=defaults, |
|
280 | defaults=defaults, | |
281 | encoding="UTF-8", |
|
281 | encoding="UTF-8", | |
282 | force_defaults=False |
|
282 | force_defaults=False | |
@@ -299,7 +299,7 b' class UserGroupsController(BaseControlle' | |||||
299 | p.permission.permission_name}) |
|
299 | p.permission.permission_name}) | |
300 |
|
300 | |||
301 | return htmlfill.render( |
|
301 | return htmlfill.render( | |
302 |
render('admin/user_groups/user_group_edit. |
|
302 | render('admin/user_groups/user_group_edit.mako'), | |
303 | defaults=defaults, |
|
303 | defaults=defaults, | |
304 | encoding="UTF-8", |
|
304 | encoding="UTF-8", | |
305 | force_defaults=False |
|
305 | force_defaults=False | |
@@ -365,7 +365,7 b' class UserGroupsController(BaseControlle' | |||||
365 | permissions['repositories_groups'][gr.group.group_name] \ |
|
365 | permissions['repositories_groups'][gr.group.group_name] \ | |
366 | = gr.permission.permission_name |
|
366 | = gr.permission.permission_name | |
367 | c.permissions = permissions |
|
367 | c.permissions = permissions | |
368 |
return render('admin/user_groups/user_group_edit. |
|
368 | return render('admin/user_groups/user_group_edit.mako') | |
369 |
|
369 | |||
370 | @HasUserGroupPermissionAnyDecorator('usergroup.admin') |
|
370 | @HasUserGroupPermissionAnyDecorator('usergroup.admin') | |
371 | def edit_global_perms(self, user_group_id): |
|
371 | def edit_global_perms(self, user_group_id): | |
@@ -379,7 +379,7 b' class UserGroupsController(BaseControlle' | |||||
379 | defaults.update(c.user_group.get_default_perms()) |
|
379 | defaults.update(c.user_group.get_default_perms()) | |
380 |
|
380 | |||
381 | return htmlfill.render( |
|
381 | return htmlfill.render( | |
382 |
render('admin/user_groups/user_group_edit. |
|
382 | render('admin/user_groups/user_group_edit.mako'), | |
383 | defaults=defaults, |
|
383 | defaults=defaults, | |
384 | encoding="UTF-8", |
|
384 | encoding="UTF-8", | |
385 | force_defaults=False |
|
385 | force_defaults=False | |
@@ -425,7 +425,7 b' class UserGroupsController(BaseControlle' | |||||
425 | defaults = errors.value |
|
425 | defaults = errors.value | |
426 | c.user_group = user_group |
|
426 | c.user_group = user_group | |
427 | return htmlfill.render( |
|
427 | return htmlfill.render( | |
428 |
render('admin/user_groups/user_group_edit. |
|
428 | render('admin/user_groups/user_group_edit.mako'), | |
429 | defaults=defaults, |
|
429 | defaults=defaults, | |
430 | errors=errors.error_dict or {}, |
|
430 | errors=errors.error_dict or {}, | |
431 | prefix_error=False, |
|
431 | prefix_error=False, | |
@@ -456,7 +456,7 b' class UserGroupsController(BaseControlle' | |||||
456 | (x.group for x in c.user_group.users_group_repo_group_to_perm), |
|
456 | (x.group for x in c.user_group.users_group_repo_group_to_perm), | |
457 | key=lambda u: u.group_name.lower()) |
|
457 | key=lambda u: u.group_name.lower()) | |
458 |
|
458 | |||
459 |
return render('admin/user_groups/user_group_edit. |
|
459 | return render('admin/user_groups/user_group_edit.mako') | |
460 |
|
460 | |||
461 | @HasUserGroupPermissionAnyDecorator('usergroup.admin') |
|
461 | @HasUserGroupPermissionAnyDecorator('usergroup.admin') | |
462 | @XHRRequired() |
|
462 | @XHRRequired() |
@@ -82,7 +82,7 b' class UsersController(BaseController):' | |||||
82 | # url('users') |
|
82 | # url('users') | |
83 |
|
83 | |||
84 | from rhodecode.lib.utils import PartialRenderer |
|
84 | from rhodecode.lib.utils import PartialRenderer | |
85 |
_render = PartialRenderer('data_table/_dt_elements. |
|
85 | _render = PartialRenderer('data_table/_dt_elements.mako') | |
86 |
|
86 | |||
87 | def username(user_id, username): |
|
87 | def username(user_id, username): | |
88 | return _render("user_name", user_id, username) |
|
88 | return _render("user_name", user_id, username) | |
@@ -119,7 +119,7 b' class UsersController(BaseController):' | |||||
119 |
|
119 | |||
120 |
|
120 | |||
121 | c.data = json.dumps(users_data) |
|
121 | c.data = json.dumps(users_data) | |
122 |
return render('admin/users/users. |
|
122 | return render('admin/users/users.mako') | |
123 |
|
123 | |||
124 | def _get_personal_repo_group_template_vars(self): |
|
124 | def _get_personal_repo_group_template_vars(self): | |
125 | DummyUser = AttributeDict({ |
|
125 | DummyUser = AttributeDict({ | |
@@ -156,7 +156,7 b' class UsersController(BaseController):' | |||||
156 | except formencode.Invalid as errors: |
|
156 | except formencode.Invalid as errors: | |
157 | self._get_personal_repo_group_template_vars() |
|
157 | self._get_personal_repo_group_template_vars() | |
158 | return htmlfill.render( |
|
158 | return htmlfill.render( | |
159 |
render('admin/users/user_add. |
|
159 | render('admin/users/user_add.mako'), | |
160 | defaults=errors.value, |
|
160 | defaults=errors.value, | |
161 | errors=errors.error_dict or {}, |
|
161 | errors=errors.error_dict or {}, | |
162 | prefix_error=False, |
|
162 | prefix_error=False, | |
@@ -176,7 +176,7 b' class UsersController(BaseController):' | |||||
176 | # url('new_user') |
|
176 | # url('new_user') | |
177 | c.default_extern_type = auth_rhodecode.RhodeCodeAuthPlugin.name |
|
177 | c.default_extern_type = auth_rhodecode.RhodeCodeAuthPlugin.name | |
178 | self._get_personal_repo_group_template_vars() |
|
178 | self._get_personal_repo_group_template_vars() | |
179 |
return render('admin/users/user_add. |
|
179 | return render('admin/users/user_add.mako') | |
180 |
|
180 | |||
181 | @HasPermissionAllDecorator('hg.admin') |
|
181 | @HasPermissionAllDecorator('hg.admin') | |
182 | @auth.CSRFRequired() |
|
182 | @auth.CSRFRequired() | |
@@ -218,7 +218,7 b' class UsersController(BaseController):' | |||||
218 | e = errors.error_dict or {} |
|
218 | e = errors.error_dict or {} | |
219 |
|
219 | |||
220 | return htmlfill.render( |
|
220 | return htmlfill.render( | |
221 |
render('admin/users/user_edit. |
|
221 | render('admin/users/user_edit.mako'), | |
222 | defaults=defaults, |
|
222 | defaults=defaults, | |
223 | errors=e, |
|
223 | errors=e, | |
224 | prefix_error=False, |
|
224 | prefix_error=False, | |
@@ -414,7 +414,7 b' class UsersController(BaseController):' | |||||
414 | defaults = c.user.get_dict() |
|
414 | defaults = c.user.get_dict() | |
415 | defaults.update({'language': c.user.user_data.get('language')}) |
|
415 | defaults.update({'language': c.user.user_data.get('language')}) | |
416 | return htmlfill.render( |
|
416 | return htmlfill.render( | |
417 |
render('admin/users/user_edit. |
|
417 | render('admin/users/user_edit.mako'), | |
418 | defaults=defaults, |
|
418 | defaults=defaults, | |
419 | encoding="UTF-8", |
|
419 | encoding="UTF-8", | |
420 | force_defaults=False) |
|
420 | force_defaults=False) | |
@@ -446,7 +446,7 b' class UsersController(BaseController):' | |||||
446 | '"inactive" instead of deleting it.') if has_review else '' |
|
446 | '"inactive" instead of deleting it.') if has_review else '' | |
447 |
|
447 | |||
448 | return htmlfill.render( |
|
448 | return htmlfill.render( | |
449 |
render('admin/users/user_edit. |
|
449 | render('admin/users/user_edit.mako'), | |
450 | defaults=defaults, |
|
450 | defaults=defaults, | |
451 | encoding="UTF-8", |
|
451 | encoding="UTF-8", | |
452 | force_defaults=False) |
|
452 | force_defaults=False) | |
@@ -476,7 +476,7 b' class UsersController(BaseController):' | |||||
476 | c.user.user_id, show_expired=show_expired) |
|
476 | c.user.user_id, show_expired=show_expired) | |
477 | defaults = c.user.get_dict() |
|
477 | defaults = c.user.get_dict() | |
478 | return htmlfill.render( |
|
478 | return htmlfill.render( | |
479 |
render('admin/users/user_edit. |
|
479 | render('admin/users/user_edit.mako'), | |
480 | defaults=defaults, |
|
480 | defaults=defaults, | |
481 | encoding="UTF-8", |
|
481 | encoding="UTF-8", | |
482 | force_defaults=False) |
|
482 | force_defaults=False) | |
@@ -539,7 +539,7 b' class UsersController(BaseController):' | |||||
539 | defaults.update(c.user.get_default_perms()) |
|
539 | defaults.update(c.user.get_default_perms()) | |
540 |
|
540 | |||
541 | return htmlfill.render( |
|
541 | return htmlfill.render( | |
542 |
render('admin/users/user_edit. |
|
542 | render('admin/users/user_edit.mako'), | |
543 | defaults=defaults, |
|
543 | defaults=defaults, | |
544 | encoding="UTF-8", |
|
544 | encoding="UTF-8", | |
545 | force_defaults=False) |
|
545 | force_defaults=False) | |
@@ -584,7 +584,7 b' class UsersController(BaseController):' | |||||
584 | defaults = errors.value |
|
584 | defaults = errors.value | |
585 | c.user = user |
|
585 | c.user = user | |
586 | return htmlfill.render( |
|
586 | return htmlfill.render( | |
587 |
render('admin/users/user_edit. |
|
587 | render('admin/users/user_edit.mako'), | |
588 | defaults=defaults, |
|
588 | defaults=defaults, | |
589 | errors=errors.error_dict or {}, |
|
589 | errors=errors.error_dict or {}, | |
590 | prefix_error=False, |
|
590 | prefix_error=False, | |
@@ -607,7 +607,7 b' class UsersController(BaseController):' | |||||
607 | c.active = 'perms_summary' |
|
607 | c.active = 'perms_summary' | |
608 | c.perm_user = AuthUser(user_id=user_id, ip_addr=self.ip_addr) |
|
608 | c.perm_user = AuthUser(user_id=user_id, ip_addr=self.ip_addr) | |
609 |
|
609 | |||
610 |
return render('admin/users/user_edit. |
|
610 | return render('admin/users/user_edit.mako') | |
611 |
|
611 | |||
612 | @HasPermissionAllDecorator('hg.admin') |
|
612 | @HasPermissionAllDecorator('hg.admin') | |
613 | def edit_emails(self, user_id): |
|
613 | def edit_emails(self, user_id): | |
@@ -623,7 +623,7 b' class UsersController(BaseController):' | |||||
623 |
|
623 | |||
624 | defaults = c.user.get_dict() |
|
624 | defaults = c.user.get_dict() | |
625 | return htmlfill.render( |
|
625 | return htmlfill.render( | |
626 |
render('admin/users/user_edit. |
|
626 | render('admin/users/user_edit.mako'), | |
627 | defaults=defaults, |
|
627 | defaults=defaults, | |
628 | encoding="UTF-8", |
|
628 | encoding="UTF-8", | |
629 | force_defaults=False) |
|
629 | force_defaults=False) | |
@@ -685,7 +685,7 b' class UsersController(BaseController):' | |||||
685 |
|
685 | |||
686 | defaults = c.user.get_dict() |
|
686 | defaults = c.user.get_dict() | |
687 | return htmlfill.render( |
|
687 | return htmlfill.render( | |
688 |
render('admin/users/user_edit. |
|
688 | render('admin/users/user_edit.mako'), | |
689 | defaults=defaults, |
|
689 | defaults=defaults, | |
690 | encoding="UTF-8", |
|
690 | encoding="UTF-8", | |
691 | force_defaults=False) |
|
691 | force_defaults=False) |
@@ -34,8 +34,8 b' log = logging.getLogger(__name__)' | |||||
34 |
|
34 | |||
35 | class BookmarksController(BaseReferencesController): |
|
35 | class BookmarksController(BaseReferencesController): | |
36 |
|
36 | |||
37 |
partials_template = 'bookmarks/bookmarks_data. |
|
37 | partials_template = 'bookmarks/bookmarks_data.mako' | |
38 |
template = 'bookmarks/bookmarks. |
|
38 | template = 'bookmarks/bookmarks.mako' | |
39 |
|
39 | |||
40 | def __before__(self): |
|
40 | def __before__(self): | |
41 | super(BookmarksController, self).__before__() |
|
41 | super(BookmarksController, self).__before__() |
@@ -34,8 +34,8 b' log = logging.getLogger(__name__)' | |||||
34 |
|
34 | |||
35 | class BranchesController(BaseReferencesController): |
|
35 | class BranchesController(BaseReferencesController): | |
36 |
|
36 | |||
37 |
partials_template = 'branches/branches_data. |
|
37 | partials_template = 'branches/branches_data.mako' | |
38 |
template = 'branches/branches. |
|
38 | template = 'branches/branches.mako' | |
39 |
|
39 | |||
40 | def __before__(self): |
|
40 | def __before__(self): | |
41 | super(BranchesController, self).__before__() |
|
41 | super(BranchesController, self).__before__() |
@@ -193,7 +193,7 b' class ChangelogController(BaseRepoContro' | |||||
193 | if (request.environ.get('HTTP_X_PARTIAL_XHR') |
|
193 | if (request.environ.get('HTTP_X_PARTIAL_XHR') | |
194 | or request.environ.get('HTTP_X_PJAX')): |
|
194 | or request.environ.get('HTTP_X_PJAX')): | |
195 | # loading from ajax, we don't want the first result, it's popped |
|
195 | # loading from ajax, we don't want the first result, it's popped | |
196 |
return render('changelog/changelog_file_history. |
|
196 | return render('changelog/changelog_file_history.mako') | |
197 |
|
197 | |||
198 | if f_path: |
|
198 | if f_path: | |
199 | revs = [] |
|
199 | revs = [] | |
@@ -201,7 +201,7 b' class ChangelogController(BaseRepoContro' | |||||
201 | revs = c.pagination |
|
201 | revs = c.pagination | |
202 | self._graph(c.rhodecode_repo, revs) |
|
202 | self._graph(c.rhodecode_repo, revs) | |
203 |
|
203 | |||
204 |
return render('changelog/changelog. |
|
204 | return render('changelog/changelog.mako') | |
205 |
|
205 | |||
206 | @LoginRequired() |
|
206 | @LoginRequired() | |
207 | @HasRepoPermissionAnyDecorator('repository.read', 'repository.write', |
|
207 | @HasRepoPermissionAnyDecorator('repository.read', 'repository.write', | |
@@ -209,7 +209,7 b' class ChangelogController(BaseRepoContro' | |||||
209 | def changelog_details(self, commit_id): |
|
209 | def changelog_details(self, commit_id): | |
210 | if request.environ.get('HTTP_X_PARTIAL_XHR'): |
|
210 | if request.environ.get('HTTP_X_PARTIAL_XHR'): | |
211 | c.commit = c.rhodecode_repo.get_commit(commit_id=commit_id) |
|
211 | c.commit = c.rhodecode_repo.get_commit(commit_id=commit_id) | |
212 |
return render('changelog/changelog_details. |
|
212 | return render('changelog/changelog_details.mako') | |
213 | raise HTTPNotFound() |
|
213 | raise HTTPNotFound() | |
214 |
|
214 | |||
215 | @LoginRequired() |
|
215 | @LoginRequired() | |
@@ -218,5 +218,5 b' class ChangelogController(BaseRepoContro' | |||||
218 | def changelog_summary(self, repo_name): |
|
218 | def changelog_summary(self, repo_name): | |
219 | if request.environ.get('HTTP_X_PJAX'): |
|
219 | if request.environ.get('HTTP_X_PJAX'): | |
220 | _load_changelog_summary() |
|
220 | _load_changelog_summary() | |
221 |
return render('changelog/changelog_summary_data. |
|
221 | return render('changelog/changelog_summary_data.mako') | |
222 | raise HTTPNotFound() |
|
222 | raise HTTPNotFound() |
@@ -288,17 +288,17 b' class ChangesetController(BaseRepoContro' | |||||
288 | elif method == 'patch': |
|
288 | elif method == 'patch': | |
289 | response.content_type = 'text/plain' |
|
289 | response.content_type = 'text/plain' | |
290 | c.diff = safe_unicode(diff) |
|
290 | c.diff = safe_unicode(diff) | |
291 |
return render('changeset/patch_changeset. |
|
291 | return render('changeset/patch_changeset.mako') | |
292 | elif method == 'raw': |
|
292 | elif method == 'raw': | |
293 | response.content_type = 'text/plain' |
|
293 | response.content_type = 'text/plain' | |
294 | return diff |
|
294 | return diff | |
295 | elif method == 'show': |
|
295 | elif method == 'show': | |
296 | if len(c.commit_ranges) == 1: |
|
296 | if len(c.commit_ranges) == 1: | |
297 |
return render('changeset/changeset. |
|
297 | return render('changeset/changeset.mako') | |
298 | else: |
|
298 | else: | |
299 | c.ancestor = None |
|
299 | c.ancestor = None | |
300 | c.target_repo = c.rhodecode_db_repo |
|
300 | c.target_repo = c.rhodecode_db_repo | |
301 |
return render('changeset/changeset_range. |
|
301 | return render('changeset/changeset_range.mako') | |
302 |
|
302 | |||
303 | @LoginRequired() |
|
303 | @LoginRequired() | |
304 | @HasRepoPermissionAnyDecorator('repository.read', 'repository.write', |
|
304 | @HasRepoPermissionAnyDecorator('repository.read', 'repository.write', | |
@@ -390,7 +390,7 b' class ChangesetController(BaseRepoContro' | |||||
390 | if comment: |
|
390 | if comment: | |
391 | data.update(comment.get_dict()) |
|
391 | data.update(comment.get_dict()) | |
392 | data.update({'rendered_text': |
|
392 | data.update({'rendered_text': | |
393 |
render('changeset/changeset_comment_block. |
|
393 | render('changeset/changeset_comment_block.mako')}) | |
394 |
|
394 | |||
395 | return data |
|
395 | return data | |
396 |
|
396 |
@@ -92,7 +92,7 b' class CompareController(BaseRepoControll' | |||||
92 | c.commit_statuses = ChangesetStatus.STATUSES |
|
92 | c.commit_statuses = ChangesetStatus.STATUSES | |
93 | c.preview_mode = False |
|
93 | c.preview_mode = False | |
94 | c.file_path = None |
|
94 | c.file_path = None | |
95 |
return render('compare/compare_diff. |
|
95 | return render('compare/compare_diff.mako') | |
96 |
|
96 | |||
97 | @LoginRequired() |
|
97 | @LoginRequired() | |
98 | @HasRepoPermissionAnyDecorator('repository.read', 'repository.write', |
|
98 | @HasRepoPermissionAnyDecorator('repository.read', 'repository.write', | |
@@ -217,7 +217,7 b' class CompareController(BaseRepoControll' | |||||
217 | if partial: # for PR ajax commits loader |
|
217 | if partial: # for PR ajax commits loader | |
218 | if not c.ancestor: |
|
218 | if not c.ancestor: | |
219 | return '' # cannot merge if there is no ancestor |
|
219 | return '' # cannot merge if there is no ancestor | |
220 |
return render('compare/compare_commits. |
|
220 | return render('compare/compare_commits.mako') | |
221 |
|
221 | |||
222 | if c.ancestor: |
|
222 | if c.ancestor: | |
223 | # case we want a simple diff without incoming commits, |
|
223 | # case we want a simple diff without incoming commits, | |
@@ -279,4 +279,4 b' class CompareController(BaseRepoControll' | |||||
279 | c.source_commit = source_commit |
|
279 | c.source_commit = source_commit | |
280 | c.target_commit = target_commit |
|
280 | c.target_commit = target_commit | |
281 |
|
281 | |||
282 |
return render('compare/compare_diff. |
|
282 | return render('compare/compare_diff.mako') |
@@ -144,7 +144,7 b' class FilesController(BaseRepoController' | |||||
144 | log.debug('Generating cached file tree for %s, %s, %s', |
|
144 | log.debug('Generating cached file tree for %s, %s, %s', | |
145 | repo_name, commit_id, f_path) |
|
145 | repo_name, commit_id, f_path) | |
146 | c.full_load = full_load |
|
146 | c.full_load = full_load | |
147 |
return render('files/files_browser_tree. |
|
147 | return render('files/files_browser_tree.mako') | |
148 |
|
148 | |||
149 | cache_manager = self.__get_tree_cache_manager( |
|
149 | cache_manager = self.__get_tree_cache_manager( | |
150 | repo_name, caches.FILE_TREE) |
|
150 | repo_name, caches.FILE_TREE) | |
@@ -255,9 +255,9 b' class FilesController(BaseRepoController' | |||||
255 | raise HTTPNotFound() |
|
255 | raise HTTPNotFound() | |
256 |
|
256 | |||
257 | if request.environ.get('HTTP_X_PJAX'): |
|
257 | if request.environ.get('HTTP_X_PJAX'): | |
258 |
return render('files/files_pjax. |
|
258 | return render('files/files_pjax.mako') | |
259 |
|
259 | |||
260 |
return render('files/files. |
|
260 | return render('files/files.mako') | |
261 |
|
261 | |||
262 | @LoginRequired() |
|
262 | @LoginRequired() | |
263 | @HasRepoPermissionAnyDecorator('repository.read', 'repository.write', |
|
263 | @HasRepoPermissionAnyDecorator('repository.read', 'repository.write', | |
@@ -305,7 +305,7 b' class FilesController(BaseRepoController' | |||||
305 | c.authors.append(( |
|
305 | c.authors.append(( | |
306 | h.email(author), |
|
306 | h.email(author), | |
307 | h.person(author, 'username_or_name_or_email'))) |
|
307 | h.person(author, 'username_or_name_or_email'))) | |
308 |
return render('files/file_authors_box. |
|
308 | return render('files/file_authors_box.mako') | |
309 |
|
309 | |||
310 | @LoginRequired() |
|
310 | @LoginRequired() | |
311 | @HasRepoPermissionAnyDecorator('repository.read', 'repository.write', |
|
311 | @HasRepoPermissionAnyDecorator('repository.read', 'repository.write', | |
@@ -465,7 +465,7 b' class FilesController(BaseRepoController' | |||||
465 | 'Deleted file %s via RhodeCode Enterprise') % (f_path) |
|
465 | 'Deleted file %s via RhodeCode Enterprise') % (f_path) | |
466 | c.f_path = f_path |
|
466 | c.f_path = f_path | |
467 |
|
467 | |||
468 |
return render('files/files_delete. |
|
468 | return render('files/files_delete.mako') | |
469 |
|
469 | |||
470 | @CSRFRequired() |
|
470 | @CSRFRequired() | |
471 | @LoginRequired() |
|
471 | @LoginRequired() | |
@@ -574,7 +574,7 b' class FilesController(BaseRepoController' | |||||
574 | 'Edited file %s via RhodeCode Enterprise') % (f_path) |
|
574 | 'Edited file %s via RhodeCode Enterprise') % (f_path) | |
575 | c.f_path = f_path |
|
575 | c.f_path = f_path | |
576 |
|
576 | |||
577 |
return render('files/files_edit. |
|
577 | return render('files/files_edit.mako') | |
578 |
|
578 | |||
579 | def _is_valid_head(self, commit_id, repo): |
|
579 | def _is_valid_head(self, commit_id, repo): | |
580 | # check if commit is a branch identifier- basically we cannot |
|
580 | # check if commit is a branch identifier- basically we cannot | |
@@ -700,7 +700,7 b' class FilesController(BaseRepoController' | |||||
700 | c.default_message = (_('Added file via RhodeCode Enterprise')) |
|
700 | c.default_message = (_('Added file via RhodeCode Enterprise')) | |
701 | c.f_path = f_path |
|
701 | c.f_path = f_path | |
702 |
|
702 | |||
703 |
return render('files/files_add. |
|
703 | return render('files/files_add.mako') | |
704 |
|
704 | |||
705 | @LoginRequired() |
|
705 | @LoginRequired() | |
706 | @HasRepoPermissionAnyDecorator('repository.read', 'repository.write', |
|
706 | @HasRepoPermissionAnyDecorator('repository.read', 'repository.write', |
@@ -50,9 +50,9 b' class FollowersController(BaseRepoContro' | |||||
50 | .order_by(UserFollowing.follows_from) |
|
50 | .order_by(UserFollowing.follows_from) | |
51 | c.followers_pager = Page(d, page=p, items_per_page=20) |
|
51 | c.followers_pager = Page(d, page=p, items_per_page=20) | |
52 |
|
52 | |||
53 |
c.followers_data = render('/followers/followers_data. |
|
53 | c.followers_data = render('/followers/followers_data.mako') | |
54 |
|
54 | |||
55 | if request.environ.get('HTTP_X_PJAX'): |
|
55 | if request.environ.get('HTTP_X_PJAX'): | |
56 | return c.followers_data |
|
56 | return c.followers_data | |
57 |
|
57 | |||
58 |
return render('/followers/followers. |
|
58 | return render('/followers/followers.mako') |
@@ -122,12 +122,12 b' class ForksController(BaseRepoController' | |||||
122 | d.append(r) |
|
122 | d.append(r) | |
123 | c.forks_pager = Page(d, page=p, items_per_page=20) |
|
123 | c.forks_pager = Page(d, page=p, items_per_page=20) | |
124 |
|
124 | |||
125 |
c.forks_data = render('/forks/forks_data. |
|
125 | c.forks_data = render('/forks/forks_data.mako') | |
126 |
|
126 | |||
127 | if request.environ.get('HTTP_X_PJAX'): |
|
127 | if request.environ.get('HTTP_X_PJAX'): | |
128 | return c.forks_data |
|
128 | return c.forks_data | |
129 |
|
129 | |||
130 |
return render('/forks/forks. |
|
130 | return render('/forks/forks.mako') | |
131 |
|
131 | |||
132 | @LoginRequired() |
|
132 | @LoginRequired() | |
133 | @NotAnonymous() |
|
133 | @NotAnonymous() | |
@@ -144,7 +144,7 b' class ForksController(BaseRepoController' | |||||
144 | defaults = self.__load_data(repo_name) |
|
144 | defaults = self.__load_data(repo_name) | |
145 |
|
145 | |||
146 | return htmlfill.render( |
|
146 | return htmlfill.render( | |
147 |
render('forks/fork. |
|
147 | render('forks/fork.mako'), | |
148 | defaults=defaults, |
|
148 | defaults=defaults, | |
149 | encoding="UTF-8", |
|
149 | encoding="UTF-8", | |
150 | force_defaults=False |
|
150 | force_defaults=False | |
@@ -177,7 +177,7 b' class ForksController(BaseRepoController' | |||||
177 | except formencode.Invalid as errors: |
|
177 | except formencode.Invalid as errors: | |
178 | c.new_repo = errors.value['repo_name'] |
|
178 | c.new_repo = errors.value['repo_name'] | |
179 | return htmlfill.render( |
|
179 | return htmlfill.render( | |
180 |
render('forks/fork. |
|
180 | render('forks/fork.mako'), | |
181 | defaults=errors.value, |
|
181 | defaults=errors.value, | |
182 | errors=errors.error_dict or {}, |
|
182 | errors=errors.error_dict or {}, | |
183 | prefix_error=False, |
|
183 | prefix_error=False, |
@@ -97,7 +97,7 b' class HomeController(BaseController):' | |||||
97 | c.repos_data = json.dumps(repo_data) |
|
97 | c.repos_data = json.dumps(repo_data) | |
98 | c.repo_groups_data = json.dumps(repo_group_data) |
|
98 | c.repo_groups_data = json.dumps(repo_group_data) | |
99 |
|
99 | |||
100 |
return render('/index. |
|
100 | return render('/index.mako') | |
101 |
|
101 | |||
102 | @LoginRequired() |
|
102 | @LoginRequired() | |
103 | @HasRepoGroupPermissionAnyDecorator('group.read', 'group.write', |
|
103 | @HasRepoGroupPermissionAnyDecorator('group.read', 'group.write', | |
@@ -112,7 +112,7 b' class HomeController(BaseController):' | |||||
112 | c.repos_data = json.dumps(repo_data) |
|
112 | c.repos_data = json.dumps(repo_data) | |
113 | c.repo_groups_data = json.dumps(repo_group_data) |
|
113 | c.repo_groups_data = json.dumps(repo_group_data) | |
114 |
|
114 | |||
115 |
return render('index_repo_group. |
|
115 | return render('index_repo_group.mako') | |
116 |
|
116 | |||
117 | def _get_repo_list(self, name_contains=None, repo_type=None, limit=20): |
|
117 | def _get_repo_list(self, name_contains=None, repo_type=None, limit=20): | |
118 | query = Repository.query()\ |
|
118 | query = Repository.query()\ |
@@ -205,11 +205,11 b' class JournalController(BaseController):' | |||||
205 | c.journal_pager = Page(journal, page=p, items_per_page=20, url=url_generator) |
|
205 | c.journal_pager = Page(journal, page=p, items_per_page=20, url=url_generator) | |
206 | c.journal_day_aggreagate = self._get_daily_aggregate(c.journal_pager) |
|
206 | c.journal_day_aggreagate = self._get_daily_aggregate(c.journal_pager) | |
207 |
|
207 | |||
208 |
c.journal_data = render('journal/journal_data. |
|
208 | c.journal_data = render('journal/journal_data.mako') | |
209 | if request.is_xhr: |
|
209 | if request.is_xhr: | |
210 | return c.journal_data |
|
210 | return c.journal_data | |
211 |
|
211 | |||
212 |
return render('journal/journal. |
|
212 | return render('journal/journal.mako') | |
213 |
|
213 | |||
214 | @LoginRequired(auth_token_access=True) |
|
214 | @LoginRequired(auth_token_access=True) | |
215 | @NotAnonymous() |
|
215 | @NotAnonymous() | |
@@ -276,10 +276,10 b' class JournalController(BaseController):' | |||||
276 |
|
276 | |||
277 | c.journal_day_aggreagate = self._get_daily_aggregate(c.journal_pager) |
|
277 | c.journal_day_aggreagate = self._get_daily_aggregate(c.journal_pager) | |
278 |
|
278 | |||
279 |
c.journal_data = render('journal/journal_data. |
|
279 | c.journal_data = render('journal/journal_data.mako') | |
280 | if request.is_xhr: |
|
280 | if request.is_xhr: | |
281 | return c.journal_data |
|
281 | return c.journal_data | |
282 |
return render('journal/public_journal. |
|
282 | return render('journal/public_journal.mako') | |
283 |
|
283 | |||
284 | @LoginRequired(auth_token_access=True) |
|
284 | @LoginRequired(auth_token_access=True) | |
285 | def public_journal_atom(self): |
|
285 | def public_journal_atom(self): |
@@ -216,7 +216,7 b' class PullrequestsController(BaseRepoCon' | |||||
216 | if not request.is_xhr: |
|
216 | if not request.is_xhr: | |
217 | c.data = json.dumps(data['data']) |
|
217 | c.data = json.dumps(data['data']) | |
218 | c.records_total = data['recordsTotal'] |
|
218 | c.records_total = data['recordsTotal'] | |
219 |
return render('/pullrequests/pullrequests. |
|
219 | return render('/pullrequests/pullrequests.mako') | |
220 | else: |
|
220 | else: | |
221 | return json.dumps(data) |
|
221 | return json.dumps(data) | |
222 |
|
222 | |||
@@ -255,7 +255,7 b' class PullrequestsController(BaseRepoCon' | |||||
255 | opened_by=opened_by) |
|
255 | opened_by=opened_by) | |
256 |
|
256 | |||
257 | from rhodecode.lib.utils import PartialRenderer |
|
257 | from rhodecode.lib.utils import PartialRenderer | |
258 |
_render = PartialRenderer('data_table/_dt_elements. |
|
258 | _render = PartialRenderer('data_table/_dt_elements.mako') | |
259 | data = [] |
|
259 | data = [] | |
260 | for pr in pull_requests: |
|
260 | for pr in pull_requests: | |
261 | comments = ChangesetCommentsModel().get_all_comments( |
|
261 | comments = ChangesetCommentsModel().get_all_comments( | |
@@ -347,7 +347,7 b' class PullrequestsController(BaseRepoCon' | |||||
347 | } |
|
347 | } | |
348 | c.default_source_ref = selected_source_ref |
|
348 | c.default_source_ref = selected_source_ref | |
349 |
|
349 | |||
350 |
return render('/pullrequests/pullrequest. |
|
350 | return render('/pullrequests/pullrequest.mako') | |
351 |
|
351 | |||
352 | @LoginRequired() |
|
352 | @LoginRequired() | |
353 | @NotAnonymous() |
|
353 | @NotAnonymous() | |
@@ -852,7 +852,7 b' class PullrequestsController(BaseRepoCon' | |||||
852 |
|
852 | |||
853 | # this is a hack to properly display links, when creating PR, the |
|
853 | # this is a hack to properly display links, when creating PR, the | |
854 | # compare view and others uses different notation, and |
|
854 | # compare view and others uses different notation, and | |
855 |
# compare_commits. |
|
855 | # compare_commits.mako renders links based on the target_repo. | |
856 | # We need to swap that here to generate it properly on the html side |
|
856 | # We need to swap that here to generate it properly on the html side | |
857 | c.target_repo = c.source_repo |
|
857 | c.target_repo = c.source_repo | |
858 |
|
858 | |||
@@ -882,7 +882,7 b' class PullrequestsController(BaseRepoCon' | |||||
882 | c.changes, c.file_changes = self._get_pr_version_changes( |
|
882 | c.changes, c.file_changes = self._get_pr_version_changes( | |
883 | version, pull_request_latest) |
|
883 | version, pull_request_latest) | |
884 |
|
884 | |||
885 |
return render('/pullrequests/pullrequest_show. |
|
885 | return render('/pullrequests/pullrequest_show.mako') | |
886 |
|
886 | |||
887 | @LoginRequired() |
|
887 | @LoginRequired() | |
888 | @NotAnonymous() |
|
888 | @NotAnonymous() | |
@@ -985,7 +985,7 b' class PullrequestsController(BaseRepoCon' | |||||
985 | c.co = comm |
|
985 | c.co = comm | |
986 | data.update(comm.get_dict()) |
|
986 | data.update(comm.get_dict()) | |
987 | data.update({'rendered_text': |
|
987 | data.update({'rendered_text': | |
988 |
render('changeset/changeset_comment_block. |
|
988 | render('changeset/changeset_comment_block.mako')}) | |
989 |
|
989 | |||
990 | return data |
|
990 | return data | |
991 |
|
991 |
@@ -108,4 +108,4 b' class SearchController(BaseRepoControlle' | |||||
108 | c.cur_query = search_query |
|
108 | c.cur_query = search_query | |
109 | c.search_type = search_type |
|
109 | c.search_type = search_type | |
110 | # Return a rendered template |
|
110 | # Return a rendered template | |
111 |
return render('/search/search. |
|
111 | return render('/search/search.mako') |
@@ -165,7 +165,7 b' class SummaryController(BaseRepoControll' | |||||
165 | c.repo_name, c.rhodecode_user.user_id) |
|
165 | c.repo_name, c.rhodecode_user.user_id) | |
166 |
|
166 | |||
167 | if c.repository_requirements_missing: |
|
167 | if c.repository_requirements_missing: | |
168 |
return render('summary/missing_requirements. |
|
168 | return render('summary/missing_requirements.mako') | |
169 |
|
169 | |||
170 | c.readme_data, c.readme_file = \ |
|
170 | c.readme_data, c.readme_file = \ | |
171 | self.__get_readme_data(c.rhodecode_db_repo) |
|
171 | self.__get_readme_data(c.rhodecode_db_repo) | |
@@ -173,9 +173,9 b' class SummaryController(BaseRepoControll' | |||||
173 | _load_changelog_summary() |
|
173 | _load_changelog_summary() | |
174 |
|
174 | |||
175 | if request.is_xhr: |
|
175 | if request.is_xhr: | |
176 |
return render('changelog/changelog_summary_data. |
|
176 | return render('changelog/changelog_summary_data.mako') | |
177 |
|
177 | |||
178 |
return render('summary/summary. |
|
178 | return render('summary/summary.mako') | |
179 |
|
179 | |||
180 | @LoginRequired() |
|
180 | @LoginRequired() | |
181 | @XHRRequired() |
|
181 | @XHRRequired() |
@@ -31,8 +31,8 b' log = logging.getLogger(__name__)' | |||||
31 |
|
31 | |||
32 | class TagsController(BaseReferencesController): |
|
32 | class TagsController(BaseReferencesController): | |
33 |
|
33 | |||
34 |
partials_template = 'tags/tags_data. |
|
34 | partials_template = 'tags/tags_data.mako' | |
35 |
template = 'tags/tags. |
|
35 | template = 'tags/tags.mako' | |
36 |
|
36 | |||
37 | def _get_reference_items(self, repo): |
|
37 | def _get_reference_items(self, repo): | |
38 | return repo.tags.items() |
|
38 | return repo.tags.items() |
@@ -40,4 +40,4 b' class UsersController(BaseController):' | |||||
40 | raise HTTPNotFound() |
|
40 | raise HTTPNotFound() | |
41 |
|
41 | |||
42 | c.active = 'user_profile' |
|
42 | c.active = 'user_profile' | |
43 |
return render('users/user. |
|
43 | return render('users/user.mako') |
@@ -36,7 +36,7 b' def includeme(config):' | |||||
36 | ADMIN_PREFIX + '/integrations/new') |
|
36 | ADMIN_PREFIX + '/integrations/new') | |
37 | config.add_view('rhodecode.integrations.views.GlobalIntegrationsView', |
|
37 | config.add_view('rhodecode.integrations.views.GlobalIntegrationsView', | |
38 | attr='new_integration', |
|
38 | attr='new_integration', | |
39 |
renderer='rhodecode:templates/admin/integrations/new. |
|
39 | renderer='rhodecode:templates/admin/integrations/new.mako', | |
40 | request_method='GET', |
|
40 | request_method='GET', | |
41 | route_name='global_integrations_new') |
|
41 | route_name='global_integrations_new') | |
42 |
|
42 | |||
@@ -47,7 +47,7 b' def includeme(config):' | |||||
47 | for route_name in ['global_integrations_home', 'global_integrations_list']: |
|
47 | for route_name in ['global_integrations_home', 'global_integrations_list']: | |
48 | config.add_view('rhodecode.integrations.views.GlobalIntegrationsView', |
|
48 | config.add_view('rhodecode.integrations.views.GlobalIntegrationsView', | |
49 | attr='index', |
|
49 | attr='index', | |
50 |
renderer='rhodecode:templates/admin/integrations/list. |
|
50 | renderer='rhodecode:templates/admin/integrations/list.mako', | |
51 | request_method='GET', |
|
51 | request_method='GET', | |
52 | route_name=route_name) |
|
52 | route_name=route_name) | |
53 |
|
53 | |||
@@ -62,12 +62,12 b' def includeme(config):' | |||||
62 | for route_name in ['global_integrations_create', 'global_integrations_edit']: |
|
62 | for route_name in ['global_integrations_create', 'global_integrations_edit']: | |
63 | config.add_view('rhodecode.integrations.views.GlobalIntegrationsView', |
|
63 | config.add_view('rhodecode.integrations.views.GlobalIntegrationsView', | |
64 | attr='settings_get', |
|
64 | attr='settings_get', | |
65 |
renderer='rhodecode:templates/admin/integrations/form. |
|
65 | renderer='rhodecode:templates/admin/integrations/form.mako', | |
66 | request_method='GET', |
|
66 | request_method='GET', | |
67 | route_name=route_name) |
|
67 | route_name=route_name) | |
68 | config.add_view('rhodecode.integrations.views.GlobalIntegrationsView', |
|
68 | config.add_view('rhodecode.integrations.views.GlobalIntegrationsView', | |
69 | attr='settings_post', |
|
69 | attr='settings_post', | |
70 |
renderer='rhodecode:templates/admin/integrations/form. |
|
70 | renderer='rhodecode:templates/admin/integrations/form.mako', | |
71 | request_method='POST', |
|
71 | request_method='POST', | |
72 | route_name=route_name) |
|
72 | route_name=route_name) | |
73 |
|
73 | |||
@@ -89,7 +89,7 b' def includeme(config):' | |||||
89 | for route_name in ['repo_group_integrations_home', 'repo_group_integrations_list']: |
|
89 | for route_name in ['repo_group_integrations_home', 'repo_group_integrations_list']: | |
90 | config.add_view('rhodecode.integrations.views.RepoGroupIntegrationsView', |
|
90 | config.add_view('rhodecode.integrations.views.RepoGroupIntegrationsView', | |
91 | attr='index', |
|
91 | attr='index', | |
92 |
renderer='rhodecode:templates/admin/integrations/list. |
|
92 | renderer='rhodecode:templates/admin/integrations/list.mako', | |
93 | request_method='GET', |
|
93 | request_method='GET', | |
94 | route_name=route_name) |
|
94 | route_name=route_name) | |
95 |
|
95 | |||
@@ -101,7 +101,7 b' def includeme(config):' | |||||
101 | custom_predicates=(valid_repo_group,)) |
|
101 | custom_predicates=(valid_repo_group,)) | |
102 | config.add_view('rhodecode.integrations.views.RepoGroupIntegrationsView', |
|
102 | config.add_view('rhodecode.integrations.views.RepoGroupIntegrationsView', | |
103 | attr='new_integration', |
|
103 | attr='new_integration', | |
104 |
renderer='rhodecode:templates/admin/integrations/new. |
|
104 | renderer='rhodecode:templates/admin/integrations/new.mako', | |
105 | request_method='GET', |
|
105 | request_method='GET', | |
106 | route_name='repo_group_integrations_new') |
|
106 | route_name='repo_group_integrations_new') | |
107 |
|
107 | |||
@@ -120,12 +120,12 b' def includeme(config):' | |||||
120 | for route_name in ['repo_group_integrations_edit', 'repo_group_integrations_create']: |
|
120 | for route_name in ['repo_group_integrations_edit', 'repo_group_integrations_create']: | |
121 | config.add_view('rhodecode.integrations.views.RepoGroupIntegrationsView', |
|
121 | config.add_view('rhodecode.integrations.views.RepoGroupIntegrationsView', | |
122 | attr='settings_get', |
|
122 | attr='settings_get', | |
123 |
renderer='rhodecode:templates/admin/integrations/form. |
|
123 | renderer='rhodecode:templates/admin/integrations/form.mako', | |
124 | request_method='GET', |
|
124 | request_method='GET', | |
125 | route_name=route_name) |
|
125 | route_name=route_name) | |
126 | config.add_view('rhodecode.integrations.views.RepoGroupIntegrationsView', |
|
126 | config.add_view('rhodecode.integrations.views.RepoGroupIntegrationsView', | |
127 | attr='settings_post', |
|
127 | attr='settings_post', | |
128 |
renderer='rhodecode:templates/admin/integrations/form. |
|
128 | renderer='rhodecode:templates/admin/integrations/form.mako', | |
129 | request_method='POST', |
|
129 | request_method='POST', | |
130 | route_name=route_name) |
|
130 | route_name=route_name) | |
131 |
|
131 | |||
@@ -147,7 +147,7 b' def includeme(config):' | |||||
147 | config.add_view('rhodecode.integrations.views.RepoIntegrationsView', |
|
147 | config.add_view('rhodecode.integrations.views.RepoIntegrationsView', | |
148 | attr='index', |
|
148 | attr='index', | |
149 | request_method='GET', |
|
149 | request_method='GET', | |
150 |
renderer='rhodecode:templates/admin/integrations/list. |
|
150 | renderer='rhodecode:templates/admin/integrations/list.mako', | |
151 | route_name=route_name) |
|
151 | route_name=route_name) | |
152 |
|
152 | |||
153 | config.add_route('repo_integrations_new', |
|
153 | config.add_route('repo_integrations_new', | |
@@ -158,7 +158,7 b' def includeme(config):' | |||||
158 | custom_predicates=(valid_repo,)) |
|
158 | custom_predicates=(valid_repo,)) | |
159 | config.add_view('rhodecode.integrations.views.RepoIntegrationsView', |
|
159 | config.add_view('rhodecode.integrations.views.RepoIntegrationsView', | |
160 | attr='new_integration', |
|
160 | attr='new_integration', | |
161 |
renderer='rhodecode:templates/admin/integrations/new. |
|
161 | renderer='rhodecode:templates/admin/integrations/new.mako', | |
162 | request_method='GET', |
|
162 | request_method='GET', | |
163 | route_name='repo_integrations_new') |
|
163 | route_name='repo_integrations_new') | |
164 |
|
164 | |||
@@ -177,12 +177,12 b' def includeme(config):' | |||||
177 | for route_name in ['repo_integrations_edit', 'repo_integrations_create']: |
|
177 | for route_name in ['repo_integrations_edit', 'repo_integrations_create']: | |
178 | config.add_view('rhodecode.integrations.views.RepoIntegrationsView', |
|
178 | config.add_view('rhodecode.integrations.views.RepoIntegrationsView', | |
179 | attr='settings_get', |
|
179 | attr='settings_get', | |
180 |
renderer='rhodecode:templates/admin/integrations/form. |
|
180 | renderer='rhodecode:templates/admin/integrations/form.mako', | |
181 | request_method='GET', |
|
181 | request_method='GET', | |
182 | route_name=route_name) |
|
182 | route_name=route_name) | |
183 | config.add_view('rhodecode.integrations.views.RepoIntegrationsView', |
|
183 | config.add_view('rhodecode.integrations.views.RepoIntegrationsView', | |
184 | attr='settings_post', |
|
184 | attr='settings_post', | |
185 |
renderer='rhodecode:templates/admin/integrations/form. |
|
185 | renderer='rhodecode:templates/admin/integrations/form.mako', | |
186 | request_method='POST', |
|
186 | request_method='POST', | |
187 | route_name=route_name) |
|
187 | route_name=route_name) | |
188 |
|
188 |
@@ -2792,7 +2792,7 b' class CacheKey(Base, BaseModel):' | |||||
2792 | """ |
|
2792 | """ | |
2793 | get suffix that might have been used in _get_cache_key to |
|
2793 | get suffix that might have been used in _get_cache_key to | |
2794 | generate self.cache_key. Only used for informational purposes |
|
2794 | generate self.cache_key. Only used for informational purposes | |
2795 |
in repo_edit. |
|
2795 | in repo_edit.mako. | |
2796 | """ |
|
2796 | """ | |
2797 | # prefix, repo_name, suffix |
|
2797 | # prefix, repo_name, suffix | |
2798 | return self._cache_key_partition()[2] |
|
2798 | return self._cache_key_partition()[2] |
@@ -2784,7 +2784,7 b' class CacheKey(Base, BaseModel):' | |||||
2784 | """ |
|
2784 | """ | |
2785 | get suffix that might have been used in _get_cache_key to |
|
2785 | get suffix that might have been used in _get_cache_key to | |
2786 | generate self.cache_key. Only used for informational purposes |
|
2786 | generate self.cache_key. Only used for informational purposes | |
2787 |
in repo_edit. |
|
2787 | in repo_edit.mako. | |
2788 | """ |
|
2788 | """ | |
2789 | # prefix, repo_name, suffix |
|
2789 | # prefix, repo_name, suffix | |
2790 | return self._cache_key_partition()[2] |
|
2790 | return self._cache_key_partition()[2] |
@@ -2784,7 +2784,7 b' class CacheKey(Base, BaseModel):' | |||||
2784 | """ |
|
2784 | """ | |
2785 | get suffix that might have been used in _get_cache_key to |
|
2785 | get suffix that might have been used in _get_cache_key to | |
2786 | generate self.cache_key. Only used for informational purposes |
|
2786 | generate self.cache_key. Only used for informational purposes | |
2787 |
in repo_edit. |
|
2787 | in repo_edit.mako. | |
2788 | """ |
|
2788 | """ | |
2789 | # prefix, repo_name, suffix |
|
2789 | # prefix, repo_name, suffix | |
2790 | return self._cache_key_partition()[2] |
|
2790 | return self._cache_key_partition()[2] |
@@ -2788,7 +2788,7 b' class CacheKey(Base, BaseModel):' | |||||
2788 | """ |
|
2788 | """ | |
2789 | get suffix that might have been used in _get_cache_key to |
|
2789 | get suffix that might have been used in _get_cache_key to | |
2790 | generate self.cache_key. Only used for informational purposes |
|
2790 | generate self.cache_key. Only used for informational purposes | |
2791 |
in repo_edit. |
|
2791 | in repo_edit.mako. | |
2792 | """ |
|
2792 | """ | |
2793 | # prefix, repo_name, suffix |
|
2793 | # prefix, repo_name, suffix | |
2794 | return self._cache_key_partition()[2] |
|
2794 | return self._cache_key_partition()[2] |
@@ -2788,7 +2788,7 b' class CacheKey(Base, BaseModel):' | |||||
2788 | """ |
|
2788 | """ | |
2789 | get suffix that might have been used in _get_cache_key to |
|
2789 | get suffix that might have been used in _get_cache_key to | |
2790 | generate self.cache_key. Only used for informational purposes |
|
2790 | generate self.cache_key. Only used for informational purposes | |
2791 |
in repo_edit. |
|
2791 | in repo_edit.mako. | |
2792 | """ |
|
2792 | """ | |
2793 | # prefix, repo_name, suffix |
|
2793 | # prefix, repo_name, suffix | |
2794 | return self._cache_key_partition()[2] |
|
2794 | return self._cache_key_partition()[2] |
@@ -914,7 +914,7 b' def person_by_id(id_, show_attr="usernam' | |||||
914 |
|
914 | |||
915 | def gravatar_with_user(author, show_disabled=False): |
|
915 | def gravatar_with_user(author, show_disabled=False): | |
916 | from rhodecode.lib.utils import PartialRenderer |
|
916 | from rhodecode.lib.utils import PartialRenderer | |
917 |
_render = PartialRenderer('base/base. |
|
917 | _render = PartialRenderer('base/base.mako') | |
918 | return _render('gravatar_with_user', author, show_disabled=show_disabled) |
|
918 | return _render('gravatar_with_user', author, show_disabled=show_disabled) | |
919 |
|
919 | |||
920 |
|
920 |
@@ -903,7 +903,7 b' class PartialRenderer(object):' | |||||
903 | Partial renderer used to render chunks of html used in datagrids |
|
903 | Partial renderer used to render chunks of html used in datagrids | |
904 | use like:: |
|
904 | use like:: | |
905 |
|
905 | |||
906 |
_render = PartialRenderer('data_table/_dt_elements. |
|
906 | _render = PartialRenderer('data_table/_dt_elements.mako') | |
907 | _render('quick_menu', args, kwargs) |
|
907 | _render('quick_menu', args, kwargs) | |
908 | PartialRenderer.h, |
|
908 | PartialRenderer.h, | |
909 | c, |
|
909 | c, |
@@ -127,7 +127,7 b' class LoginView(object):' | |||||
127 |
|
127 | |||
128 | @view_config( |
|
128 | @view_config( | |
129 | route_name='login', request_method='GET', |
|
129 | route_name='login', request_method='GET', | |
130 |
renderer='rhodecode:templates/login. |
|
130 | renderer='rhodecode:templates/login.mako') | |
131 | def login(self): |
|
131 | def login(self): | |
132 | came_from = get_came_from(self.request) |
|
132 | came_from = get_came_from(self.request) | |
133 | user = self.request.user |
|
133 | user = self.request.user | |
@@ -153,7 +153,7 b' class LoginView(object):' | |||||
153 |
|
153 | |||
154 | @view_config( |
|
154 | @view_config( | |
155 | route_name='login', request_method='POST', |
|
155 | route_name='login', request_method='POST', | |
156 |
renderer='rhodecode:templates/login. |
|
156 | renderer='rhodecode:templates/login.mako') | |
157 | def login_post(self): |
|
157 | def login_post(self): | |
158 | came_from = get_came_from(self.request) |
|
158 | came_from = get_came_from(self.request) | |
159 | session = self.request.session |
|
159 | session = self.request.session | |
@@ -198,7 +198,7 b' class LoginView(object):' | |||||
198 | 'hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate') |
|
198 | 'hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate') | |
199 | @view_config( |
|
199 | @view_config( | |
200 | route_name='register', request_method='GET', |
|
200 | route_name='register', request_method='GET', | |
201 |
renderer='rhodecode:templates/register. |
|
201 | renderer='rhodecode:templates/register.mako',) | |
202 | def register(self, defaults=None, errors=None): |
|
202 | def register(self, defaults=None, errors=None): | |
203 | defaults = defaults or {} |
|
203 | defaults = defaults or {} | |
204 | errors = errors or {} |
|
204 | errors = errors or {} | |
@@ -224,7 +224,7 b' class LoginView(object):' | |||||
224 | 'hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate') |
|
224 | 'hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate') | |
225 | @view_config( |
|
225 | @view_config( | |
226 | route_name='register', request_method='POST', |
|
226 | route_name='register', request_method='POST', | |
227 |
renderer='rhodecode:templates/register. |
|
227 | renderer='rhodecode:templates/register.mako') | |
228 | def register_post(self): |
|
228 | def register_post(self): | |
229 | captcha = self._get_captcha_data() |
|
229 | captcha = self._get_captcha_data() | |
230 | auto_active = 'hg.register.auto_activate' in User.get_default_user()\ |
|
230 | auto_active = 'hg.register.auto_activate' in User.get_default_user()\ | |
@@ -275,7 +275,7 b' class LoginView(object):' | |||||
275 |
|
275 | |||
276 | @view_config( |
|
276 | @view_config( | |
277 | route_name='reset_password', request_method=('GET', 'POST'), |
|
277 | route_name='reset_password', request_method=('GET', 'POST'), | |
278 |
renderer='rhodecode:templates/password_reset. |
|
278 | renderer='rhodecode:templates/password_reset.mako') | |
279 | def password_reset(self): |
|
279 | def password_reset(self): | |
280 | captcha = self._get_captcha_data() |
|
280 | captcha = self._get_captcha_data() | |
281 |
|
281 |
@@ -2802,7 +2802,7 b' class CacheKey(Base, BaseModel):' | |||||
2802 | """ |
|
2802 | """ | |
2803 | get suffix that might have been used in _get_cache_key to |
|
2803 | get suffix that might have been used in _get_cache_key to | |
2804 | generate self.cache_key. Only used for informational purposes |
|
2804 | generate self.cache_key. Only used for informational purposes | |
2805 |
in repo_edit. |
|
2805 | in repo_edit.mako. | |
2806 | """ |
|
2806 | """ | |
2807 | # prefix, repo_name, suffix |
|
2807 | # prefix, repo_name, suffix | |
2808 | return self._cache_key_partition()[2] |
|
2808 | return self._cache_key_partition()[2] |
@@ -241,7 +241,7 b' class RepoModel(BaseModel):' | |||||
241 | super_user_actions=False): |
|
241 | super_user_actions=False): | |
242 |
|
242 | |||
243 | from rhodecode.lib.utils import PartialRenderer |
|
243 | from rhodecode.lib.utils import PartialRenderer | |
244 |
_render = PartialRenderer('data_table/_dt_elements. |
|
244 | _render = PartialRenderer('data_table/_dt_elements.mako') | |
245 | c = _render.c |
|
245 | c = _render.c | |
246 |
|
246 | |||
247 | def quick_menu(repo_name): |
|
247 | def quick_menu(repo_name): |
@@ -652,7 +652,7 b' class RepoGroupModel(BaseModel):' | |||||
652 | super_user_actions=False): |
|
652 | super_user_actions=False): | |
653 |
|
653 | |||
654 | from rhodecode.lib.utils import PartialRenderer |
|
654 | from rhodecode.lib.utils import PartialRenderer | |
655 |
_render = PartialRenderer('data_table/_dt_elements. |
|
655 | _render = PartialRenderer('data_table/_dt_elements.mako') | |
656 | c = _render.c |
|
656 | c = _render.c | |
657 | h = _render.h |
|
657 | h = _render.h | |
658 |
|
658 |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('Admin journal')} |
|
5 | ${_('Admin journal')} |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%namespace name="base" file="/base/base. |
|
2 | <%namespace name="base" file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | %if c.users_log: |
|
4 | %if c.users_log: | |
5 | <table class="rctable admin_log"> |
|
5 | <table class="rctable admin_log"> |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('Authentication Settings')} |
|
5 | ${_('Authentication Settings')} |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('Authentication Settings')} |
|
5 | ${_('Authentication Settings')} |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('Repositories defaults')} |
|
5 | ${_('Repositories defaults')} | |
@@ -33,7 +33,7 b'' | |||||
33 | </div> |
|
33 | </div> | |
34 |
|
34 | |||
35 | <div class="main-content-full-width"> |
|
35 | <div class="main-content-full-width"> | |
36 |
<%include file="/admin/defaults/defaults_${c.active}. |
|
36 | <%include file="/admin/defaults/defaults_${c.active}.mako"/> | |
37 | </div> |
|
37 | </div> | |
38 |
|
38 | |||
39 | </div> |
|
39 | </div> |
1 | NO CONTENT: file renamed from rhodecode/templates/admin/defaults/defaults_repositories.html to rhodecode/templates/admin/defaults/defaults_repositories.mako |
|
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 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('Edit Gist')} · ${c.gist.gist_access_id} |
|
5 | ${_('Edit Gist')} · ${c.gist.gist_access_id} |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | %if c.show_private: |
|
5 | %if c.show_private: |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('New Gist')} |
|
5 | ${_('New Gist')} |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="robots()"> |
|
4 | <%def name="robots()"> | |
5 | %if c.gist.gist_type != 'public': |
|
5 | %if c.gist.gist_type != 'public': |
@@ -2,11 +2,11 b'' | |||||
2 | <%! |
|
2 | <%! | |
3 | def inherit(context): |
|
3 | def inherit(context): | |
4 | if context['c'].repo: |
|
4 | if context['c'].repo: | |
5 |
return "/admin/repos/repo_edit. |
|
5 | return "/admin/repos/repo_edit.mako" | |
6 | elif context['c'].repo_group: |
|
6 | elif context['c'].repo_group: | |
7 |
return "/admin/repo_groups/repo_group_edit. |
|
7 | return "/admin/repo_groups/repo_group_edit.mako" | |
8 | else: |
|
8 | else: | |
9 |
return "/admin/settings/settings. |
|
9 | return "/admin/settings/settings.mako" | |
10 | %> |
|
10 | %> | |
11 | <%inherit file="${inherit(context)}" /> |
|
11 | <%inherit file="${inherit(context)}" /> | |
12 |
|
12 |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="base. |
|
2 | <%inherit file="base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="breadcrumbs_links()"> |
|
4 | <%def name="breadcrumbs_links()"> | |
5 | %if c.repo: |
|
5 | %if c.repo: |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="base. |
|
2 | <%inherit file="base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="breadcrumbs_links()"> |
|
4 | <%def name="breadcrumbs_links()"> | |
5 | %if c.repo: |
|
5 | %if c.repo: |
@@ -1,6 +1,6 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="base. |
|
2 | <%inherit file="base.mako"/> | |
3 |
<%namespace name="widgets" file="/widgets. |
|
3 | <%namespace name="widgets" file="/widgets.mako"/> | |
4 |
|
4 | |||
5 | <%def name="breadcrumbs_links()"> |
|
5 | <%def name="breadcrumbs_links()"> | |
6 | %if c.repo: |
|
6 | %if c.repo: |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('My account')} ${c.rhodecode_user.username} |
|
5 | ${_('My account')} ${c.rhodecode_user.username} | |
@@ -44,7 +44,7 b'' | |||||
44 | </div> |
|
44 | </div> | |
45 |
|
45 | |||
46 | <div class="main-content-full-width"> |
|
46 | <div class="main-content-full-width"> | |
47 |
<%include file="/admin/my_account/my_account_${c.active}. |
|
47 | <%include file="/admin/my_account/my_account_${c.active}.mako"/> | |
48 | </div> |
|
48 | </div> | |
49 | </div> |
|
49 | </div> | |
50 | </div> |
|
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 |
|
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. |
|
1 | <%namespace name="base" file="/base/base.mako"/> | |
2 |
|
2 | |||
3 | <div class="panel panel-default"> |
|
3 | <div class="panel panel-default"> | |
4 | <div class="panel-heading"> |
|
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 |
|
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. |
|
1 | <%namespace name="widgets" file="/widgets.mako"/> | |
2 |
|
2 | |||
3 | <%widgets:panel title="${_('Change Your Account Password')}"> |
|
3 | <%widgets:panel title="${_('Change Your Account Password')}"> | |
4 |
|
4 |
@@ -1,5 +1,5 b'' | |||||
1 | ## permissions overview |
|
1 | ## permissions overview | |
2 | <div id="perms_container"> |
|
2 | <div id="perms_container"> | |
3 |
<%namespace name="p" file="/base/perms_summary. |
|
3 | <%namespace name="p" file="/base/perms_summary.mako"/> | |
4 | ${p.perms_summary(c.perm_user.permissions, actions=False)} |
|
4 | ${p.perms_summary(c.perm_user.permissions, actions=False)} | |
5 | </div> |
|
5 | </div> |
@@ -1,4 +1,4 b'' | |||||
1 |
<%namespace name="base" file="/base/base. |
|
1 | <%namespace name="base" file="/base/base.mako"/> | |
2 | <div class="panel panel-default user-profile"> |
|
2 | <div class="panel panel-default user-profile"> | |
3 | <div class="panel-heading"> |
|
3 | <div class="panel-heading"> | |
4 | <h3 class="panel-title">${_('My Profile')}</h3> |
|
4 | <h3 class="panel-title">${_('My Profile')}</h3> |
@@ -1,4 +1,4 b'' | |||||
1 |
<%namespace name="base" file="/base/base. |
|
1 | <%namespace name="base" file="/base/base.mako"/> | |
2 | <div class="panel panel-default user-profile"> |
|
2 | <div class="panel panel-default user-profile"> | |
3 | <div class="panel-heading"> |
|
3 | <div class="panel-heading"> | |
4 | <h3 class="panel-title">${_('My Profile')}</h3> |
|
4 | <h3 class="panel-title">${_('My Profile')}</h3> |
@@ -1,4 +1,4 b'' | |||||
1 |
<%namespace name="base" file="/base/base. |
|
1 | <%namespace name="base" file="/base/base.mako"/> | |
2 |
|
2 | |||
3 | <div class="panel panel-default"> |
|
3 | <div class="panel panel-default"> | |
4 | <div class="panel-body"> |
|
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 |
|
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 |
|
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 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('My Notifications')} ${c.rhodecode_user.username} |
|
5 | ${_('My Notifications')} ${c.rhodecode_user.username} | |
@@ -40,7 +40,7 b'' | |||||
40 | </div> |
|
40 | </div> | |
41 | </div> |
|
41 | </div> | |
42 | <div id='notification_data' class='main-content-full'> |
|
42 | <div id='notification_data' class='main-content-full'> | |
43 |
<%include file='notifications_data. |
|
43 | <%include file='notifications_data.mako'/> | |
44 | </div> |
|
44 | </div> | |
45 | </div> |
|
45 | </div> | |
46 |
<script type="text/javascript"> |
|
46 | <script type="text/javascript"> |
@@ -1,4 +1,4 b'' | |||||
1 |
<%namespace name="base" file="/base/base. |
|
1 | <%namespace name="base" file="/base/base.mako"/> | |
2 | %if c.notifications: |
|
2 | %if c.notifications: | |
3 | <% |
|
3 | <% | |
4 | unread = lambda n:{False:'unread'}.get(n) |
|
4 | unread = lambda n:{False:'unread'}.get(n) |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('Show notification')} ${c.rhodecode_user.username} |
|
5 | ${_('Show notification')} ${c.rhodecode_user.username} |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('Permissions Administration')} |
|
5 | ${_('Permissions Administration')} | |
@@ -48,7 +48,7 b'' | |||||
48 | </div> |
|
48 | </div> | |
49 |
|
49 | |||
50 | <div class="main-content-full-width"> |
|
50 | <div class="main-content-full-width"> | |
51 |
<%include file="/admin/permissions/permissions_${c.active}. |
|
51 | <%include file="/admin/permissions/permissions_${c.active}.mako"/> | |
52 | </div> |
|
52 | </div> | |
53 | </div> |
|
53 | </div> | |
54 | </div> |
|
54 | </div> |
1 | NO CONTENT: file renamed from rhodecode/templates/admin/permissions/permissions_application.html to rhodecode/templates/admin/permissions/permissions_application.mako |
|
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 | <div class="form permissions-global"> |
|
3 | <div class="form permissions-global"> | |
4 | <!-- fields --> |
|
4 | <!-- fields --> | |
5 | <div class="fields"> |
|
5 | <div class="fields"> | |
6 |
<%namespace name="dpb" file="/base/default_perms_box. |
|
6 | <%namespace name="dpb" file="/base/default_perms_box.mako"/> | |
7 | ${dpb.default_perms_radios(global_permissions_template = True)} |
|
7 | ${dpb.default_perms_radios(global_permissions_template = True)} | |
8 | </div> |
|
8 | </div> | |
9 | </div> |
|
9 | </div> |
1 | NO CONTENT: file renamed from rhodecode/templates/admin/permissions/permissions_ips.html to rhodecode/templates/admin/permissions/permissions_ips.mako |
|
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 |
|
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 | <h2>${_('Default User Permissions Overview')}</h2> |
|
1 | <h2>${_('Default User Permissions Overview')}</h2> | |
2 |
|
2 | |||
3 | ## permissions overview |
|
3 | ## permissions overview | |
4 |
<%namespace name="p" file="/base/perms_summary. |
|
4 | <%namespace name="p" file="/base/perms_summary.mako"/> | |
5 | ${p.perms_summary(c.perm_user.permissions, show_all=True)} |
|
5 | ${p.perms_summary(c.perm_user.permissions, show_all=True)} |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('Add repository group')} |
|
5 | ${_('Add repository group')} |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('%s repository group settings') % c.repo_group.name} |
|
5 | ${_('%s repository group settings') % c.repo_group.name} | |
@@ -31,7 +31,7 b'' | |||||
31 | </%def> |
|
31 | </%def> | |
32 |
|
32 | |||
33 | <%def name="main_content()"> |
|
33 | <%def name="main_content()"> | |
34 |
<%include file="/admin/repo_groups/repo_group_edit_${c.active}. |
|
34 | <%include file="/admin/repo_groups/repo_group_edit_${c.active}.mako"/> | |
35 | </%def> |
|
35 | </%def> | |
36 |
|
36 | |||
37 | <%def name="main()"> |
|
37 | <%def name="main()"> |
@@ -1,4 +1,4 b'' | |||||
1 |
<%namespace name="base" file="/base/base. |
|
1 | <%namespace name="base" file="/base/base.mako"/> | |
2 |
|
2 | |||
3 | <% |
|
3 | <% | |
4 | elems = [ |
|
4 | elems = [ |
@@ -1,4 +1,4 b'' | |||||
1 |
<%namespace name="base" file="/base/base. |
|
1 | <%namespace name="base" file="/base/base.mako"/> | |
2 |
|
2 | |||
3 | <div class="panel panel-default"> |
|
3 | <div class="panel panel-default"> | |
4 | <div class="panel-heading"> |
|
4 | <div class="panel-heading"> |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%namespace name="base" file="/base/base. |
|
2 | <%namespace name="base" file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <div class="panel panel-default"> |
|
4 | <div class="panel panel-default"> | |
5 | <div class="panel-heading"> |
|
5 | <div class="panel-heading"> |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('Repository groups administration')} |
|
5 | ${_('Repository groups administration')} |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('Add repository')} |
|
5 | ${_('Add repository')} | |
@@ -32,6 +32,6 b'' | |||||
32 | <div class="title"> |
|
32 | <div class="title"> | |
33 | ${self.breadcrumbs()} |
|
33 | ${self.breadcrumbs()} | |
34 | </div> |
|
34 | </div> | |
35 |
<%include file="repo_add_base. |
|
35 | <%include file="repo_add_base.mako"/> | |
36 | </div> |
|
36 | </div> | |
37 | </%def> |
|
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 |
|
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 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('%s Creating repository') % c.repo_name} |
|
5 | ${_('%s Creating repository') % c.repo_name} |
@@ -2,7 +2,7 b'' | |||||
2 | ## |
|
2 | ## | |
3 | ## See also repo_settings.html |
|
3 | ## See also repo_settings.html | |
4 | ## |
|
4 | ## | |
5 |
<%inherit file="/base/base. |
|
5 | <%inherit file="/base/base.mako"/> | |
6 |
|
6 | |||
7 | <%def name="title()"> |
|
7 | <%def name="title()"> | |
8 | ${_('%s repository settings') % c.repo_info.repo_name} |
|
8 | ${_('%s repository settings') % c.repo_info.repo_name} | |
@@ -24,7 +24,7 b'' | |||||
24 | </%def> |
|
24 | </%def> | |
25 |
|
25 | |||
26 | <%def name="main_content()"> |
|
26 | <%def name="main_content()"> | |
27 |
<%include file="/admin/repos/repo_edit_${c.active}. |
|
27 | <%include file="/admin/repos/repo_edit_${c.active}.mako"/> | |
28 | </%def> |
|
28 | </%def> | |
29 |
|
29 | |||
30 |
|
30 |
@@ -1,4 +1,4 b'' | |||||
1 |
<%namespace name="base" file="/base/base. |
|
1 | <%namespace name="base" file="/base/base.mako"/> | |
2 |
|
2 | |||
3 | <% |
|
3 | <% | |
4 | elems = [ |
|
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 |
|
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 |
|
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 |
|
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. |
|
1 | <%namespace name="its" file="/base/issue_tracker_settings.mako"/> | |
2 |
|
2 | |||
3 | <div id="repo_issue_tracker" class="${'inherited' if c.settings_model.inherit_global_settings else ''}"> |
|
3 | <div id="repo_issue_tracker" class="${'inherited' if c.settings_model.inherit_global_settings else ''}"> | |
4 | ${h.secure_form(url('repo_issuetracker_save', repo_name=c.repo_name), method='post', id="inherit-form")} |
|
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. |
|
1 | <%namespace name="base" file="/base/base.mako"/> | |
2 |
|
2 | |||
3 | <div class="panel panel-default"> |
|
3 | <div class="panel panel-default"> | |
4 | <div class="panel-heading"> |
|
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 |
|
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 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%namespace name="base" file="/base/base. |
|
2 | <%namespace name="base" file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <div class="panel panel-default"> |
|
4 | <div class="panel panel-default"> | |
5 | <div class="panel-heading"> |
|
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 |
|
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. |
|
1 | <%namespace name="vcss" file="/base/vcs_settings.mako"/> | |
2 |
|
2 | |||
3 | <div id="repo_vcs_settings" class="${'inherited' if c.inherit_global_settings else ''}"> |
|
3 | <div id="repo_vcs_settings" class="${'inherited' if c.inherit_global_settings else ''}"> | |
4 | ${h.secure_form(url('repo_vcs_settings', repo_name=c.repo_info.repo_name), method='post')} |
|
4 | ${h.secure_form(url('repo_vcs_settings', repo_name=c.repo_info.repo_name), method='post')} |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('Repositories administration')} |
|
5 | ${_('Repositories administration')} |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('Settings administration')} |
|
5 | ${_('Settings administration')} | |
@@ -27,7 +27,7 b'' | |||||
27 | </%def> |
|
27 | </%def> | |
28 |
|
28 | |||
29 | <%def name="main_content()"> |
|
29 | <%def name="main_content()"> | |
30 |
<%include file="/admin/settings/settings_${c.active}. |
|
30 | <%include file="/admin/settings/settings_${c.active}.mako"/> | |
31 | </%def> |
|
31 | </%def> | |
32 |
|
32 | |||
33 | <%def name="main()"> |
|
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 |
|
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 |
|
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 |
|
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. |
|
1 | <%namespace name="its" file="/base/issue_tracker_settings.mako"/> | |
2 |
|
2 | |||
3 | <div class="panel panel-default"> |
|
3 | <div class="panel panel-default"> | |
4 | <div class="panel-heading"> |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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. |
|
1 | <%namespace name="vcss" file="/base/vcs_settings.mako"/> | |
2 |
|
2 | |||
3 | ${h.secure_form(url('admin_settings_vcs'), method='post')} |
|
3 | ${h.secure_form(url('admin_settings_vcs'), method='post')} | |
4 | <div> |
|
4 | <div> |
1 | NO CONTENT: file renamed from rhodecode/templates/admin/settings/settings_visual.html to rhodecode/templates/admin/settings/settings_visual.mako |
|
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 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('Add user group')} |
|
5 | ${_('Add user group')} |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('%s user group settings') % c.user_group.users_group_name} |
|
5 | ${_('%s user group settings') % c.user_group.users_group_name} | |
@@ -39,7 +39,7 b'' | |||||
39 | </div> |
|
39 | </div> | |
40 |
|
40 | |||
41 | <div class="main-content-full-width"> |
|
41 | <div class="main-content-full-width"> | |
42 |
<%include file="/admin/user_groups/user_group_edit_${c.active}. |
|
42 | <%include file="/admin/user_groups/user_group_edit_${c.active}.mako"/> | |
43 | </div> |
|
43 | </div> | |
44 | </div> |
|
44 | </div> | |
45 | </div> |
|
45 | </div> |
@@ -1,4 +1,4 b'' | |||||
1 |
<%namespace name="base" file="/base/base. |
|
1 | <%namespace name="base" file="/base/base.mako"/> | |
2 |
|
2 | |||
3 | <% |
|
3 | <% | |
4 | elems = [ |
|
4 | elems = [ |
@@ -1,3 +1,3 b'' | |||||
1 |
<%namespace name="dpb" file="/base/default_perms_box. |
|
1 | <%namespace name="dpb" file="/base/default_perms_box.mako"/> | |
2 | ${dpb.default_perms_box(url('edit_user_group_global_perms', user_group_id=c.user_group.users_group_id))} |
|
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. |
|
1 | <%namespace name="base" file="/base/base.mako"/> | |
2 |
|
2 | |||
3 | <div class="panel panel-default"> |
|
3 | <div class="panel panel-default"> | |
4 | <div class="panel-heading"> |
|
4 | <div class="panel-heading"> |
@@ -1,3 +1,3 b'' | |||||
1 | ## permissions overview |
|
1 | ## permissions overview | |
2 |
<%namespace name="p" file="/base/perms_summary. |
|
2 | <%namespace name="p" file="/base/perms_summary.mako"/> | |
3 | ${p.perms_summary(c.permissions)} |
|
3 | ${p.perms_summary(c.permissions)} |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%namespace name="base" file="/base/base. |
|
2 | <%namespace name="base" file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <div class="panel panel-default"> |
|
4 | <div class="panel panel-default"> | |
5 | <div class="panel-heading"> |
|
5 | <div class="panel-heading"> |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('User groups administration')} |
|
5 | ${_('User groups administration')} |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('Add user')} |
|
5 | ${_('Add user')} |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('%s user settings') % c.user.username} |
|
5 | ${_('%s user settings') % c.user.username} | |
@@ -41,7 +41,7 b'' | |||||
41 | </div> |
|
41 | </div> | |
42 |
|
42 | |||
43 | <div class="main-content-full-width"> |
|
43 | <div class="main-content-full-width"> | |
44 |
<%include file="/admin/users/user_edit_${c.active}. |
|
44 | <%include file="/admin/users/user_edit_${c.active}.mako"/> | |
45 | </div> |
|
45 | </div> | |
46 | </div> |
|
46 | </div> | |
47 | </div> |
|
47 | </div> |
@@ -1,4 +1,4 b'' | |||||
1 |
<%namespace name="base" file="/base/base. |
|
1 | <%namespace name="base" file="/base/base.mako"/> | |
2 |
|
2 | |||
3 | <% |
|
3 | <% | |
4 | elems = [ |
|
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 |
|
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. |
|
1 | <%namespace name="base" file="/base/base.mako"/> | |
2 |
|
2 | |||
3 | <div class="panel panel-default"> |
|
3 | <div class="panel panel-default"> | |
4 | <div class="panel-heading"> |
|
4 | <div class="panel-heading"> |
@@ -1,2 +1,2 b'' | |||||
1 |
<%namespace name="dpb" file="/base/default_perms_box. |
|
1 | <%namespace name="dpb" file="/base/default_perms_box.mako"/> | |
2 | ${dpb.default_perms_box(url('edit_user_global_perms', user_id=c.user.user_id))} |
|
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 |
|
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 | ## permissions overview |
|
1 | ## permissions overview | |
2 |
<%namespace name="p" file="/base/perms_summary. |
|
2 | <%namespace name="p" file="/base/perms_summary.mako"/> | |
3 | ${p.perms_summary(c.perm_user.permissions, show_all=True)} |
|
3 | ${p.perms_summary(c.perm_user.permissions, show_all=True)} |
@@ -1,4 +1,4 b'' | |||||
1 |
<%namespace name="base" file="/base/base. |
|
1 | <%namespace name="base" file="/base/base.mako"/> | |
2 |
|
2 | |||
3 | <div class="panel panel-default user-profile"> |
|
3 | <div class="panel panel-default user-profile"> | |
4 | <div class="panel-heading"> |
|
4 | <div class="panel-heading"> |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('Users administration')} |
|
5 | ${_('Users administration')} |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="root. |
|
2 | <%inherit file="root.mako"/> | |
3 |
|
3 | |||
4 | <div class="outerwrapper"> |
|
4 | <div class="outerwrapper"> | |
5 | <!-- HEADER --> |
|
5 | <!-- HEADER --> |
@@ -1,6 +1,6 b'' | |||||
1 | ## snippet for displaying default permission box |
|
1 | ## snippet for displaying default permission box | |
2 | ## usage: |
|
2 | ## usage: | |
3 |
## <%namespace name="dpb" file="/base/default_perms_box. |
|
3 | ## <%namespace name="dpb" file="/base/default_perms_box.mako"/> | |
4 | ## ${dpb.default_perms_box(<url_to_form>)} |
|
4 | ## ${dpb.default_perms_box(<url_to_form>)} | |
5 | ## ${dpb.default_perms_radios()} |
|
5 | ## ${dpb.default_perms_radios()} | |
6 |
|
6 |
@@ -1,6 +1,6 b'' | |||||
1 | ## snippet for displaying issue tracker settings |
|
1 | ## snippet for displaying issue tracker settings | |
2 | ## usage: |
|
2 | ## usage: | |
3 |
## <%namespace name="its" file="/base/issue_tracker_settings. |
|
3 | ## <%namespace name="its" file="/base/issue_tracker_settings.mako"/> | |
4 | ## ${its.issue_tracker_settings_table(patterns, form_url, delete_url)} |
|
4 | ## ${its.issue_tracker_settings_table(patterns, form_url, delete_url)} | |
5 | ## ${its.issue_tracker_settings_test(test_url)} |
|
5 | ## ${its.issue_tracker_settings_test(test_url)} | |
6 |
|
6 |
@@ -1,6 +1,6 b'' | |||||
1 | ## snippet for displaying permissions overview for users |
|
1 | ## snippet for displaying permissions overview for users | |
2 | ## usage: |
|
2 | ## usage: | |
3 |
## <%namespace name="p" file="/base/perms_summary. |
|
3 | ## <%namespace name="p" file="/base/perms_summary.mako"/> | |
4 | ## ${p.perms_summary(c.perm_user.permissions)} |
|
4 | ## ${p.perms_summary(c.perm_user.permissions)} | |
5 |
|
5 | |||
6 | <%def name="perms_summary(permissions, show_all=False, actions=True)"> |
|
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 |
|
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 | </script> |
|
118 | </script> | |
119 |
<%include file="/base/plugins_base. |
|
119 | <%include file="/base/plugins_base.mako"/> | |
120 | <!--[if lt IE 9]> |
|
120 | <!--[if lt IE 9]> | |
121 | <script language="javascript" type="text/javascript" src="${h.asset('js/excanvas.min.js')}"></script> |
|
121 | <script language="javascript" type="text/javascript" src="${h.asset('js/excanvas.min.js')}"></script> | |
122 | <![endif]--> |
|
122 | <![endif]--> |
@@ -1,6 +1,6 b'' | |||||
1 | ## snippet for displaying vcs settings |
|
1 | ## snippet for displaying vcs settings | |
2 | ## usage: |
|
2 | ## usage: | |
3 |
## <%namespace name="vcss" file="/base/vcssettings. |
|
3 | ## <%namespace name="vcss" file="/base/vcssettings.mako"/> | |
4 | ## ${vcss.vcs_settings_fields()} |
|
4 | ## ${vcss.vcs_settings_fields()} | |
5 |
|
5 | |||
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)"> |
|
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 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('%s Bookmarks') % c.repo_name} |
|
5 | ${_('%s Bookmarks') % c.repo_name} |
@@ -1,6 +1,6 b'' | |||||
1 | ## DATA TABLE RE USABLE ELEMENTS FOR BOOKMARKS |
|
1 | ## DATA TABLE RE USABLE ELEMENTS FOR BOOKMARKS | |
2 | ## usage: |
|
2 | ## usage: | |
3 |
## <%namespace name="bookmarks" file="/bookmarks/bookmarks_data. |
|
3 | ## <%namespace name="bookmarks" file="/bookmarks/bookmarks_data.mako"/> | |
4 | ## bookmarks.<func_name>(arg,arg2) |
|
4 | ## bookmarks.<func_name>(arg,arg2) | |
5 |
|
5 | |||
6 | <%def name="compare(commit_id)"> |
|
6 | <%def name="compare(commit_id)"> |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('%s Branches') % c.repo_name} |
|
5 | ${_('%s Branches') % c.repo_name} |
@@ -1,6 +1,6 b'' | |||||
1 | ## DATA TABLE RE USABLE ELEMENTS FOR BRANCHES |
|
1 | ## DATA TABLE RE USABLE ELEMENTS FOR BRANCHES | |
2 | ## usage: |
|
2 | ## usage: | |
3 |
## <%namespace name="branch" file="/branches/branches_data. |
|
3 | ## <%namespace name="branch" file="/branches/branches_data.mako"/> | |
4 | ## branch.<func_name>(arg,arg2) |
|
4 | ## branch.<func_name>(arg,arg2) | |
5 |
|
5 | |||
6 | <%def name="compare(commit_id)"> |
|
6 | <%def name="compare(commit_id)"> |
@@ -1,6 +1,6 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
|
2 | |||
3 |
<%inherit file="/base/base. |
|
3 | <%inherit file="/base/base.mako"/> | |
4 |
|
4 | |||
5 | <%def name="title()"> |
|
5 | <%def name="title()"> | |
6 | ${_('%s Changelog') % c.repo_name} |
|
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 |
|
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. |
|
1 | <%namespace name="base" file="/base/base.mako"/> | |
2 | <div class="table"> |
|
2 | <div class="table"> | |
3 |
|
3 | |||
4 | <table class="table rctable file_history"> |
|
4 | <table class="table rctable file_history"> |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%namespace name="base" file="/base/base. |
|
2 | <%namespace name="base" file="/base/base.mako"/> | |
3 | %if c.repo_commits: |
|
3 | %if c.repo_commits: | |
4 | <table class="rctable repo_summary table_disp"> |
|
4 | <table class="rctable repo_summary table_disp"> | |
5 | <tr> |
|
5 | <tr> |
@@ -1,7 +1,7 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
|
2 | |||
3 |
<%inherit file="/base/base. |
|
3 | <%inherit file="/base/base.mako"/> | |
4 |
<%namespace name="diff_block" file="/changeset/diff_block. |
|
4 | <%namespace name="diff_block" file="/changeset/diff_block.mako"/> | |
5 |
|
5 | |||
6 | <%def name="title()"> |
|
6 | <%def name="title()"> | |
7 | ${_('%s Commit') % c.repo_name} - ${h.show_id(c.commit)} |
|
7 | ${_('%s Commit') % c.repo_name} - ${h.show_id(c.commit)} | |
@@ -170,14 +170,14 b'' | |||||
170 | </div><!-- end sidebar --> |
|
170 | </div><!-- end sidebar --> | |
171 | </div> <!-- end summary --> |
|
171 | </div> <!-- end summary --> | |
172 | <div class="cs_files"> |
|
172 | <div class="cs_files"> | |
173 |
<%namespace name="cbdiffs" file="/codeblocks/diffs. |
|
173 | <%namespace name="cbdiffs" file="/codeblocks/diffs.mako"/> | |
174 | ${cbdiffs.render_diffset_menu()} |
|
174 | ${cbdiffs.render_diffset_menu()} | |
175 | ${cbdiffs.render_diffset( |
|
175 | ${cbdiffs.render_diffset( | |
176 | c.changes[c.commit.raw_id], commit=c.commit, use_comments=True)} |
|
176 | c.changes[c.commit.raw_id], commit=c.commit, use_comments=True)} | |
177 | </div> |
|
177 | </div> | |
178 |
|
178 | |||
179 | ## template for inline comment form |
|
179 | ## template for inline comment form | |
180 |
<%namespace name="comment" file="/changeset/changeset_file_comment. |
|
180 | <%namespace name="comment" file="/changeset/changeset_file_comment.mako"/> | |
181 |
|
181 | |||
182 | ## render comments |
|
182 | ## render comments | |
183 | ${comment.generate_comments()} |
|
183 | ${comment.generate_comments()} |
@@ -1,4 +1,4 b'' | |||||
1 | ## this is a dummy html file for partial rendering on server and sending |
|
1 | ## this is a dummy html file for partial rendering on server and sending | |
2 | ## generated output via ajax after comment submit |
|
2 | ## generated output via ajax after comment submit | |
3 |
<%namespace name="comment" file="/changeset/changeset_file_comment. |
|
3 | <%namespace name="comment" file="/changeset/changeset_file_comment.mako"/> | |
4 | ${comment.comment_block(c.co, inline=True)} |
|
4 | ${comment.comment_block(c.co, inline=True)} |
@@ -1,9 +1,9 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 | ## usage: |
|
2 | ## usage: | |
3 |
## <%namespace name="comment" file="/changeset/changeset_file_comment. |
|
3 | ## <%namespace name="comment" file="/changeset/changeset_file_comment.mako"/> | |
4 | ## ${comment.comment_block(comment)} |
|
4 | ## ${comment.comment_block(comment)} | |
5 | ## |
|
5 | ## | |
6 |
<%namespace name="base" file="/base/base. |
|
6 | <%namespace name="base" file="/base/base.mako"/> | |
7 |
|
7 | |||
8 | <%def name="comment_block(comment, inline=False)"> |
|
8 | <%def name="comment_block(comment, inline=False)"> | |
9 | <% outdated_at_ver = comment.outdated_at_version(getattr(c, 'at_version', None)) %> |
|
9 | <% outdated_at_ver = comment.outdated_at_version(getattr(c, 'at_version', None)) %> |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('%s Commits') % c.repo_name} - |
|
5 | ${_('%s Commits') % c.repo_name} - | |
@@ -107,11 +107,11 b'' | |||||
107 | </div> |
|
107 | </div> | |
108 | </div> |
|
108 | </div> | |
109 | ## Commit range generated below |
|
109 | ## Commit range generated below | |
110 |
<%include file="../compare/compare_commits. |
|
110 | <%include file="../compare/compare_commits.mako"/> | |
111 | <div class="cs_files"> |
|
111 | <div class="cs_files"> | |
112 |
<%namespace name="cbdiffs" file="/codeblocks/diffs. |
|
112 | <%namespace name="cbdiffs" file="/codeblocks/diffs.mako"/> | |
113 |
<%namespace name="comment" file="/changeset/changeset_file_comment. |
|
113 | <%namespace name="comment" file="/changeset/changeset_file_comment.mako"/> | |
114 |
<%namespace name="diff_block" file="/changeset/diff_block. |
|
114 | <%namespace name="diff_block" file="/changeset/diff_block.mako"/> | |
115 | ${cbdiffs.render_diffset_menu()} |
|
115 | ${cbdiffs.render_diffset_menu()} | |
116 | %for commit in c.commit_ranges: |
|
116 | %for commit in c.commit_ranges: | |
117 | ${cbdiffs.render_diffset( |
|
117 | ${cbdiffs.render_diffset( |
@@ -1,6 +1,6 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 | ##usage: |
|
2 | ##usage: | |
3 |
## <%namespace name="diff_block" file="/changeset/diff_block. |
|
3 | ## <%namespace name="diff_block" file="/changeset/diff_block.mako"/> | |
4 | ## ${diff_block.diff_block_changeset_table(change)} |
|
4 | ## ${diff_block.diff_block_changeset_table(change)} | |
5 | ## |
|
5 | ## | |
6 | <%def name="changeset_message()"> |
|
6 | <%def name="changeset_message()"> |
1 | NO CONTENT: file renamed from rhodecode/templates/changeset/patch_changeset.html to rhodecode/templates/changeset/patch_changeset.mako |
|
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 |
|
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 | </%def> |
|
508 | </%def> | |
509 |
|
509 | |||
510 |
|
510 | |||
511 |
<%namespace name="commentblock" file="/changeset/changeset_file_comment. |
|
511 | <%namespace name="commentblock" file="/changeset/changeset_file_comment.mako"/> | |
512 | <%def name="inline_comments_container(comments)"> |
|
512 | <%def name="inline_comments_container(comments)"> | |
513 | <div class="inline-comments"> |
|
513 | <div class="inline-comments"> | |
514 | %for comment in comments: |
|
514 | %for comment in comments: |
1 | NO CONTENT: file renamed from rhodecode/templates/codeblocks/source.html to rhodecode/templates/codeblocks/source.mako |
|
NO CONTENT: file renamed from rhodecode/templates/codeblocks/source.html to rhodecode/templates/codeblocks/source.mako |
@@ -1,5 +1,5 b'' | |||||
1 | ## Changesets table ! |
|
1 | ## Changesets table ! | |
2 |
<%namespace name="base" file="/base/base. |
|
2 | <%namespace name="base" file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | %if c.ancestor: |
|
4 | %if c.ancestor: | |
5 | <div class="ancestor">${_('Common Ancestor Commit')}: |
|
5 | <div class="ancestor">${_('Common Ancestor Commit')}: |
@@ -1,6 +1,6 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
<%namespace name="cbdiffs" file="/codeblocks/diffs. |
|
3 | <%namespace name="cbdiffs" file="/codeblocks/diffs.mako"/> | |
4 |
|
4 | |||
5 | <%def name="title()"> |
|
5 | <%def name="title()"> | |
6 | %if c.compare_home: |
|
6 | %if c.compare_home: | |
@@ -159,7 +159,7 b'' | |||||
159 | ${_('Commit status')}: |
|
159 | ${_('Commit status')}: | |
160 | </div> |
|
160 | </div> | |
161 | <div class="right-content"> |
|
161 | <div class="right-content"> | |
162 |
<%namespace name="comment" file="/changeset/changeset_file_comment. |
|
162 | <%namespace name="comment" file="/changeset/changeset_file_comment.mako"/> | |
163 | ## main comment form and it status |
|
163 | ## main comment form and it status | |
164 | <% |
|
164 | <% | |
165 | def revs(_revs): |
|
165 | def revs(_revs): | |
@@ -365,7 +365,7 b'' | |||||
365 | </div> |
|
365 | </div> | |
366 | <div style="padding:0 10px 10px 0px" class="pull-left"></div> |
|
366 | <div style="padding:0 10px 10px 0px" class="pull-left"></div> | |
367 | ## commit compare generated below |
|
367 | ## commit compare generated below | |
368 |
<%include file="compare_commits. |
|
368 | <%include file="compare_commits.mako"/> | |
369 | ${cbdiffs.render_diffset_menu()} |
|
369 | ${cbdiffs.render_diffset_menu()} | |
370 | ${cbdiffs.render_diffset(c.diffset)} |
|
370 | ${cbdiffs.render_diffset(c.diffset)} | |
371 | </div> |
|
371 | </div> |
@@ -1,7 +1,7 b'' | |||||
1 | ## DATA TABLE RE USABLE ELEMENTS |
|
1 | ## DATA TABLE RE USABLE ELEMENTS | |
2 | ## usage: |
|
2 | ## usage: | |
3 |
## <%namespace name="dt" file="/data_table/_dt_elements. |
|
3 | ## <%namespace name="dt" file="/data_table/_dt_elements.mako"/> | |
4 |
<%namespace name="base" file="/base/base. |
|
4 | <%namespace name="base" file="/base/base.mako"/> | |
5 |
|
5 | |||
6 | ## REPOSITORY RENDERERS |
|
6 | ## REPOSITORY RENDERERS | |
7 | <%def name="quick_menu(repo_name)"> |
|
7 | <%def name="quick_menu(repo_name)"> |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%namespace name="base" file="/base/base. |
|
2 | <%namespace name="base" file="/base/base.mako"/> | |
3 | <%inherit file="/debug_style/index.html"/> |
|
3 | <%inherit file="/debug_style/index.html"/> | |
4 |
|
4 | |||
5 | <%def name="breadcrumbs_links()"> |
|
5 | <%def name="breadcrumbs_links()"> |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('Debug Style')} |
|
5 | ${_('Debug Style')} |
@@ -6,4 +6,4 b'' | |||||
6 | %> |
|
6 | %> | |
7 |
|
7 | |||
8 | ## Include the original file here for easy operation |
|
8 | ## Include the original file here for easy operation | |
9 |
<%include file="/login. |
|
9 | <%include file="/login.mako" /> |
1 | NO CONTENT: file renamed from rhodecode/templates/errors/error_document.html to rhodecode/templates/errors/error_document.mako |
|
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 |
|
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. |
|
1 | <%namespace name="base" file="/base/base.mako"/> | |
2 |
|
2 | |||
3 | <div class="summary-detail-header"> |
|
3 | <div class="summary-detail-header"> | |
4 | <h4 class="item"> |
|
4 | <h4 class="item"> |
@@ -1,4 +1,4 b'' | |||||
1 |
<%namespace name="base" file="/base/base. |
|
1 | <%namespace name="base" file="/base/base.mako"/> | |
2 |
|
2 | |||
3 | <div class="summary-detail-header"> |
|
3 | <div class="summary-detail-header"> | |
4 | <h4 class="item"> |
|
4 | <h4 class="item"> |
@@ -1,4 +1,4 b'' | |||||
1 |
<%namespace name="file_base" file="/files/base. |
|
1 | <%namespace name="file_base" file="/files/base.mako"/> | |
2 |
|
2 | |||
3 | <div class="fieldset collapsable-content no-hide" data-toggle="summary-details"> |
|
3 | <div class="fieldset collapsable-content no-hide" data-toggle="summary-details"> | |
4 | <div class="left-label"> |
|
4 | <div class="left-label"> |
@@ -1,4 +1,4 b'' | |||||
1 |
<%inherit file="/base/base. |
|
1 | <%inherit file="/base/base.mako"/> | |
2 |
|
2 | |||
3 | <%def name="title(*args)"> |
|
3 | <%def name="title(*args)"> | |
4 | ${_('%s Files') % c.repo_name} |
|
4 | ${_('%s Files') % c.repo_name} | |
@@ -33,7 +33,7 b'' | |||||
33 |
|
33 | |||
34 | <div id="pjax-container" class="summary"> |
|
34 | <div id="pjax-container" class="summary"> | |
35 | <div id="files_data"> |
|
35 | <div id="files_data"> | |
36 |
<%include file='files_pjax. |
|
36 | <%include file='files_pjax.mako'/> | |
37 | </div> |
|
37 | </div> | |
38 | </div> |
|
38 | </div> | |
39 |
<script> |
|
39 | <script> |
@@ -1,4 +1,4 b'' | |||||
1 |
<%inherit file="/base/base. |
|
1 | <%inherit file="/base/base.mako"/> | |
2 |
|
2 | |||
3 | <%def name="title()"> |
|
3 | <%def name="title()"> | |
4 | ${_('%s Files Add') % c.repo_name} |
|
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 |
|
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 |
|
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. |
|
1 | <%inherit file="/base/base.mako"/> | |
2 |
|
2 | |||
3 | <%def name="title()"> |
|
3 | <%def name="title()"> | |
4 | ${_('%s Files Delete') % c.repo_name} |
|
4 | ${_('%s Files Delete') % c.repo_name} |
@@ -1,4 +1,4 b'' | |||||
1 |
<%namespace name="file_base" file="/files/base. |
|
1 | <%namespace name="file_base" file="/files/base.mako"/> | |
2 |
|
2 | |||
3 | <div class="fieldset collapsable-content no-hide" data-toggle="summary-details"> |
|
3 | <div class="fieldset collapsable-content no-hide" data-toggle="summary-details"> | |
4 | <div class="left-label"> |
|
4 | <div class="left-label"> |
@@ -1,4 +1,4 b'' | |||||
1 |
<%inherit file="/base/base. |
|
1 | <%inherit file="/base/base.mako"/> | |
2 |
|
2 | |||
3 | <%def name="title()"> |
|
3 | <%def name="title()"> | |
4 | ${_('%s File Edit') % c.repo_name} |
|
4 | ${_('%s File Edit') % c.repo_name} |
@@ -28,9 +28,9 b'' | |||||
28 | % if c.file.is_submodule(): |
|
28 | % if c.file.is_submodule(): | |
29 | <span class="submodule-dir">Submodule ${h.escape(c.file.name)}</span> |
|
29 | <span class="submodule-dir">Submodule ${h.escape(c.file.name)}</span> | |
30 | % elif c.file.is_dir(): |
|
30 | % elif c.file.is_dir(): | |
31 |
<%include file='file_tree_detail. |
|
31 | <%include file='file_tree_detail.mako'/> | |
32 | % else: |
|
32 | % else: | |
33 |
<%include file='files_detail. |
|
33 | <%include file='files_detail.mako'/> | |
34 | % endif |
|
34 | % endif | |
35 |
|
35 | |||
36 | </div> <!--end summary-detail--> |
|
36 | </div> <!--end summary-detail--> | |
@@ -40,16 +40,16 b'' | |||||
40 | </script> |
|
40 | </script> | |
41 | % if c.file.is_dir(): |
|
41 | % if c.file.is_dir(): | |
42 | <div id="commit-stats" class="sidebar-right"> |
|
42 | <div id="commit-stats" class="sidebar-right"> | |
43 |
<%include file='file_tree_author_box. |
|
43 | <%include file='file_tree_author_box.mako'/> | |
44 | </div> |
|
44 | </div> | |
45 |
|
45 | |||
46 |
<%include file='files_browser. |
|
46 | <%include file='files_browser.mako'/> | |
47 | % else: |
|
47 | % else: | |
48 | <div id="file_authors" class="sidebar-right"> |
|
48 | <div id="file_authors" class="sidebar-right"> | |
49 |
<%include file='file_authors_box. |
|
49 | <%include file='file_authors_box.mako'/> | |
50 | </div> |
|
50 | </div> | |
51 |
|
51 | |||
52 |
<%include file='files_source. |
|
52 | <%include file='files_source.mako'/> | |
53 | % endif |
|
53 | % endif | |
54 |
|
54 | |||
55 | </div> No newline at end of file |
|
55 | </div> |
@@ -1,4 +1,4 b'' | |||||
1 |
<%namespace name="sourceblock" file="/codeblocks/source. |
|
1 | <%namespace name="sourceblock" file="/codeblocks/source.mako"/> | |
2 |
|
2 | |||
3 | <div id="codeblock" class="codeblock"> |
|
3 | <div id="codeblock" class="codeblock"> | |
4 | <div class="codeblock-header"> |
|
4 | <div class="codeblock-header"> |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('%s Followers') % c.repo_name} |
|
5 | ${_('%s Followers') % c.repo_name} |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%namespace name="base" file="/base/base. |
|
2 | <%namespace name="base" file="/base/base.mako"/> | |
3 | <table class="rctable followers_data"> |
|
3 | <table class="rctable followers_data"> | |
4 | <tr> |
|
4 | <tr> | |
5 | <th>${_('Follower Name')}</th> |
|
5 | <th>${_('Follower Name')}</th> |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('Fork repository %s') % c.repo_name} |
|
5 | ${_('Fork repository %s') % c.repo_name} |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('%s Forks') % c.repo_name} |
|
5 | ${_('%s Forks') % c.repo_name} |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%namespace name="base" file="/base/base. |
|
2 | <%namespace name="base" file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | % if c.forks_pager: |
|
4 | % if c.forks_pager: | |
5 | <table class="rctable fork_summary"> |
|
5 | <table class="rctable fork_summary"> |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="index_base. |
|
2 | <%inherit file="index_base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('Dashboard')} |
|
5 | ${_('Dashboard')} |
@@ -1,4 +1,4 b'' | |||||
1 |
<%inherit file="/base/base. |
|
1 | <%inherit file="/base/base.mako"/> | |
2 |
|
2 | |||
3 | <%def name="main()"> |
|
3 | <%def name="main()"> | |
4 | <div class="box"> |
|
4 | <div class="box"> |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="index_base. |
|
2 | <%inherit file="index_base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('%s Repository group dashboard') % c.repo_group.group_name} |
|
5 | ${_('%s Repository group dashboard') % c.repo_group.group_name} |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 | <%def name="title()"> |
|
3 | <%def name="title()"> | |
4 | ${_('Journal')} |
|
4 | ${_('Journal')} | |
5 | %if c.rhodecode_name: |
|
5 | %if c.rhodecode_name: |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%namespace name="base" file="/base/base. |
|
2 | <%namespace name="base" file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | %if c.journal_day_aggreagate: |
|
4 | %if c.journal_day_aggreagate: | |
5 | %for day,items in c.journal_day_aggreagate: |
|
5 | %for day,items in c.journal_day_aggreagate: |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 | <%def name="title()"> |
|
3 | <%def name="title()"> | |
4 | ${_('Public Journal')} |
|
4 | ${_('Public Journal')} | |
5 | %if c.rhodecode_name: |
|
5 | %if c.rhodecode_name: |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="base/root. |
|
2 | <%inherit file="base/root.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('Sign In')} |
|
5 | ${_('Sign In')} |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="base/root. |
|
2 | <%inherit file="base/root.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('Reset Password')} |
|
5 | ${_('Reset Password')} |
@@ -1,4 +1,4 b'' | |||||
1 |
<%inherit file="/base/base. |
|
1 | <%inherit file="/base/base.mako"/> | |
2 |
|
2 | |||
3 | <%def name="title()"> |
|
3 | <%def name="title()"> | |
4 | ${c.repo_name} ${_('New pull request')} |
|
4 | ${c.repo_name} ${_('New pull request')} |
@@ -1,4 +1,4 b'' | |||||
1 |
<%inherit file="/base/base. |
|
1 | <%inherit file="/base/base.mako"/> | |
2 |
|
2 | |||
3 | <%def name="title()"> |
|
3 | <%def name="title()"> | |
4 | ${_('%s Pull Request #%s') % (c.repo_name, c.pull_request.pull_request_id)} |
|
4 | ${_('%s Pull Request #%s') % (c.repo_name, c.pull_request.pull_request_id)} | |
@@ -431,9 +431,9 b' Changed files:' | |||||
431 |
|
431 | |||
432 | </div> |
|
432 | </div> | |
433 | % if not c.missing_commits: |
|
433 | % if not c.missing_commits: | |
434 |
<%include file="/compare/compare_commits. |
|
434 | <%include file="/compare/compare_commits.mako" /> | |
435 | <div class="cs_files"> |
|
435 | <div class="cs_files"> | |
436 |
<%namespace name="cbdiffs" file="/codeblocks/diffs. |
|
436 | <%namespace name="cbdiffs" file="/codeblocks/diffs.mako"/> | |
437 | ${cbdiffs.render_diffset_menu()} |
|
437 | ${cbdiffs.render_diffset_menu()} | |
438 | ${cbdiffs.render_diffset( |
|
438 | ${cbdiffs.render_diffset( | |
439 | c.diffset, use_comments=True, |
|
439 | c.diffset, use_comments=True, | |
@@ -446,7 +446,7 b' Changed files:' | |||||
446 | </div> |
|
446 | </div> | |
447 |
|
447 | |||
448 | ## template for inline comment form |
|
448 | ## template for inline comment form | |
449 |
<%namespace name="comment" file="/changeset/changeset_file_comment. |
|
449 | <%namespace name="comment" file="/changeset/changeset_file_comment.mako"/> | |
450 |
|
450 | |||
451 | ## render general comments |
|
451 | ## render general comments | |
452 | ${comment.generate_comments(include_pull_request=True, is_pull_request=True)} |
|
452 | ${comment.generate_comments(include_pull_request=True, is_pull_request=True)} |
@@ -1,4 +1,4 b'' | |||||
1 |
<%inherit file="/base/base. |
|
1 | <%inherit file="/base/base.mako"/> | |
2 |
|
2 | |||
3 | <%def name="title()"> |
|
3 | <%def name="title()"> | |
4 | ${_('%s Pull Requests') % c.repo_name} |
|
4 | ${_('%s Pull Requests') % c.repo_name} |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | =## -*- coding: utf-8 -*- | |
2 |
<%inherit file="base/root. |
|
2 | <%inherit file="base/root.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('Create an Account')} |
|
5 | ${_('Create an Account')} |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | %if c.repo_name: |
|
5 | %if c.repo_name: | |
@@ -78,13 +78,13 b'' | |||||
78 | ${h.end_form()} |
|
78 | ${h.end_form()} | |
79 | <div class="search"> |
|
79 | <div class="search"> | |
80 | % if c.search_type == 'content': |
|
80 | % if c.search_type == 'content': | |
81 |
<%include file='search_content. |
|
81 | <%include file='search_content.mako'/> | |
82 | % elif c.search_type == 'path': |
|
82 | % elif c.search_type == 'path': | |
83 |
<%include file='search_path. |
|
83 | <%include file='search_path.mako'/> | |
84 | % elif c.search_type == 'commit': |
|
84 | % elif c.search_type == 'commit': | |
85 |
<%include file='search_commit. |
|
85 | <%include file='search_commit.mako'/> | |
86 | % elif c.search_type == 'repository': |
|
86 | % elif c.search_type == 'repository': | |
87 |
<%include file='search_repository. |
|
87 | <%include file='search_repository.mako'/> | |
88 | % endif |
|
88 | % endif | |
89 | </div> |
|
89 | </div> | |
90 | </div> |
|
90 | </div> |
@@ -1,4 +1,4 b'' | |||||
1 |
<%namespace name="base" file="/base/base. |
|
1 | <%namespace name="base" file="/base/base.mako"/> | |
2 |
|
2 | |||
3 | <table class="rctable search-results"> |
|
3 | <table class="rctable search-results"> | |
4 | <tr> |
|
4 | <tr> |
1 | NO CONTENT: file renamed from rhodecode/templates/search/search_content.html to rhodecode/templates/search/search_content.mako |
|
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 |
|
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 |
|
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. |
|
1 | <%inherit file="/base/base.mako"/> | |
2 |
|
2 | |||
3 | <%def name="title()"> |
|
3 | <%def name="title()"> | |
4 | ## represents page title |
|
4 | ## represents page title |
1 | NO CONTENT: file renamed from rhodecode/templates/summary/components.html to rhodecode/templates/summary/components.mako |
|
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. |
|
1 | <%inherit file="/summary/base.mako"/> | |
2 |
|
2 | |||
3 |
<%namespace name="components" file="/summary/components. |
|
3 | <%namespace name="components" file="/summary/components.mako"/> | |
4 |
|
4 | |||
5 | <%def name="main()"> |
|
5 | <%def name="main()"> | |
6 | <div class="title"> |
|
6 | <div class="title"> |
@@ -1,6 +1,6 b'' | |||||
1 |
<%inherit file="/summary/base. |
|
1 | <%inherit file="/summary/base.mako"/> | |
2 |
|
2 | |||
3 |
<%namespace name="components" file="/summary/components. |
|
3 | <%namespace name="components" file="/summary/components.mako"/> | |
4 |
|
4 | |||
5 |
|
5 | |||
6 | <%def name="menu_bar_subnav()"> |
|
6 | <%def name="menu_bar_subnav()"> | |
@@ -37,7 +37,7 b'' | |||||
37 | %endif |
|
37 | %endif | |
38 | <div class="table"> |
|
38 | <div class="table"> | |
39 | <div id="shortlog_data"> |
|
39 | <div id="shortlog_data"> | |
40 |
<%include file='../changelog/changelog_summary_data. |
|
40 | <%include file='../changelog/changelog_summary_data.mako'/> | |
41 | </div> |
|
41 | </div> | |
42 | </div> |
|
42 | </div> | |
43 | </div> |
|
43 | </div> |
@@ -1,5 +1,5 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
<%inherit file="/base/base. |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('%s Tags') % c.repo_name} |
|
5 | ${_('%s Tags') % c.repo_name} |
@@ -1,6 +1,6 b'' | |||||
1 | ## DATA TABLE RE USABLE ELEMENTS FOR TAGS |
|
1 | ## DATA TABLE RE USABLE ELEMENTS FOR TAGS | |
2 | ## usage: |
|
2 | ## usage: | |
3 |
## <%namespace name="tags" file="/tags/tags_data. |
|
3 | ## <%namespace name="tags" file="/tags/tags_data.mako"/> | |
4 | ## tags.<func_name>(arg,arg2) |
|
4 | ## tags.<func_name>(arg,arg2) | |
5 |
|
5 | |||
6 | <%def name="compare(commit_id)"> |
|
6 | <%def name="compare(commit_id)"> |
@@ -1,4 +1,4 b'' | |||||
1 |
<%inherit file="/base/base. |
|
1 | <%inherit file="/base/base.mako"/> | |
2 |
|
2 | |||
3 | <%def name="title()"> |
|
3 | <%def name="title()"> | |
4 | ${c.user.username} |
|
4 | ${c.user.username} | |
@@ -38,7 +38,7 b'' | |||||
38 | </div> |
|
38 | </div> | |
39 |
|
39 | |||
40 | <div class="main-content-full-width"> |
|
40 | <div class="main-content-full-width"> | |
41 |
<%include file="/users/${c.active}. |
|
41 | <%include file="/users/${c.active}.mako"/> | |
42 | </div> |
|
42 | </div> | |
43 | </div> |
|
43 | </div> | |
44 | </div> |
|
44 | </div> |
@@ -1,4 +1,4 b'' | |||||
1 |
<%namespace name="base" file="/base/base. |
|
1 | <%namespace name="base" file="/base/base.mako"/> | |
2 |
|
2 | |||
3 | <div class="panel panel-default user-profile"> |
|
3 | <div class="panel panel-default user-profile"> | |
4 | <div class="panel-heading"> |
|
4 | <div class="panel-heading"> |
1 | NO CONTENT: file renamed from rhodecode/templates/widgets.html to rhodecode/templates/widgets.mako |
|
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