{% extends "_layouts/cp" %} {% set title = "GraphQL Schemas"|t('app') %} {% requireEdition CraftPro %} {% set selectedSubnavItem = 'schemas' %} {% macro timestampCell(title, value) %} {% if value %}
| {{ "Schema name"|t('app') }} | {{ "Enabled"|t('app') }} | {{ "Last Used"|t('app') }} | {{ "Expires"|t('app') }} | {% for schema in schemas %} |
|---|---|---|
| {{ schema.isPublic ? 'Public Schema'|t('app') : schema.name }} | {% if schema.enabled %}{% endif %} | {{ _self.timestampCell('Last Used'|t('app'), schema.lastUsed) }} {{ _self.timestampCell('Expires'|t('app'), schema.expiryDate) }}{% if not schema.isPublic %} {% endif %} |