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
92029dbd
Commit
92029dbd
authored
Dec 03, 2014
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prepare infrastructure for flags editing
Issue #540 Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
b565981e
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
1 deletion
+26
-1
docs/admin/auth.rst
docs/admin/auth.rst
+2
-0
weblate/accounts/models.py
weblate/accounts/models.py
+1
-0
weblate/html/translate.html
weblate/html/translate.html
+4
-1
weblate/trans/migrations/0015_auto_20141203_1345.py
weblate/trans/migrations/0015_auto_20141203_1345.py
+18
-0
weblate/trans/models/source.py
weblate/trans/models/source.py
+1
-0
No files found.
docs/admin/auth.rst
View file @
92029dbd
...
...
@@ -190,6 +190,8 @@ Can manage ACL rules for a project [Managers]
Can add users to ACL controlled projects (see :ref:`acl`)
Can edit priority [Managers]
Can adjust source string priority
Can edit check flags [Managers]
Can adjust source string check flags
.. _acl:
...
...
weblate/accounts/models.py
View file @
92029dbd
...
...
@@ -676,6 +676,7 @@ def create_groups(update):
Permission
.
objects
.
get
(
codename
=
'add_suggestion'
),
Permission
.
objects
.
get
(
codename
=
'use_mt'
),
Permission
.
objects
.
get
(
codename
=
'edit_priority'
),
Permission
.
objects
.
get
(
codename
=
'edit_flags'
),
Permission
.
objects
.
get
(
codename
=
'manage_acl'
),
)
...
...
weblate/html/translate.html
View file @
92029dbd
...
...
@@ -386,7 +386,10 @@
<th>
{% trans "Flags" %}
</th>
</tr>
<tr>
<td>
{{ unit.all_flags|join:", " }}
</td>
<td>
{{ unit.all_flags|join:", " }}
{% if perms.trans.edit_flags %}
<a
class=
"button smallbutton"
href=
"{% url 'review_source' project=unit.translation.subproject.project.slug subproject=unit.translation.subproject.slug %}?checksum={{ unit.checksum }}"
><i
class=
"fa fa-pencil"
></i></a>
{% endif %}
</td>
</tr>
{% endif %}
{% include "unit-details.html" %}
...
...
weblate/trans/migrations/0015_auto_20141203_1345.py
0 → 100644
View file @
92029dbd
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
django.db
import
migrations
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'trans'
,
'0014_auto_20141202_1101'
),
]
operations
=
[
migrations
.
AlterModelOptions
(
name
=
'source'
,
options
=
{
'permissions'
:
((
'edit_priority'
,
'Can edit priority'
),
(
'edit_flags'
,
'Can edit check flags'
))},
),
]
weblate/trans/models/source.py
View file @
92029dbd
...
...
@@ -48,6 +48,7 @@ class Source(models.Model):
class
Meta
(
object
):
permissions
=
(
(
'edit_priority'
,
"Can edit priority"
),
(
'edit_flags'
,
"Can edit check flags"
),
)
app_label
=
'trans'
unique_together
=
(
'checksum'
,
'subproject'
)
...
...
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