{% spaceless %} {% set structure = structure is defined ? structure : null -%} {% set structureEditable = structureEditable is defined ? structureEditable : false -%} {% if structure -%} {% set basePadding = (context == 'index' ? 20 + (showCheckboxes ? 7 : 0) + (structureEditable ? 14 : 0) : 7) %} {% set padding = craft.app.locale.getOrientation() == 'ltr' ? 'left' : 'right' -%} {% endif -%} {% for element in elements %} {% if showCheckboxes %}
{% endif %} {% for attribute in attributes %} {% if loop.first %} {%- if structureEditable %} {% endif %} {%- if structure and element.getHasDescendants() %}{% endif %} {%- include "_elements/element" -%} {% else %} {{- element.getTableAttributeHtml(attribute[0])|raw -}} {% endif %} {% endfor %} {% endfor %} {% endspaceless -%}