mirror of https://github.com/jumpserver/jumpserver
modify log
parent
4baffed481
commit
79e81340dc
|
@ -204,7 +204,8 @@ def _public_perm_api(info):
|
||||||
new_assets.extend(user_group_permed(user_group).get('assets', []))
|
new_assets.extend(user_group_permed(user_group).get('assets', []))
|
||||||
|
|
||||||
perm_info = {
|
perm_info = {
|
||||||
'new': {'action': 'new user: ' + user.name, 'users': [user], 'assets': new_assets}
|
'action': 'new user: ' + user.name,
|
||||||
|
'new': {'users': [user], 'assets': new_assets}
|
||||||
}
|
}
|
||||||
elif info.get('type') == 'edit_user':
|
elif info.get('type') == 'edit_user':
|
||||||
new_assets = []
|
new_assets = []
|
||||||
|
|
|
@ -40,7 +40,8 @@
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="text-center">日期</th>
|
<th class="text-center">日期</th>
|
||||||
<th class="text-center">结果</th>
|
<th class="text-center">动作</th>
|
||||||
|
<th class="text-center">成功</th>
|
||||||
<th class="text-center">完成</th>
|
<th class="text-center">完成</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -48,10 +49,13 @@
|
||||||
{% for log in logs %}
|
{% for log in logs %}
|
||||||
<tr class="gradeX">
|
<tr class="gradeX">
|
||||||
<td class="text-center"> {{ log.datetime | date:"Y-n-d G:i:s" }} </td>
|
<td class="text-center"> {{ log.datetime | date:"Y-n-d G:i:s" }} </td>
|
||||||
|
<td class="text-center"> {{ log.action }} </td>
|
||||||
<td class="text-center">
|
<td class="text-center">
|
||||||
{{ log.result | result2bool | safe }}
|
<a class="log_result" value="{{ log.results }}">
|
||||||
|
{{ log.is_success | yesno:"是,否,为止" }}
|
||||||
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td class="text-center"> {{ log.is_finished | yesno:"是,否,为止" }} </td>
|
<td class="text-center"> {{ log.is_finish | yesno:"是,否,为止" }} </td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -70,4 +74,15 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block self_footer_js %}
|
||||||
|
<script>
|
||||||
|
$('document').ready(function(){
|
||||||
|
$('.log_result').click(function(){
|
||||||
|
alert($(this).attr('value'))
|
||||||
|
})
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Reference in New Issue