Commit 6eedf14f authored by Michal Čihař's avatar Michal Čihař

Simplify listing of other components translation

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 2e86d656
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
{% for trans in translations %} {% for trans in translations %}
{% with trans.get_translated_percent as percent and trans.get_fuzzy_percent as fuzzy and trans.failing_checks as checks and trans.get_non_translated as count and trans.get_failing_checks_percent as check_percent and trans.have_suggestion as suggestions %} {% with trans.get_translated_percent as percent and trans.get_fuzzy_percent as fuzzy and trans.failing_checks as checks and trans.get_non_translated as count and trans.get_failing_checks_percent as check_percent and trans.have_suggestion as suggestions %}
<tr> <tr>
<th><a href="{{ trans.get_absolute_url }}">{% if show_language == 1 %}{{ trans.language }}{% else %}{{ trans.subproject }}{% if show_language == 2 %} ({{ trans.language }}){% endif %}{% endif %}</a></th> <th><a href="{{ trans.get_absolute_url }}">{% if show_language == 1 %}{{ trans.language }}{% else %}{% if show_only_component %}{{ trans.subproject.name }}{% else %}{{ trans.subproject }}{% endif %}{% if show_language == 2 %} ({{ trans.language }}){% endif %}{% endif %}</a></th>
<td>{% if trans.is_user_locked %}<span class="glyphicon glyphicon-lock html-tooltip" data-placement="bottom" data-toggle="tooltip" data-title='{{ trans.get_lock_display }}'></span>{% endif %}</td> <td>{% if trans.is_user_locked %}<span class="glyphicon glyphicon-lock html-tooltip" data-placement="bottom" data-toggle="tooltip" data-title='{{ trans.get_lock_display }}'></span>{% endif %}</td>
<td class="progress-cell">{% translation_progress trans %}</td> <td class="progress-cell">{% translation_progress trans %}</td>
<td class="percent">{{ percent }}%</td> <td class="percent">{{ percent }}%</td>
......
...@@ -125,9 +125,9 @@ ...@@ -125,9 +125,9 @@
{% if other_translations %} {% if other_translations %}
<div class="panel panel-primary"> <div class="panel panel-primary">
<div class="panel-heading"><h4 class="panel-title">{% trans "Other translations" %}</h4></div> <div class="panel-heading"><h4 class="panel-title">{% trans "Other components" %}</h4></div>
<div class="panel-body"> <div class="panel-body">
{% with other_translations as translations %} {% with other_translations as translations and True as show_only_component %}
{% include "list-translations.html" %} {% include "list-translations.html" %}
{% endwith %} {% endwith %}
</div> </div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment