{% extends 'default/base.html' %} {% block content %} {% load auth %}
服务器授权信息
{% include "auth/active.html" %}
{% include "auth/ztree_js.html" %}
{% if user_data.first_name %}{{ user_data.first_name }} {% else %} {{ user_data.username }}{% endif %}- 服务器总数({{ node_count }})台

未分配权限主机

{% csrf_token %} {% for i in server_list %} {% if i.eth1 not in ip_list %} {% endif %} {% endfor %}
eth1 状态
{{ i.eth1 }}
{% if i.status == 0 %} {% elif i.status == 1 %} {% else %} {% endif %}
{# #}

已分配权限主机

{% for i in server_list %} {% if i.eth1 in ip_list %} {% endif %} {% endfor %}
eth1 状态 操作
{{ i.eth1 }}
{% if i.status == 0 %} {% elif i.status == 1 %} {% else %} {% endif %}
删除
{% endblock %}