Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
2a3de146
Commit
2a3de146
authored
Oct 13, 2014
by
Weblate
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/bootstrap' into bootstrap
parents
3934ae67
8e7b4c67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
weblate/trans/context_processors.py
weblate/trans/context_processors.py
+6
-2
No files found.
weblate/trans/context_processors.py
View file @
2a3de146
...
...
@@ -38,15 +38,19 @@ def weblate_context(request):
else
:
login_redirect_url
=
request
.
get_full_path
()
projects
=
Project
.
objects
.
all_acl
(
request
.
user
)
# Load user translations if user is authenticated
usertranslations
=
None
if
request
.
user
.
is_authenticated
():
usertranslations
=
Translation
.
objects
.
filter
(
language__in
=
request
.
user
.
profile
.
languages
.
all
()
language__in
=
request
.
user
.
profile
.
languages
.
all
(),
subproject__project__in
=
projects
,
).
order_by
(
'subproject__project__name'
,
'subproject__name'
).
select_related
()
return
{
'version'
:
weblate
.
VERSION
,
...
...
@@ -72,6 +76,6 @@ def weblate_context(request):
'whiteboard_enabled'
:
appsettings
.
ENABLE_WHITEBOARD
,
'registration_open'
:
appsettings
.
REGISTRATION_OPEN
,
'acl_projects'
:
Project
.
objects
.
all_acl
(
request
.
user
)
,
'acl_projects'
:
projects
,
'usertranslations'
:
usertranslations
,
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment