Merge #18363 - Fix colspan number for actions column on database table list

Pull-request: #18363

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2023-05-06 11:40:10 +02:00
commit ecc6c7f3da
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -209,16 +209,30 @@
{% else %}
{% if db_is_system_schema %}
{% set action_colspan = 3 %}
{% set action_colspan = 2 %}
{% else %}
{% set action_colspan = 6 %}
{% set action_colspan = 4 %}
{% endif %}
{% if num_favorite_tables > 0 %}
{% set action_colspan = action_colspan + 1 %}
{% endif %}
{% if show_charset %}
{% set action_colspan = action_colspan + 1 %}
{% endif %}
{% if show_comment %}
{% set action_colspan = action_colspan + 1 %}
{% endif %}
{% if show_creation %}
{% set action_colspan = action_colspan + 1 %}
{% endif %}
{% if show_last_update %}
{% set action_colspan = action_colspan + 1 %}
{% endif %}
{% if show_last_check %}
{% set action_colspan = action_colspan + 1 %}
{% endif %}
{% set colspan_for_structure = action_colspan + 3 %}
<td colspan="{{ colspan_for_structure - db_is_system_schema ? 6 : 9 }}"
<td colspan="{{ action_colspan }}"
class="text-center">
{% trans 'in use' %}
</td>