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
b7db45c1
Commit
b7db45c1
authored
Feb 17, 2015
by
Weblate
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
aaa2a8dc
4b61ef4f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
weblate/html/checks.html
weblate/html/checks.html
+1
-1
weblate/trans/templatetags/translations.py
weblate/trans/templatetags/translations.py
+11
-0
No files found.
weblate/html/checks.html
View file @
b7db45c1
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<div
class=
"list-group"
>
<div
class=
"list-group"
>
{% for check in checks %}
{% for check in checks %}
<a
class=
"list-group-item"
href=
"{% url 'show_check' name=check.check %}{{ url_params }}"
><span
class=
"badge"
>
{{ check.count }}
</span><abbr
title=
"{% check_description check.check %}"
>
{% check_name check.check %}
</abbr></a>
<a
class=
"list-group-item
list-group-item-{% check_severity check.check %}
"
href=
"{% url 'show_check' name=check.check %}{{ url_params }}"
><span
class=
"badge"
>
{{ check.count }}
</span><abbr
title=
"{% check_description check.check %}"
>
{% check_name check.check %}
</abbr></a>
{% endfor %}
{% endfor %}
</div>
</div>
...
...
weblate/trans/templatetags/translations.py
View file @
b7db45c1
...
@@ -153,6 +153,17 @@ def format_translation(value, language=None, diff=None, search_match=None,
...
@@ -153,6 +153,17 @@ def format_translation(value, language=None, diff=None, search_match=None,
}
}
@
register
.
simple_tag
def
check_severity
(
check
):
'''
Returns check severity, or it's id if check is not known.
'''
try
:
return
CHECKS
[
check
].
severity
except
KeyError
:
return
'info'
@
register
.
simple_tag
@
register
.
simple_tag
def
check_name
(
check
):
def
check_name
(
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