From 1cd5ce9ccc9ce28d83bc8e2a18506b3eb4f57a7f Mon Sep 17 00:00:00 2001 From: Matt Scott Date: Sun, 19 Feb 2023 10:45:19 -0500 Subject: [PATCH] Working on dashboard zone list action controls and styling. --- powerdnsadmin/templates/dashboard_domain.html | 110 +++++++++--------- 1 file changed, 54 insertions(+), 56 deletions(-) diff --git a/powerdnsadmin/templates/dashboard_domain.html b/powerdnsadmin/templates/dashboard_domain.html index d9acdeb..53d1cfe 100644 --- a/powerdnsadmin/templates/dashboard_domain.html +++ b/powerdnsadmin/templates/dashboard_domain.html @@ -1,17 +1,23 @@ {% macro name(domain) %} - {{ domain.name | pretty_domain_name }} + {{ domain.name | pretty_domain_name }} {% endmacro %} {% macro dnssec(domain) %} - {% if domain.dnssec %} -  Enabled - {% else %} -  Disabled - {% endif %} + {% if domain.dnssec %} + + + + {% else %} + + + + {% endif %} {% endmacro %} {% macro type(domain) %} - {{ domain.type | format_zone_type }} + {{ domain.type | format_zone_type }} {% endmacro %} {% macro serial(domain) %} @@ -19,61 +25,53 @@ {% endmacro %} {% macro master(domain) %} - {% if domain.master == '[]'%}N/A{% else %}{{ domain.master | display_master_name }}{% endif %} + {% if domain.master == '[]' %}N/A{% else %}{{ domain.master | display_master_name }}{% endif %} {% endmacro %} {% macro account(domain) %} {% if current_user.role.name in ['Administrator', 'Operator'] %} - {{ domain.account.name if domain.account else 'None' }} + {{ domain.account.name if domain.account else 'None' }} {% endif %} {% endmacro %} {% macro actions(domain) %} - - - - + + + {% endmacro %}