diff --git a/templates/jperm/perm_role_detail.html b/templates/jperm/perm_role_detail.html index f9ceefc43..475d8e3d3 100644 --- a/templates/jperm/perm_role_detail.html +++ b/templates/jperm/perm_role_detail.html @@ -30,21 +30,15 @@
- - - - - - - - +
时间名称
+ + {% for rule in rules %} - - + + {% endfor %} -
时间名称
{{ rule.date_added | date:"Y-m-d H:i:s"}} {{ rule.name }} {{ rule.date_added | date:"Y-m-d H:i:s"}} {{ rule.name }}
@@ -74,38 +68,31 @@
-
- - - - - - +
+
用户
+ + + + + - - {% for user in users %} - - - - {% endfor %} - -
用户用户组
+ + {% for user in users %} + + + + {% endfor %} +
{{ user.name }}
+
+ + {% for group in user_groups %} + + + + {% endfor %} +
{{ group.name }}
+
{{ user.name }}
-
-
- - - - - - - - - {% for group in user_groups %} - - - - {% endfor %} - +
用户组
{{ group.name }}
@@ -114,7 +101,7 @@
- 授权主机/主机组 + 授权主机组/主机组
-
- - - - - {% for asset in assets %} - - - - {% endfor %} -
主机
{{ asset.ip }}
-
-
- - - - - {% for group in asset_groups %} - - - - {% endfor %} +
+
主机组
{{ group.name }}
+ + + + + + +
主机主机组
+ + {% for asset in assets %} + + + + {% endfor %} +
{{ asset.ip }}
+
+ + {% for group in asset_groups %} + + + + {% endfor %} +
{{ group.name }}
+
diff --git a/templates/jperm/perm_rule_detail.html b/templates/jperm/perm_rule_detail.html index e9184253e..ccecce500 100644 --- a/templates/jperm/perm_rule_detail.html +++ b/templates/jperm/perm_rule_detail.html @@ -83,38 +83,31 @@
-
- - - - - - +
+
用户
+ + + + + - - {% for user in users %} - - - - {% endfor %} - -
用户用户组
+ + {% for user in users %} + + + + {% endfor %} +
{{ user.name }}
+
+ + {% for group in user_groups %} + + + + {% endfor %} +
{{ group.name }}
+
{{ user.name }}
-
-
- - - - - - - - - {% for group in user_groups %} - - - - {% endfor %} - +
用户组
{{ group.name }}
@@ -123,7 +116,7 @@
-
- - - - - {% for asset in assets %} - - - - {% endfor %} -
主机
{{ asset.ip }}
-
-
- - - - - {% for group in asset_groups %} - - - - {% endfor %} +
+
主机组
{{ group.name }}
+ + + + + + +
主机主机组
+ + {% for asset in assets %} + + + + {% endfor %} +
{{ asset.ip }}
+
+ + {% for group in asset_groups %} + + + + {% endfor %} +
{{ group.name }}
+