Commit a4d11913 authored by Michal Čihař's avatar Michal Čihař

Merge remote-tracking branch 'origin/master'

parents 6a3b6543 0fc07bbf
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</tr> </tr>
<tbody> <tbody>
{% for trans in translations %} {% for trans in translations %}
{% with trans.get_translated_percent as percent and trans.get_fuzzy_percent as fuzzy and trans.get_failing_checks as checks %} {% with trans.get_translated_percent as percent and trans.get_fuzzy_percent as fuzzy and trans.get_failing_checks as checks and trans.get_non_translated as count %}
<tr> <tr>
<th><a href="{{ trans.get_absolute_url }}">{% if show_language %}{{ trans.language }}{% else %}{{ trans.subproject }}{% endif %}</a></th> <th><a href="{{ trans.get_absolute_url }}">{% if show_language %}{{ trans.language }}{% else %}{{ trans.subproject }}{% endif %}</a></th>
<td class="progress"><div class="progress" id="{{ percent|floatformat:0 }}"></div></td> <td class="progress"><div class="progress" id="{{ percent|floatformat:0 }}"></div></td>
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<td class="percent">{{ fuzzy }}%</td> <td class="percent">{{ fuzzy }}%</td>
<td class="number">{{ checks }}</td> <td class="number">{{ checks }}</td>
<td> <td>
{% if percent < 100 %} {% if count > 0 %}
<a href="{{ trans.get_translate_url }}?type=untranslated" title="{% blocktrans count trans.get_non_translated as count %}There is {{ count }} not translated string.{% plural %}There are {{ count }} not translated strings.{% endblocktrans %}">{% trans "Translate" %}</a> <a href="{{ trans.get_translate_url }}?type=untranslated" title="{% blocktrans count trans.get_non_translated as count %}There is {{ count }} not translated string.{% plural %}There are {{ count }} not translated strings.{% endblocktrans %}">{% trans "Translate" %}</a>
{% endif %} {% endif %}
</td> </td>
......
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