{% extends "../_todo_dashboard_row.html" %}
{% load i18n %}
{% block todo_dashboard_icon %}
check-circle
{% endblock todo_dashboard_icon %}
{% block todo_dashboard_title_link %}
{% url 'translation_coverage' region_slug=request.region.slug %}#hix-overview
{% endblock todo_dashboard_title_link %}
{% block todo_dashboard_title %}
{% translate "Pages with low hix score" %}
{% endblock todo_dashboard_title %}
{% block todo_dashboard_number %}
{% with total=pages_under_hix_threshold|length %}
{{ block.super }}
{% endwith %}
{% endblock todo_dashboard_number %}
{% block todo_dashboard_description %}
{% if pages_under_hix_threshold %}
{% with worst_page=pages_under_hix_threshold.0 %}
{% blocktranslate trimmed with worst_page_hix=worst_page.rounded_hix_score %}
The page {{ worst_page }} has a HIX score of {{ worst_page_hix }}. Please adjust the hix score of this page to be able to machine translate it.
{% endblocktranslate %}
{% endwith %}
{% else %}
{% blocktranslate trimmed %}
At the moment all pages are ready for machine translation. Good job!
{% endblocktranslate %}
{% endif %}
{% endblock todo_dashboard_description %}
{% block todo_dashboard_button_link %}
{% if pages_under_hix_threshold %}
{% translate "Go to page" %}
{% else %}
{% endif %}
{% endblock todo_dashboard_button_link %}