{% extends 'base.html.twig' %} {% set filesWithErrors = project.files|filter(file => file.allErrors is not empty) %} {% block title %} {{ project.name }} » Compilation errors {% endblock %} {% block content %} Home Errors {% if filesWithErrors is not empty %} Table of Contents {% set errorCount = 0 %} {% for file in project.files|filter(file => file.allErrors is not empty) %} {% if file.allerrors.count > 0 %} {{ file.path }} {{ file.allErrors.count }} {% endif %} {% set errorCount = errorCount + file.allerrors.count %} {% endfor %} {% endif %} {% if errorCount <= 0 %} No errors have been found in this project. {% endif %} {% for file in filesWithErrors %} {{ file.name }} Type Line Description {% for error in file.allerrors %} {{ error.severity }} {{ error.line }} {{ error.code|trans(error.context) }} {% endfor %} {% endfor %} {% endblock %}