{% set views=None %} {% if views %}
# | Icon | Name | {% if view['attributes'] and view['attributes']['columns'] %} {% for column in view['attributes']['columns'] %}{{column['name']}} | {% endfor %} {% endif %}||
---|---|---|---|---|---|
{{loop.index}} | {% if item.attributes %} {{item.attributes['icon']}} {% endif %} | {% if item.attributes and item.attributes['resource'] %} {{item.name}} {% else %} {{item.name}} {% endif %} | {% if view['attributes'] and view['attributes']['columns'] %} {% for column in view['attributes']['columns'] %} {% if column['attributes']['target'] == 'type' %}{% if item.type is string %} {{item.type}} {% else %} {{item.instance.type.name}} {% endif %} | {% else %}{{item.attributes[column['attributes']['target']]}} | {% endif %} {% endfor %} {% endif %}
|