40 lines
1.4 KiB
Twig
40 lines
1.4 KiB
Twig
<thead>
|
|
<tr>
|
|
{% if is_superuser or allow_user_drop_database %}
|
|
<th></th>
|
|
{% endif %}
|
|
<th>
|
|
<a href="server_databases.php{{ Url_getCommon(url_params) }}">
|
|
{% trans 'Database' %}
|
|
{{ sort_by == 'SCHEMA_NAME' ? Util_getImage(
|
|
's_' ~ sort_order,
|
|
sort_order_text
|
|
) }}
|
|
</a>
|
|
</th>
|
|
{% for stat_name, stat in column_order if stat_name in first_database|keys %}
|
|
{% set url_params = url_params|merge({
|
|
'sort_by': stat_name,
|
|
'sort_order': sort_by == stat_name and sort_order == 'desc' ? 'asc' : 'desc'
|
|
}) %}
|
|
|
|
<th{{ stat['format'] is same as('byte') ? ' colspan="2"' }}>
|
|
<a href="server_databases.php{{ Url_getCommon(url_params) }}">
|
|
{{ stat['disp_name'] }}
|
|
{{ sort_by == stat_name ? Util_getImage(
|
|
's_' ~ sort_order,
|
|
sort_order_text
|
|
) }}
|
|
</a>
|
|
</th>
|
|
{% endfor %}
|
|
{% if master_replication %}
|
|
<th>{% trans 'Master replication' %}</th>
|
|
{% endif %}
|
|
{% if slave_replication %}
|
|
<th>{% trans 'Slave replication' %}</th>
|
|
{% endif %}
|
|
<th>{% trans 'Action' %}</th>
|
|
</tr>
|
|
</thead>
|