{% load i18n %} {% load txcommontags %}
{% 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:4" %}

{{ comp.name }}

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

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

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

{% endif %} {% else %}

{% trans "No components are registered for this project yet." %} {% trans "Add one!" %}

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