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
b2cbfed7
Commit
b2cbfed7
authored
Apr 17, 2015
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify permission checking
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
c13aa2a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
weblate/html/list-checks.html
weblate/html/list-checks.html
+2
-2
weblate/trans/templatetags/translations.py
weblate/trans/templatetags/translations.py
+0
-1
No files found.
weblate/html/list-checks.html
View file @
b2cbfed7
{% load i18n %}
{% for check in checks %}
<div
data-href=
"{% url 'js-ignore-check' check_id=check.id %}"
class=
"alert alert-{{ check.get_severity }} {% if perms
_
ignore_check %}alert-dismissable{% endif %} check tooltip-control"
id=
"check-{{ check.id }}"
title=
"{{ check.get_description }}"
>
{% if perms
_
ignore_check %}
<div
data-href=
"{% url 'js-ignore-check' check_id=check.id %}"
class=
"alert alert-{{ check.get_severity }} {% if perms
.trans.
ignore_check %}alert-dismissable{% endif %} check tooltip-control"
id=
"check-{{ check.id }}"
title=
"{{ check.get_description }}"
>
{% if perms
.trans.
ignore_check %}
<button
type=
"button"
class=
"close"
data-dismiss=
"alert"
title=
"{% blocktrans with check.get_check_display as check %}Ignore: {{ check }}{% endblocktrans %}"
>
×
</button>
{% endif %}
<a
href=
"{{ check.get_doc_url }}"
class=
"alert-link"
>
{{ check.get_check_display }}
</a>
...
...
weblate/trans/templatetags/translations.py
View file @
b2cbfed7
...
...
@@ -264,7 +264,6 @@ def show_message(tags, message):
def
show_checks
(
checks
,
user
):
return
{
'checks'
:
checks
,
'perms_ignore_check'
:
user
.
has_perm
(
'trans.ignore_check'
),
}
...
...
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