{% load crispy_forms_tags i18n permissions translations %} {% perm 'reports.view' object as user_can_view_reports %} {% if not user_can_view_reports %} {% translate "You don't have permission to view reports for all users; contributor reports will list only your contributions." as msg %} {% show_message "warning" msg %} {% endif %}
{% if object %} {% url 'credits' path=object.get_url_path as report_action %} {% else %} {% url 'credits' as report_action %} {% endif %}
{% csrf_token %}

{% documentation_icon 'devel/reporting' 'credits' right=True %} {% translate "Credits" %}

{% translate "Lists translators contributing in the selected period." %}

{% crispy reports_form %}
{% if object %} {% url 'counts' path=object.get_url_path as report_action %} {% else %} {% url 'counts' as report_action %} {% endif %}
{% csrf_token %}

{% documentation_icon 'devel/reporting' 'stats' right=True %} {% translate "Contributor stats" %}

{% translate "Reports the number of strings and words translated by each translator." %}

{% crispy reports_count_form %}
{% if user_can_view_reports %}
{% if object %} {% url 'costs' path=object.get_url_path as report_action %} {% else %} {% url 'costs' as report_action %} {% endif %}
{% csrf_token %}

{% documentation_icon 'devel/reporting' 'cost-estimate' right=True %} {% translate "Cost estimate" %}

{% translate "Estimates translation costs from source words and translation memory matches." %}

{% crispy reports_cost_form %}
{% if object %} {% url 'translator-work' path=object.get_url_path as report_action %} {% else %} {% url 'translator-work' as report_action %} {% endif %}
{% csrf_token %}

{% documentation_icon 'devel/reporting' 'translator-work-analysis' right=True %} {% translate "Translator work analysis" %}

{% translate "Analyzes realistic daily translator throughput while filtering obvious outliers." %}

{% crispy reports_translator_work_form %}
{% endif %}

{% translate "Past reports" %}

{% for generated_report in generated_reports %} {% empty %} {% endfor %}
{% translate "Previously generated reports" %}
{% translate "Report" %} {% translate "Creator" %} {% translate "Created" %} {% translate "Downloads" %}
{{ generated_report.get_kind_display }} {{ generated_report.creator }} {{ generated_report.created }} {% translate "JSON" %} {% translate "HTML" %} {% translate "reStructuredText" %}
{% translate "No reports have been generated yet." %}
{% if generated_reports.has_other_pages %} {% endif %}