{% extends 'base.html.twig' %} {% import '_sidebar_tables.html.twig' as macros %} {% block title %}{{ tableName }} — Browse · Jormun Admin{% endblock %} {% block breadcrumbs %} Home / {{ tableName }} / Browse {% endblock %} {% block sidebar_tables %} {{ macros.sidebar_table_links(tables, tableName) }} {% endblock %} {% block content %} {# Op Tabs #} {# Error #} {% if error %}
{{ error }}
{% endif %} {# Stats row #} {% if not error %}
{{ tableName }} {{ (desc.TableStatus ?? 'UNKNOWN')|lower }} ~{{ (desc.ItemCount ?? 0)|number_format }} items showing {{ count }} of {{ scannedCount }} scanned
{% endif %} {# Main data card #}
Rows
{% if items is empty %}
No items found
This table is empty.
{% else %}
{% for col in columns %} {% endfor %} {% for item in items %} {% set itemKey = {} %} {% if keySchema.HASH is defined %} {% set itemKey = itemKey|merge({(keySchema.HASH.name): item[keySchema.HASH.name]}) %} {% endif %} {% if keySchema.RANGE is defined %} {% set itemKey = itemKey|merge({(keySchema.RANGE.name): item[keySchema.RANGE.name]}) %} {% endif %} {% for col in columns %} {% endfor %} {% endfor %}
Actions {{ col }} {% if keySchema.HASH is defined and keySchema.HASH.name == col %} PK {% endif %} {% if keySchema.RANGE is defined and keySchema.RANGE.name == col %} SK {% endif %}
{% if item[col] is defined %} {% set val = item[col] %} {% if val is iterable %} {{ val|json_encode|slice(0, 40) }}{% if val|json_encode|length > 40 %}…{% endif %} {% else %} {{ val|e|slice(0, 60) }}{% if (val|e|length) > 60 %}…{% endif %} {% endif %} {% else %} NULL {% endif %}
{# Pagination #}
Showing {{ count }} item{{ count != 1 ? 's' : '' }}
{% if prevKeys is not empty %} {% set prevStack = prevKeys[0:(prevKeys|length - 1)] %} {% set prevLastKey = prevKeys|last %} Prev {% endif %} {% if nextKey %} {% set newPrevKeys = prevKeys %} {% if currentKey %} {% set newPrevKeys = newPrevKeys|merge([currentKey]) %} {% else %} {# first page, push empty marker #} {% set newPrevKeys = newPrevKeys|merge(['null']) %} {% endif %} Next {% endif %}
{% endif %} {# Delete item modal #}
Delete Item

This will permanently delete the item with key:


            
{# Drop Table modal #}
Drop Table

Are you sure you want to drop {{ tableName }}? This action is irreversible and will delete all data.

{% endblock %} {% block scripts %} {% endblock %}