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
f31272fc
Commit
f31272fc
authored
Feb 05, 2016
by
Jitka Novotna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dropdown for lits
parent
d5957ede
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
weblate/html/index.html
weblate/html/index.html
+4
-1
weblate/trans/context_processors.py
weblate/trans/context_processors.py
+3
-1
No files found.
weblate/html/index.html
View file @
f31272fc
...
...
@@ -18,6 +18,7 @@
{% whiteboard_messages %}
<ul
class=
"nav nav-pills"
>
{% if user.is_authenticated %}
<li
class=
"dropdown active"
>
...
...
@@ -28,7 +29,9 @@
<li><a
href=
"#projects"
data-toggle=
"tab"
>
{% trans "All projects" %}
</a></li>
<li><a
href=
"#your-languages"
data-toggle=
"tab"
>
{% trans "Your languages" %}
</a></li>
<li><a
href=
"#your-subscriptions"
data-toggle=
"tab"
>
{% trans "Your subscriptions" %}
</a></li>
<li><a
href=
"#todo"
data-toggle=
"tab"
>
{% trans "todo component" %}
</a></li>
{% for componentlist in componentlists %}
<li><a
href=
"#todo"
data-toggle=
"tab"
>
{{ componentlist.title }}
</a></li>
{% endfor %}
</ul>
</li>
{% else %}
...
...
weblate/trans/context_processors.py
View file @
f31272fc
...
...
@@ -23,6 +23,7 @@ from datetime import datetime
import
weblate
from
weblate
import
appsettings
from
weblate.trans.site
import
get_site_url
from
weblate.trans.models.componentlist
import
ComponentList
from
weblate.trans.models.project
import
Project
from
weblate.trans.models.translation
import
Translation
...
...
@@ -40,7 +41,7 @@ def weblate_context(request):
login_redirect_url
=
request
.
get_full_path
()
projects
=
Project
.
objects
.
all_acl
(
request
.
user
)
componentlists
=
ComponentList
.
objects
.
all
()
# Load user translations if user is authenticated
usersubscriptions
=
None
...
...
@@ -92,4 +93,5 @@ def weblate_context(request):
'acl_projects'
:
projects
,
'usersubscriptions'
:
usersubscriptions
,
'userlanguages'
:
userlanguages
,
'componentlists'
:
componentlists
,
}
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