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
5f9fb4e4
Commit
5f9fb4e4
authored
Sep 13, 2013
by
Michal Čihař
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'lukakama/master'
parents
31d9aae2
31116b18
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
+5
-0
accounts/models.py
accounts/models.py
+2
-0
trans/models/subproject.py
trans/models/subproject.py
+1
-0
weblate/html/subproject_info.html
weblate/html/subproject_info.html
+2
-0
No files found.
accounts/models.py
View file @
5f9fb4e4
...
...
@@ -577,6 +577,7 @@ def create_groups(update):
Permission
.
objects
.
get
(
codename
=
'change_dictionary'
),
Permission
.
objects
.
get
(
codename
=
'delete_dictionary'
),
Permission
.
objects
.
get
(
codename
=
'lock_translation'
),
Permission
.
objects
.
get
(
codename
=
'can_see_git_repository'
),
Permission
.
objects
.
get
(
codename
=
'add_comment'
),
)
group
,
created
=
Group
.
objects
.
get_or_create
(
name
=
'Managers'
)
...
...
@@ -602,6 +603,7 @@ def create_groups(update):
Permission
.
objects
.
get
(
codename
=
'lock_subproject'
),
Permission
.
objects
.
get
(
codename
=
'reset_translation'
),
Permission
.
objects
.
get
(
codename
=
'lock_translation'
),
Permission
.
objects
.
get
(
codename
=
'can_see_git_repository'
),
Permission
.
objects
.
get
(
codename
=
'add_comment'
),
Permission
.
objects
.
get
(
codename
=
'delete_comment'
),
)
...
...
trans/models/subproject.py
View file @
5f9fb4e4
...
...
@@ -247,6 +247,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
)
permissions
=
(
(
'lock_subproject'
,
"Can lock translation for translating"
),
(
'can_see_git_repository'
,
"Can see git repository URL"
),
)
app_label
=
'trans'
...
...
weblate/html/subproject_info.html
View file @
5f9fb4e4
...
...
@@ -3,6 +3,7 @@
{% with object.project as object %}
{% include "project_info.html" %}
{% endwith %}
{% if perms.trans.can_see_git_repository %}
<p>
{% trans "Git repository:" %}
<code
class=
"git-repo ui-corner-all"
>
{{ object.get_repo_url }}
</code>
({{ object.get_repo_branch }}
@
...
...
@@ -19,3 +20,4 @@
</p>
{% endif %}
{% endwith %}
{% endif %}
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