diff --git a/templates/Projects/info/_subprojects.html.twig b/templates/Projects/info/_subprojects.html.twig new file mode 100644 index 00000000..a7944646 --- /dev/null +++ b/templates/Projects/info/_subprojects.html.twig @@ -0,0 +1,28 @@ + + + + + + + + + + + {% for subproject in project.children %} + + + + + + + {% endfor %} + +
{% trans %}name.label{% endtrans %}{% trans %}description.label{% endtrans %}# {% trans %}project.info.bom_entries_count{% endtrans %}# {% trans %}project.info.sub_projects_count{% endtrans %}
{# Name #} + {{ subproject.name }} + {# Description #} + {{ subproject.description | format_markdown }} + + {{ subproject.bomEntries | length }} + + {{ subproject.children | length }} +
\ No newline at end of file diff --git a/templates/Projects/info/info.html.twig b/templates/Projects/info/info.html.twig index 4b494acb..c167a274 100644 --- a/templates/Projects/info/info.html.twig +++ b/templates/Projects/info/info.html.twig @@ -39,12 +39,23 @@ {% trans %}project.info.info.label{% endtrans %} + {% if project.children is not empty %} + + {% endif %}