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
3f21eec1
Commit
3f21eec1
authored
Oct 02, 2014
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better name for variable holding URL parameters
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
d47d8921
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
17 deletions
+17
-17
weblate/html/check.html
weblate/html/check.html
+1
-1
weblate/html/check_project.html
weblate/html/check_project.html
+1
-1
weblate/html/check_subproject.html
weblate/html/check_subproject.html
+2
-2
weblate/html/checks.html
weblate/html/checks.html
+1
-1
weblate/trans/views/checks.py
weblate/trans/views/checks.py
+12
-12
No files found.
weblate/html/check.html
View file @
3f21eec1
...
...
@@ -30,7 +30,7 @@
{% for obj in checks %}
<tr>
<th><a
href=
"{% url 'project' project=obj.project__slug %}"
>
{% project_name obj.project__slug %}
</a></th>
<td><a
href=
"{% url 'show_check_project' name=check.check_id project=obj.project__slug %}{{
ignore_string
}}"
>
{{ obj.count }}
</a></td>
<td><a
href=
"{% url 'show_check_project' name=check.check_id project=obj.project__slug %}{{
url_params
}}"
>
{{ obj.count }}
</a></td>
</tr>
{% endfor %}
</tbody>
...
...
weblate/html/check_project.html
View file @
3f21eec1
...
...
@@ -30,7 +30,7 @@
{% for obj in checks %}
<tr>
<th><a
href=
"{% url 'subproject' project=obj.translation__subproject__project__slug subproject=obj.translation__subproject__slug %}"
>
{% subproject_name obj.translation__subproject__project__slug obj.translation__subproject__slug %}
</a></th>
<td><a
href=
"{% url 'show_check_subproject' name=check.check_id project=obj.translation__subproject__project__slug subproject=obj.translation__subproject__slug %}{{
ignore_string
}}"
>
{{ obj.count }}
</a></td>
<td><a
href=
"{% url 'show_check_subproject' name=check.check_id project=obj.translation__subproject__project__slug subproject=obj.translation__subproject__slug %}{{
url_params
}}"
>
{{ obj.count }}
</a></td>
</tr>
{% endfor %}
</tbody>
...
...
weblate/html/check_subproject.html
View file @
3f21eec1
...
...
@@ -31,13 +31,13 @@
{% for obj in checks %}
<tr>
<th><a
href=
"{% url 'translation' project=subproject.project.slug subproject=subproject.slug lang=obj.translation__language__code %}"
>
{% language_name obj.translation__language__code %}
</a></th>
<td><a
href=
"{% url 'translate' project=subproject.project.slug subproject=subproject.slug lang=obj.translation__language__code %}{{
ignore_string }}{% if ignore_string
%}&{% else %}?{% endif %}type={{ check.check_id }}"
>
{{ obj.count }}
</a></td>
<td><a
href=
"{% url 'translate' project=subproject.project.slug subproject=subproject.slug lang=obj.translation__language__code %}{{
url_params }}{% if url_params
%}&{% else %}?{% endif %}type={{ check.check_id }}"
>
{{ obj.count }}
</a></td>
</tr>
{% endfor %}
{% for count in source_checks %}
<tr>
<th><a
href=
"{% url 'show_source' project=subproject.project.slug subproject=subproject.slug %}"
>
{% trans "Source" %}
</a></th>
<td><a
href=
"{% url 'review_source' project=subproject.project.slug subproject=subproject.slug %}{{
ignore_string }}{% if ignore_string
%}&{% else %}?{% endif %}type={{ check.check_id }}"
>
{{ count }}
</a></td>
<td><a
href=
"{% url 'review_source' project=subproject.project.slug subproject=subproject.slug %}{{
url_params }}{% if url_params
%}&{% else %}?{% endif %}type={{ check.check_id }}"
>
{{ count }}
</a></td>
</tr>
{% endfor %}
</tbody>
...
...
weblate/html/checks.html
View file @
3f21eec1
...
...
@@ -19,7 +19,7 @@
{% for check in checks %}
<tr>
<th><abbr
title=
"{% check_description check.check %}"
>
{% check_name check.check %}
</abbr></th>
<td><a
href=
"{% url 'show_check' name=check.check %}{{
ignore_string
}}"
>
{{ check.count }}
</a></td>
<td><a
href=
"{% url 'show_check' name=check.check %}{{
url_params
}}"
>
{{ check.count }}
</a></td>
</tr>
{% endfor %}
</tbody>
...
...
weblate/trans/views/checks.py
View file @
3f21eec1
...
...
@@ -33,9 +33,9 @@ def show_checks(request):
List of failing checks.
'''
ignore
=
(
'ignored'
in
request
.
GET
)
ignore_string
=
''
url_params
=
''
if
ignore
:
ignore_string
=
'?ignored=true'
url_params
=
'?ignored=true'
allchecks
=
Check
.
objects
.
filter
(
ignore
=
ignore
,
...
...
@@ -46,7 +46,7 @@ def show_checks(request):
{
'checks'
:
allchecks
,
'title'
:
_
(
'Failing checks'
),
'
ignore_string'
:
ignore_string
,
'
url_params'
:
url_params
,
}
)
...
...
@@ -61,9 +61,9 @@ def show_check(request, name):
raise
Http404
(
'No check matches the given query.'
)
ignore
=
(
'ignored'
in
request
.
GET
)
ignore_string
=
''
url_params
=
''
if
ignore
:
ignore_string
=
'?ignored=true'
url_params
=
'?ignored=true'
checks
=
Check
.
objects
.
filter
(
check
=
name
,
...
...
@@ -77,7 +77,7 @@ def show_check(request, name):
'checks'
:
checks
,
'title'
:
check
.
name
,
'check'
:
check
,
'
ignore_string'
:
ignore_string
,
'
url_params'
:
url_params
,
}
)
...
...
@@ -93,9 +93,9 @@ def show_check_project(request, name, project):
raise
Http404
(
'No check matches the given query.'
)
ignore
=
(
'ignored'
in
request
.
GET
)
ignore_string
=
''
url_params
=
''
if
ignore
:
ignore_string
=
'?ignored=true'
url_params
=
'?ignored=true'
units
=
Unit
.
objects
.
none
()
if
check
.
target
:
...
...
@@ -169,7 +169,7 @@ def show_check_project(request, name, project):
'title'
:
'%s/%s'
%
(
prj
.
__unicode__
(),
check
.
name
),
'check'
:
check
,
'project'
:
prj
,
'
ignore_string'
:
ignore_string
,
'
url_params'
:
url_params
,
}
)
...
...
@@ -185,9 +185,9 @@ def show_check_subproject(request, name, project, subproject):
raise
Http404
(
'No check matches the given query.'
)
ignore
=
(
'ignored'
in
request
.
GET
)
ignore_string
=
''
url_params
=
''
if
ignore
:
ignore_string
=
'?ignored=true'
url_params
=
'?ignored=true'
units
=
Unit
.
objects
.
none
()
if
check
.
target
:
...
...
@@ -256,6 +256,6 @@ def show_check_subproject(request, name, project, subproject):
'title'
:
'%s/%s'
%
(
subprj
.
__unicode__
(),
check
.
name
),
'check'
:
check
,
'subproject'
:
subprj
,
'
ignore_string'
:
ignore_string
,
'
url_params'
:
url_params
,
}
)
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