From be2f0b217264c29f37565d24d50e4ff1ffc30506 Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 14 Dec 2015 16:54:49 +0800 Subject: [PATCH] fix log kill and asset detail bug --- templates/jasset/asset_add_batch.html | 1 - templates/jlog/log_online.html | 4 +- templates/jperm/perm_rule_detail.html | 59 +++++++++++++-------------- 3 files changed, 31 insertions(+), 33 deletions(-) diff --git a/templates/jasset/asset_add_batch.html b/templates/jasset/asset_add_batch.html index b3cab59c0..abc5993aa 100644 --- a/templates/jasset/asset_add_batch.html +++ b/templates/jasset/asset_add_batch.html @@ -51,7 +51,6 @@ - diff --git a/templates/jlog/log_online.html b/templates/jlog/log_online.html index 4f6565a90..6f02de861 100644 --- a/templates/jlog/log_online.html +++ b/templates/jlog/log_online.html @@ -207,13 +207,13 @@ if (login_type=='web'){ var g_url = '{{ web_kill_uri }}' + '?id=' + num; } else { - var g_url = "/jlog/log_kill/?id=" + num; + var g_url = "{% url 'log_kill' %} }?id=" + num; } $.ajax({ type: "GET", url: g_url+"&sessionid={{ session_id }}", - success: window.open("/jlog/log_list/online/", "_self") + success: window.open("{% url 'log_list' 'online' %}", "_self") }); } diff --git a/templates/jperm/perm_rule_detail.html b/templates/jperm/perm_rule_detail.html index c099fd7e1..3ae78a4bf 100644 --- a/templates/jperm/perm_rule_detail.html +++ b/templates/jperm/perm_rule_detail.html @@ -83,36 +83,35 @@
-
- - - - - - - - -
用户用户组
- - {% for user in users %} - - - - {% endfor %} -
{{ user.name }}
-
- - {% for group in user_groups %} - - - - {% endfor %} -
{{ group.name }}
-
-
-
- +
+ + + + + + + +
用户用户组
+ + {% for user in users %} + + + + {% endfor %} +
{{ user.name }}
+
+ + {% for group in user_groups %} + + + + {% endfor %} +
{{ group.name }}
+
+
+ +
@@ -145,7 +144,7 @@ {% for asset in assets %} - + {% endfor %}
{{ asset.ip }} {{ asset.ip }}