From c03f5c4f9eea9ea5e2586fb247d942c05b234d8e Mon Sep 17 00:00:00 2001 From: Kristian Feldsam Date: Tue, 8 Aug 2023 00:01:00 +0200 Subject: [PATCH] Dashboard domains table - join actions into single column Signed-off-by: Kristian Feldsam dfdas Signed-off-by: Kristian Feldsam --- powerdnsadmin/templates/domain.html | 37 +++++++++-------------------- 1 file changed, 11 insertions(+), 26 deletions(-) diff --git a/powerdnsadmin/templates/domain.html b/powerdnsadmin/templates/domain.html index ebd0f2c..2cef52f 100755 --- a/powerdnsadmin/templates/domain.html +++ b/powerdnsadmin/templates/domain.html @@ -86,11 +86,7 @@ Data {% if domain.type != 'Slave' %} Comment - Edit - Delete - {% if current_user.role.name in ['Administrator', 'Operator'] or allow_user_view_history %} - Changelog - {% endif %} + Actions {% else %} Invisible Sorting Column {% endif %} @@ -108,7 +104,7 @@ {{ record.comment }} {% if record.is_allowed_edit() %} - {% else %} @@ -116,23 +112,19 @@ {% endif %} - - {% if record.is_allowed_delete() %} - {% endif %} - - {% if current_user.role.name in ['Administrator', 'Operator'] or allow_user_view_history %} - - - - {% endif %} + {% endif %} + {% endif %} 1 @@ -155,6 +147,7 @@ table#tbl_records thead th:nth-child(2), table#tbl_records thead th:nth-child(3), table#tbl_records thead th:nth-child(4) { width: 100px; } + table#tbl_records thead th:nth-child(7) { width: 80px; } table#tbl_records tbody td { text-align: center; } table#tbl_records tbody td:nth-child(0n+5), table#tbl_records tbody td:nth-child(0n+6) { text-align: left; word-break: break-all; } @@ -203,11 +196,7 @@ // regardless of whatever sorting is done. See orderFixed visible: false, {% if domain.type != 'Slave' %} - {% if current_user.role.name in ['Administrator', 'Operator'] or allow_user_view_history %} - targets: [9] - {% else %} - targets: [8] - {% endif %} + targets: [7] {% else %} targets: [5] {% endif %} @@ -225,11 +214,7 @@ } ], {% if domain.type != 'Slave' %} - {% if current_user.role.name in ['Administrator', 'Operator'] or allow_user_view_history %} - "orderFixed": [[9, 'asc']] - {% else %} - "orderFixed": [[8, 'asc']] - {% endif %} + "orderFixed": [[7, 'asc']] {% else %} "orderFixed": [[5, 'asc']] {% endif %}