{% extends 'base.html' %} {% load mytags %} {% block content %} {% include 'nav_cat_bar.html' %}
Sudo授权详情
{% for user in users_list %} {% endfor %}
用户名 姓名 部门 属组
{{ user.username }} {{ user.name }} {{ user.dept.name }} {{ user.group.all | group_str2}}
授权主机 Asset.
{% for asset in assets_list %} {% endfor %}
IP IDC 主机组
{{ asset.ip }} {{ asset.idc.name }} {% for group in asset.bis_group.all|filter_private %} {{ group }} {% endfor %}
授权命令 Command.
{% for cmd_group in cmds_list %} {% for cmd_group_name, cmds in cmd_group.items %} {% for cmd in cmds %} {% endfor %} {% endfor %} {% endfor %}
命令 命令组
{{ cmd }} {{ cmd_group_name }}
{% endblock %}