mirror of https://github.com/jumpserver/jumpserver
fix log kill and asset detail bug
parent
5e5aab7962
commit
be2f0b2172
|
@ -51,7 +51,6 @@
|
|||
<input type="file" name="file_name" class="file" id="fileField" size="28" onchange="document.getElementById('textfield').value=this.value" />
|
||||
<button class="btn btn-primary btn-sm" type="submit">上传文件</button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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")
|
||||
});
|
||||
|
||||
}
|
||||
|
|
|
@ -92,7 +92,7 @@
|
|||
<table class="table progress-striped text-left">
|
||||
{% for user in users %}
|
||||
<tr class="gradeX">
|
||||
<td> <a href="{% url 'asset_detail' %}?id={{ user.id }}">{{ user.name }}</a> </td>
|
||||
<td> <a href="{% url 'user_detail' %}?id={{ user.id }}">{{ user.name }}</a> </td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
@ -101,12 +101,11 @@
|
|||
<table class="table progress-striped text-right">
|
||||
{% for group in user_groups %}
|
||||
<tr class="gradeX-">
|
||||
<td> <a href="{% url 'asset_list' %}?group_id={{ group.id }}">{{ group.name }}</a> </td>
|
||||
<td> <a href="{% url 'user_group_list' %}?group_id={{ group.id }}">{{ group.name }}</a> </td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
@ -145,7 +144,7 @@
|
|||
<table class="table progress-striped text-left">
|
||||
{% for asset in assets %}
|
||||
<tr class="gradeX">
|
||||
<td> <a href="{% url 'asset_list' %}?id={{ asset.id }}">{{ asset.ip }}</a> </td>
|
||||
<td> <a href="{% url 'asset_detail' %}?id={{ asset.id }}">{{ asset.ip }}</a> </td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
|
Loading…
Reference in New Issue