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
b9873eb3
Commit
b9873eb3
authored
Apr 15, 2014
by
Vladimir Rusinov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Output whiteboard messages on index page.
parent
7c602af4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
weblate/html/index.html
weblate/html/index.html
+3
-1
weblate/trans/views/basic.py
weblate/trans/views/basic.py
+5
-0
No files found.
weblate/html/index.html
View file @
b9873eb3
...
...
@@ -25,7 +25,9 @@
</ul>
<div
id=
"messages"
>
not implemented :(
{% for msg in whiteboard_messages %}
<snan
class=
""
>
{{ msg.message }}
</snan>
{% endfor %}
</div>
<div
id=
"add"
>
...
...
weblate/trans/views/basic.py
View file @
b9873eb3
...
...
@@ -33,6 +33,7 @@ from weblate.trans.models import (
Project
,
SubProject
,
Translation
,
Check
,
Dictionary
,
Change
,
Unit
)
from
weblate.trans.models
import
whiteboard
as
whiteboard_models
from
weblate.trans.requirements
import
get_versions
,
get_optional_versions
from
weblate.lang.models
import
Language
from
weblate.trans.forms
import
(
...
...
@@ -66,6 +67,9 @@ def home(request):
)
return
redirect
(
'password'
)
wb_messages
=
whiteboard_models
.
WhiteboardMessage
.
objects
.
order_by
(
'message'
)
projects
=
Project
.
objects
.
all_acl
(
request
.
user
)
if
projects
.
count
()
==
1
:
projects
=
SubProject
.
objects
.
filter
(
...
...
@@ -106,6 +110,7 @@ def home(request):
'last_changes_url'
:
''
,
'usertranslations'
:
usertranslations
,
'search_form'
:
SearchForm
(),
'whiteboard_messages'
:
wb_messages
,
}
)
...
...
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