templates: expose default user data into templates for JS usage.
This commit is contained in:
parent
58d7ad084c
commit
c4d8a9cccf
1 changed files with 5 additions and 0 deletions
|
|
@ -16,6 +16,11 @@ if getattr(c, 'rhodecode_user', None) and c.rhodecode_user.user_id:
|
|||
c.template_context['rhodecode_user']['last_name'] = c.rhodecode_user.lastname
|
||||
|
||||
c.template_context['visual']['default_renderer'] = h.get_visual_attr(c, 'default_renderer')
|
||||
c.template_context['default_user'] = {
|
||||
'username': h.DEFAULT_USER,
|
||||
'user_id': 1
|
||||
}
|
||||
|
||||
%>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue