Commit 126afa5e authored by Michal Čihař's avatar Michal Čihař

Show details in tooltip

parent b9224ea4
...@@ -19,13 +19,13 @@ ...@@ -19,13 +19,13 @@
<td class="percent">{{ fuzzy }}%</td> <td class="percent">{{ fuzzy }}%</td>
<td> <td>
{% if percent < 100 %} {% if percent < 100 %}
<a href="{{ trans.get_translate_url }}?type=untranslated">{% 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>
<td> <td>
{% with trans.get_failing_checks as checks %} {% with trans.get_failing_checks as checks %}
{% if checks > 0 %} {% if checks > 0 %}
<a href="{{ trans.get_absolute_url }}">{% blocktrans count checks as c %}{{ checks }} failing check{% plural %}{{ checks }} failing checks{% endblocktrans %}</a> <a href="{{ trans.get_absolute_url }}" title="{% blocktrans count checks as count %}There is {{ checks }} failing check.{% plural %}There are {{ checks }} failing checks.{% endblocktrans %}">{% trans "Review" %}</a>
{% endif %} {% endif %}
{% endwith %} {% endwith %}
</td> </td>
......
...@@ -267,6 +267,9 @@ class Translation(models.Model): ...@@ -267,6 +267,9 @@ class Translation(models.Model):
return 0 return 0
return round(self.translated * 100.0 / self.total, 1) return round(self.translated * 100.0 / self.total, 1)
def get_non_translated(self):
return self.total - self.translated
@models.permalink @models.permalink
def get_absolute_url(self): def get_absolute_url(self):
return ('trans.views.show_translation', (), { return ('trans.views.show_translation', (), {
......
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