{% load i18n %} {% load txcommontags %} {% load permissions %}
{% with project.component_set.all as components %}

{% blocktrans count components|length as counter %}Project Component{% plural %}Project Components{% endblocktrans %} {% render_metacount components _("components") %}

{% if components %}
{% for comp in components|slice:"0:6" %}

{{ comp.name }}

{{ comp.description|truncatewords:"10" }}

{% endfor %}
{% if components|slice:"6:" %}

More components: {% for comp in components|slice:"6:" %} {{ comp.name }}{% if not forloop.last %},{% endif %} {% endfor %}

{% endif %} {% else %}

{% trans "No components are registered for this project yet." %} {% if perms.projects.add_component or is_maintainer %} {% trans "Add one!" %} {% endif %}

{% endif %} {% endwith %}

{% blocktrans %}Components are smaller, self-contained parts of a larger project which consist of actual files. Examples of components of a software project could be "UI" and "Docs" or development branches like HEAD.{% endblocktrans %}