{% extends "base.html" %} {% block title %}{{ project.name }}{% endblock %} {% block content %}
{{ project.objects | length }} object{{ 's' if project.objects | length != 1 else '' }} — {% set counts = {} %} {% for obj in project.objects %} {% if obj.obj_type not in counts %}{% set _ = counts.update({obj.obj_type: 0}) %}{% endif %} {% set _ = counts.update({obj.obj_type: counts[obj.obj_type] + 1}) %} {% endfor %} {% for type_key, label in [('function_block','function block'), ('program','program'), ('function','function'), ('interface','interface'), ('gvl','GVL'), ('struct','struct'), ('enum','enum')] %} {% if counts.get(type_key, 0) > 0 %} {{ counts[type_key] }} {{ label }}{{ 's' if counts[type_key] != 1 else '' }} {% endif %} {% endfor %}
| Name | Description |
|---|---|
| {{ type_badge(obj.obj_type) }} {{ obj.name }} | {{ obj.comment.description | truncate(120) if obj.comment.description else '' }} |