{{ get_icon('s_db', has_statistics ? 'Databases statistics'|trans : 'Databases'|trans) }}

{% if is_create_database_shown %}
{{ get_icon('b_newdb', 'Create database'|trans) }} {{ show_mysql_docu('CREATE_DATABASE') }}
{% if has_create_database_privileges %}
{{ get_hidden_inputs('', '') }} {% if has_statistics %} {% endif %}
{% if charsets is not empty %}
{% endif %}
{% else %} {{ get_icon('s_error', 'No privileges to create databases'|trans) }} {% endif %}
{% endif %} {% if database_count > 0 %}
{% if is_drop_allowed %}
{% endif %}
{{ get_image('b_search', 'Search'|trans) }}
{{ get_list_navigator( database_count, pos, url_params, url('/server/databases'), 'frame_content', max_db_list ) }}
{{ get_hidden_inputs(url_params) }}
{% if is_drop_allowed %} {% endif %} {% if has_statistics %} {% for name, statistic in header_statistics %} {{ statistic.title }} {% if url_params.sort_by == name %} {% if url_params.sort_order == 'asc' %} {{ get_image('s_asc', 'Ascending'|trans) }} {% else %} {{ get_image('s_desc', 'Descending'|trans) }} {% endif %} {% endif %} {% endfor %} {% endif %} {% if has_primary_replication %} {% endif %} {% if has_replica_replication %} {% endif %} {% for database in databases %} {% if is_drop_allowed %} {% endif %} {% if has_statistics %} {% for statistic in database.statistics %} {% if statistic.format is same as('byte') %} {% set value = format_byte_down(statistic.raw, 3, 1) %} {% else %} {% endif %} {% endfor %} {% endif %} {% if database.replication.primary.status %} {% if database.replication.primary.is_replicated %} {% else %} {% endif %} {% endif %} {% if database.replication.replica.status %} {% if database.replication.replica.is_replicated %} {% else %} {% endif %} {% endif %} {% endfor %} {% if has_statistics %} {% for statistic in total_statistics %} {% if statistic.format is same as('byte') %} {% set value = format_byte_down(statistic.raw, 3, 1) %} {% else %} {% endif %} {% endfor %} {% endif %} {% if has_primary_replication %} {% endif %} {% if has_replica_replication %} {% endif %}
{% trans 'Database' %} {% if url_params.sort_by == 'SCHEMA_NAME' %} {% if url_params.sort_order == 'asc' %} {{ get_image('s_asc', 'Ascending'|trans) }} {% else %} {{ get_image('s_desc', 'Descending'|trans) }} {% endif %} {% endif %} {% trans 'Collation' %} {% if url_params.sort_by == 'DEFAULT_COLLATION_NAME' %} {% if url_params.sort_order == 'asc' %} {{ get_image('s_asc', 'Ascending'|trans) }} {% else %} {{ get_image('s_desc', 'Descending'|trans) }} {% endif %} {% endif %} {% trans 'Primary replication' %}{% trans 'Replica replication' %}{% trans 'Action' %}
{{ database.name }} {{ database.collation.name }} {{ value[0] }} {{ value[1] }} {{ format_number(statistic.raw, 0) }} {{ get_icon('s_success', 'Replicated'|trans) }} {{ get_icon('s_cancel', 'Not replicated'|trans) }} {{ get_icon('s_success', 'Replicated'|trans) }} {{ get_icon('s_cancel', 'Not replicated'|trans) }} {{ get_icon('s_rights', 'Check privileges'|trans) }}
{% trans 'Total:' %} {{- database_count -}} {{ value[0] }} {{ value[1] }} {{ format_number(statistic.raw, 0) }}
{% if not has_statistics %}
{% trans 'Enable statistics' %}
{% endif %} {% else %} {% endif %}
{% if is_drop_allowed %} {% endif %}