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
553f0dd1
Commit
553f0dd1
authored
May 15, 2014
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use group item for listing checks
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
6e993ff0
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
69 deletions
+13
-69
weblate/html/check.html
weblate/html/check.html
+3
-17
weblate/html/check_project.html
weblate/html/check_project.html
+3
-17
weblate/html/check_subproject.html
weblate/html/check_subproject.html
+4
-22
weblate/html/checks.html
weblate/html/checks.html
+3
-13
No files found.
weblate/html/check.html
View file @
553f0dd1
...
...
@@ -19,27 +19,13 @@
</p>
{% if checks %}
<table
class=
"sort table table-condensed table-striped"
>
<thead>
<tr>
<th>
{% trans "Project" %}
</th>
<th>
{% trans "Failures" %}
</th>
</tr>
<tbody>
<div
class=
"list-group"
>
{% 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>
</tr>
<a
class=
"list-group-item"
href=
"{% url 'show_check_project' name=check.check_id project=obj.project__slug %}{{ ignore_string }}"
><span
class=
"badge"
>
{{ obj.count }}
</span>
{% project_name obj.project__slug %}
</a>
{% endfor %}
</tbody>
</table>
</div>
{% else %}
<p>
{% show_message "warning" _("No matching checks found!") %}
</p>
{% endif %}
{% endblock %}
weblate/html/check_project.html
View file @
553f0dd1
...
...
@@ -20,27 +20,13 @@
</p>
{% if checks %}
<table
class=
"sort table table-condensed table-striped"
>
<thead>
<tr>
<th>
{% trans "Project" %}
</th>
<th>
{% trans "Failures" %}
</th>
</tr>
<tbody>
<div
class=
"list-group"
>
{% 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>
</tr>
<a
class=
"list-group-item"
href=
"{% url 'show_check_subproject' name=check.check_id project=obj.translation__subproject__project__slug subproject=obj.translation__subproject__slug %}{{ ignore_string }}"
><span
class=
"badge"
>
{{ obj.count }}
</span>
{% subproject_name obj.translation__subproject__project__slug obj.translation__subproject__slug %}
</a>
{% endfor %}
</tbody>
</table>
</div>
{% else %}
<p>
{% show_message "warning" _("No matching checks found!") %}
</p>
{% endif %}
{% endblock %}
weblate/html/check_subproject.html
View file @
553f0dd1
...
...
@@ -21,34 +21,16 @@
</p>
{% if anychecks %}
<table
class=
"sort table table-condensed table-striped"
>
<thead>
<tr>
<th>
{% trans "Translation" %}
</th>
<th>
{% trans "Failures" %}
</th>
</tr>
<tbody>
<div
class=
"list-group"
>
{% 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>
</tr>
<a
class=
"list-group-item"
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 }}"
><span
class=
"badge"
>
{{ obj.count }}
</span>
{% language_name obj.translation__language__code %}
</a>
{% 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>
</tr>
<a
class=
"list-group-item"
href=
"{% url 'review_source' project=subproject.project.slug subproject=subproject.slug %}{{ ignore_string }}{% if ignore_string %}&{% else %}?{% endif %}type={{ check.check_id }}"
><span
class=
"badge"
>
{{ count }}
</span>
{% trans "Source" %}
</a>
{% endfor %}
</tbody>
</table>
</div>
{% else %}
<p>
{% show_message "warning" _("No matching checks found!") %}
</p>
{% endif %}
{% endblock %}
weblate/html/checks.html
View file @
553f0dd1
...
...
@@ -9,20 +9,10 @@
{% block content %}
<table
class=
"sort table table-condensed table-striped"
>
<thead>
<tr>
<th>
{% trans "Check" %}
</th>
<th>
{% trans "Failures" %}
</th>
</tr>
<tbody>
<div
class=
"list-group"
>
{% 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>
</tr>
<a
class=
"list-group-item"
href=
"{% url 'show_check' name=check.check %}{{ ignore_string }}"
><span
class=
"badge"
>
{{ check.count }}
</span><abbr
title=
"{% check_description check.check %}"
>
{% check_name check.check %}
</abbr></a>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}
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