diff --git a/site/plugins/admin/templates/content/entries/index.html b/site/plugins/admin/templates/content/entries/index.html index 0618cf99..a2118694 100644 --- a/site/plugins/admin/templates/content/entries/index.html +++ b/site/plugins/admin/templates/content/entries/index.html @@ -1,130 +1,252 @@ {% extends "plugins/admin/templates/partials/base.html" %} {% block content %} -{% if entries_list|length > 0 %} -
- {% if entry.fieldset %} - {% set fieldset_path = PATH_FIELDSETS ~ '/' ~ entry.fieldset ~ '.yaml' %} - {% if filesystem_has(fieldset_path) %} - {% set fieldset = parser_decode(filesystem_read(fieldset_path), 'yaml') %} - {% if fieldset.icon %} - - {% else %} - - {% endif %} - {% else %} - - {% endif %} - {% else %} - - {% endif %} - | -
- {% if cache.contains(entry.slug ~ '_counter') %}
+ {% if entries_list | length > 0 %}
+ {% if items_view == 'table' %}
+
+ {% for entry in entries_list %}
+ {% if cache.contains(entry.slug ~ '_counter') %}
{% set _entries_length = cache.fetch(entry.slug ~ '_counter') %}
- {% else %}
- {% set _entries = entries.fetch(entry.slug, {}) %}
- {% set _entries_length = _entries|length %}
- {% do cache.save(entry.slug ~ '_counter', _entries_length) %}
- {% endif %}
-
- {% if entry.fieldset %}
- {% if filesystem_has(fieldset_path) %}
- {% if fieldset.default_field %}
- {% if entry[fieldset.default_field] != '' %}
- {{ entry[fieldset.default_field] }}
- {% else %}
- {{ entry.slug }}
- {% endif %}
- {% else %}
- {{ entry.slug }}
- {% endif %}
- {% else %}
- {{ entry.slug }}
- {% endif %}
- {% else %}
- {{ entry.slug }}
- {% endif %}
- {% if _entries_length > 0 %}
- ({{ _entries_length }})
- {% endif %}
-
- |
-
-
-
-
-
- |
-