{# GET /admin/workspace — crate::pages::admin::admin::ui::AdminWorkspace Also included by pages/admin.html for the first paint. Both structs expose the same `page: AdminPageState` field. #}

{{ nav.tr("admin-profiles") }}

{{ page.profiles.len() }}
{% if page.profiles.is_empty() %}

{{ nav.tr("admin-no-profiles-available") }}

{% else %} {% for profile in page.profiles %}
{% endfor %} {% endif %}

{{ nav.tr("admin-tables-heading") }}

{{ page.tables.len() }}
{% if page.selected_profile.is_none() %}

{{ nav.tr("admin-select-profile-first") }}

{% else if page.tables.is_empty() %} {% if page.is_global() %}

{{ nav.tr("admin-no-global-tables") }}

{% else %}

{{ nav.tr("admin-no-profile-tables") }}

{% endif %} {% else %} {% for table in page.tables %}
{# The actions for the table you are pointed at, next to the table itself. Each one is a page of its own; this pane is where you choose what to act on, so it is also where you say what to do. #} {% if page.selected_table.as_deref() == Some(table.name.as_str()) %} {% endif %} {% endfor %} {% if page.selected_table.is_none() %}

{{ nav.tr("admin-pick-table-hint") }}

{% endif %} {% endif %}
{% if page.can_manage_tables && page.selected_profile.is_some() %} {% endif %}

{{ nav.tr("admin-columns") }}

{{ page.column_counts_label(nav.locale) }}
{% if page.selected_table.is_none() %}

{{ nav.tr("admin-select-table-inspect") }}

{% else if page.columns.is_empty() %}

{{ nav.tr("admin-no-visible-columns") }}

{% else %} {% for column in page.user_columns() %}
{{ column.name }} {{ column.data_type }} {{ column.flags(nav.locale)|join(" · ") }}
{% endfor %} {% let system_columns = page.system_columns() %} {% if !system_columns.is_empty() %}

{{ nav.tr("admin-system-columns-label") }}

{% for column in system_columns %}
{{ column.name }} {{ column.data_type }} {{ column.flags(nav.locale)|join(" · ") }}
{% endfor %} {% endif %} {% endif %}