From 7714cbf39abf85901483352e7c7ecb85d002d04f Mon Sep 17 00:00:00 2001 From: Liviu-Mihail Concioiu Date: Fri, 21 Apr 2023 17:55:14 +0200 Subject: [PATCH] Fix colspan number Signed-off-by: Liviu-Mihail Concioiu --- .../structure/structure_table_row.twig | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/templates/database/structure/structure_table_row.twig b/templates/database/structure/structure_table_row.twig index f01487f51d..cd82874047 100644 --- a/templates/database/structure/structure_table_row.twig +++ b/templates/database/structure/structure_table_row.twig @@ -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 %} - {% trans 'in use' %}