{% extends "base.html" %} {% block title %}{{ _('Database Information') }}{% endblock %} {% block content %}

{{ _('Database Information') }}

{{ _('Back') }}
{{ _('Connection Information') }}
{{ _('Connection URL') }}:
{{ current_url }}
{{ _('Main Tables') }}
{{ _('Table') }} {{ _('Number of Records') }} {{ _('Description') }}
site_table {{ table_counts.get('site_table', 0) }} {{ _('Archaeological sites') }}
us_table {{ table_counts.get('us_table', 0) }} {{ _('Stratigraphic units') }}
inventario_materiali_table {{ table_counts.get('inventario_materiali_table', 0) }} {{ _('Material inventory') }}
{% if tables %}
{{ _('All Tables') }} ({{ tables|length }})
{% for table in tables %}
{{ table }}
{% endfor %}
{% endif %}
{{ _('Database Status') }}
{{ _('Active Connection') }}

{{ _('Database reachable and operational') }}

{% if tables|length > 0 %}
{{ _('Valid Structure') }}

{{ tables|length }} {{ _('tables found') }}

{% else %}
{{ _('No Tables') }}

{{ _('Empty or incompatible database') }}

{% endif %}
{% set total_records = table_counts.get('site_table', 0) + table_counts.get('us_table', 0) + table_counts.get('inventario_materiali_table', 0) %} {% if total_records > 0 %}
{{ _('Data Present') }}

{{ total_records }} {{ _('total records') }}

{% else %}
{{ _('Empty Database') }}

{{ _('No data present') }}

{% endif %}
{% endblock %}