{% extends "projects/project_detail_childs.html" %} {% load statistics %} {% load markup %} {% load i18n %} {% load truncate %} {% load permissions %} {% load txpermissions %} {% 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 content_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 %} {% get_permission "project_perm.maintain" for request.user and component.project as "is_maintainer" %} {% if perms.projects.add_component or is_maintainer %} {% 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 %} {% trans "Note" %} {% else %} {% endif %}
{% endif %}

{% trans "Translation files" %}

{% if component.trans.get_source_stats %} {% endif %} {% if component.allows_submission %} {% get_permission "project_perm.submit_file" for request.user and component.project as "can_submit_file" %} {% if request.user.is_authenticated and not perms.projects.submit_file and not can_submit_file and not is_maintainer%} {% endif %} {% 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 "Become a translator:" %} {% get_permission_request "project_perm.submit_file" for request.user and component.project,component as "can_submit_file_request" %} {% if can_submit_file_request %} {% trans "Your request is pending for approval." %} {% else %} {% txpermission_request_form for component.project using "project_perm.submit_file" %} {% endif %}
{% include "translations/stats_table_filter_box.html" %} {% with component.trans.get_stats as stats %} {% comp_stats_table stats %} {% if component.allows_submission %} {% get_permission "project_perm.submit_file" for request.user and component.project as "can_submit_file" %} {% if perms.projects.submit_file or can_submit_file or is_maintainer %} {% include "projects/component_submit_new_file.html" %} {% endif %} {% 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 %}