{% extends "projects/project_detail_childs.html" %} {% load statistics %} {% load markup %} {% load i18n %} {% load truncate %} {% block extra_head %} {% endblock %} {% block body_class %}{{ block.super }} project_detail{% endblock %} {% block title %}{% with component.project as project %}{{ block.super }} | {{ component.name }}{% endwith %}{% endblock %} {% block breadcrumb %}{% with component.project as project %}{{ block.super }} » {{ component.name }}{% endwith %}{% endblock %} {% block body_main %}

{{ component.project.name }} » {{ 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 request.user.is_authenticated and perms.projects.add_component %} {% endif %} {% if component.unit %}

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 %} {% for release in releases|slice:"0:6" %}{{ release }} {% endfor %}
{% trans "Allows submissions:" %} {% if component.allows_submission %} {% else %} {% endif %} {# FIXME: tar too restrictive #} {% ifequal component.unit.type "tar" %}{% trans "note" %}{% endifequal %}
{% endif %}

{% trans "Translation files" %}

{% if component.trans.get_source_stats %} {% endif %}
{% trans "Source file:" %} {% for source_stat in component.trans.get_source_stats %} {% url component_raw_file component.project.slug component.slug source_stat.filename as source_raw_url %} {% url component_view_file component.project.slug component.slug source_stat.filename as source_view_url %} {{ source_stat.filename }} ({{ source_stat.total }} {% trans "entries" %})
{% endfor %}
{% 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 %}
{% endif %} {% if perms.projects.clear_cache %}
{# FIXME: tar too restrictive #} {% ifequal component.unit.type "tar" %}{% trans "warning" %}{% endifequal %} {% endif %}
{% with component.trans.get_stats as stats %} {% comp_stats_table stats %} {% if request.user.is_authenticated and component.allows_submission and perms.projects.submit_file %} {% include "projects/component_submit_new_file.html" %} {% endif %} {% endwith %}

{% 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 %}