diff --git a/powerdnsadmin/templates/base.html b/powerdnsadmin/templates/base.html index be5c99c..a95737c 100644 --- a/powerdnsadmin/templates/base.html +++ b/powerdnsadmin/templates/base.html @@ -123,7 +123,7 @@
  • - +

    History

  • @@ -135,7 +135,7 @@
  • - +

    Accounts

  • @@ -163,26 +163,26 @@ {% if active_page == 'admin_settings' %}style="display: block;"{% endif %}> {% if current_user.role.name == 'Administrator' %} diff --git a/powerdnsadmin/templates/dashboard.html b/powerdnsadmin/templates/dashboard.html index c6ff50d..9cf0c5f 100755 --- a/powerdnsadmin/templates/dashboard.html +++ b/powerdnsadmin/templates/dashboard.html @@ -262,10 +262,6 @@ "ordering": true, "columnDefs": [ {"orderable": false, "targets": [-1]} - {% if current_user.role.name not in ['Administrator', 'Operator'] %},{ - "visible": false, - "targets": [-2] - }{% endif %} ], "processing": true, "serverSide": true, diff --git a/powerdnsadmin/templates/dashboard_domain.html b/powerdnsadmin/templates/dashboard_domain.html index 53d1cfe..489fdbc 100644 --- a/powerdnsadmin/templates/dashboard_domain.html +++ b/powerdnsadmin/templates/dashboard_domain.html @@ -31,6 +31,8 @@ {% macro account(domain) %} {% if current_user.role.name in ['Administrator', 'Operator'] %} {{ domain.account.name if domain.account else 'None' }} + {% else %} + None {% endif %} {% endmacro %}