{% load i18n %} {% load statistics %} {% load addons %} {% load watches %} {% load submissions %} {% load permissions %} {% load webeditortags %} {% if stats %} {% url notification.views.notices as notices_url %}
{% trans "Project/Component" %} | {% trans "Translations" %} | {% trans "Options" %} |
---|---|---|
{{stat.object.project.name}} {% if stat.error %} {% if stat.is_aggregated %} {% else %} {% endif %} {% endif %} | {% with 140 as barwidth %}
{{stat.trans_perc}}% ({{stat.trans}}/{{stat.fuzzy}}/{{stat.untrans}})
{% stats_bar_full stat barwidth %}
|
{% endwith %}
{% if stat.is_aggregated %} {% url component_language_detail stat.object.project.slug stat.object.slug stat.language_code as comp_lang_url %} {% else %} {% url component_view_file stat.object.project.slug stat.object.slug stat.filename as file_view_url %} {% url component_raw_file stat.object.project.slug stat.object.slug stat.filename as file_raw_url %} {% url component_edit_file stat.object.project.slug stat.object.slug stat.filename as file_edit_url %} {% comment %}Temporarily hooks are disabled here, until we improve the compontent detail view{% endcomment %} {% load locks_tags %} {% pofile_lock stat %} {% comment %}{% hook "comp_stats_table.html" extra_buttons %}{% endcomment %} {% if notices_url %} {% if perms.repowatch.add_watch or can_submit_file %} {% watch_toggle stat %} {% endif %} {% endif %} {% if request.user.is_authenticated and stat.object.allows_submission %} {% if perms.reviews.add_poreviewrequest or can_submit_file %} {% if file_edit_url and stat.total|webtrans_is_under_max and not stat.error %} {% endif %} {% pofile_submission stat %} {% endif %} {% endif %} {% endif %} |