{% extends "projects/project_detail_childs.html" %} {% load statistics %} {% load markup %} {% load i18n %} {% load truncate %} {% load permissions %} {% load txpermissions %} {% block extra_head %} {% include "translations/stats_table_filter_header.html" %} {% endblock %} {% block body_class %}{{ block.super }} project_detail{% endblock %} {% block title %}{% with component.project as project %}{{ block.super }} | Component '{{ component.name }}'{% endwith %}{% endblock %} {% block breadcrumb %}{% with component.project as project %}{{ block.super }} » Component '{{ component.name }}'{% endwith %}{% endblock %} {% block content_main %} {% get_permission "project_perm.maintain" for request.user and component.project as "is_maintainer" %}

{{ component.project.name }}

Component '{{ component.name }}'

{% if component.description %}

{{ component.description }}

{% endif %} {% with component.long_description_html as long_desc %} {% if long_desc %}
{{ long_desc|truncatewords_html:"100"|safe }}
{% endif %} {% endwith %} {% if perms.projects.add_component or is_maintainer %} {% endif %} {% if component.unit %}

{% trans "Source details" %}

{% if component.unit.branch %} {% endif %} {% with component.releases.all as releases %} {% if releases %} {% endif %} {% endwith %}
{% trans "Repository:" %} {{ component.unit.root|truncate_chars_middle:"70" }} {% if component.unit.web_frontend %}({% trans "web" %}){% endif %} {# FIXME: tar too restrictive #} {% ifequal component.unit.type "tar" %}({% trans "web" %}){% endifequal %} {{ component.unit.type }}
{% trans "Branch:" %} {{ component.unit.branch }}
{% trans "File filter:" %} {{ component.file_filter }}
{% blocktrans count releases|length as counter %}Release:{% plural %}Releases:{% endblocktrans %}
{% trans "Allows submissions:" %} {% if component.allows_submission %} {% trans "Note" %} {% else %} {% endif %}
{% endif %}

{% trans "Translation files" %}

{% if component.trans.get_source_stats %} {% endif %} {% if component.allows_submission %} {% endif %}
{% trans "Source file:" %} {% render_source_files component.trans.get_source_stats %}
{% trans "Statistics last updated:" %} {% if component.unit.last_checkout %}{{component.unit.last_checkout|timesince}} {% trans "ago" %}. {% else %}{% trans "Component not yet pulled from source repository." %}{% endif %} {% if perms.projects.refresh_stats or is_maintainer %}
{% endif %} {% if perms.projects.clear_cache or is_maintainer %}
{# FIXME: tar too restrictive #} {% ifequal component.unit.type "tar" %}{% trans "warning" %}{% endifequal %} {% endif %}
{% trans "Teams:" %} {% trans "See the translation teams." %}
{% include "translations/stats_table_filter_box.html" %} {% with component.trans.get_stats as stats %} {% comp_stats_table stats %} {% if request.user.is_authenticated and component.allows_submission %} {% get_permission "project_perm.submit_file" for request.user and component.project,1 as "can_submit_file" %} {% if component.unit.last_checkout %} {% include "projects/component_submit_new_file.html" %} {% endif %} {% endif %} {% endwith %}

{% trans 'Translation files reviews' %}

{% blocktrans %}Translators can request a file review from another person, who can take a look at his work and provide any feedback needed, or simply submit the file to the upstream project.{% endblocktrans %}

{% url review_list component.project.slug component.slug as review_url %} View all reviews

{% trans 'History' %}

{% load tx_action_log %} {% get_log 5 as action_log for_object component %} {% if not action_log %}

{% trans 'None available' %}

{% else %} {% endif %} {% endblock %} {% block content_footer %} {% endblock %}