{% import "_includes/forms" as forms %} {% do view.registerAssetBundle("putyourlightson\\blitz\\assets\\BlitzAsset") %}

{{ "Cached Pages"|t('blitz') }}

{% set cols = { heading: { type: 'heading', heading: "Site"|t('blitz'), }, cacheFolderPath: { type: 'html', heading: "Cache Folder Path"|t('blitz'), class: 'code', }, cachedPages: { type: 'html', heading: "Cached Pages"|t('blitz'), }, } %} {% set rows = [] %} {% for site in sites %} {% set rows = rows|merge([{ heading: site.name, cacheFolderPath: site.path, cachedPages: site.count, }]) %} {% endfor %} {{ forms.editableTableField({ name: 'cachedSites', id: 'cachedSites', cols: cols, rows: rows, staticRows: true, }) }}