blob: e389137b7bbdd4881a686f20a86566a75c851e5f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
<div class="page-header">
<h1>{{lang_auditLogHeading}}</h1>
<p>{{lang_auditLogIntro}}</p>
</div>
{{#user}}
<p>
{{lang_currentlyFilteredByUser}}: <b>{{user}}</b>
<a class="btn btn-xs btn-danger" href="?do=session&show=audit">
<span class="glyphicon glyphicon-remove"></span>
{{lang_clearFilter}}
</a>
</p>
{{/user}}
{{{pagenav}}}
<table class="table">
<tr>
<th>{{lang_when}}</th>
<th>{{lang_responseCode}}</th>
<th>{{lang_user}}</th>
<th>{{lang_module}}</th>
<th>{{lang_action}}</th>
<th>{{lang_params}}</th>
</tr>
{{#list}}
<tr>
<td class="text-nowrap">{{dateline_s}}</td>
<td class="{{class}}">{{response}}</td>
<td>
{{^login}}{{ipaddr}}{{/login}}
{{#login}}
<a href="?do=session&show=audit&user={{userid}}">{{login}}</a>
{{/login}}
</td>
<td class="text-nowrap">{{module}}</td>
<td class="text-nowrap">{{action}}</td>
<td><table class="slx-ellipsis"><tr><td class="json-stuff slx-pointer" data-toggle="modal" data-target="#myModal">{{data}}</td></tr></table></td>
</tr>
{{/list}}
</table>
{{{pagenav}}}
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span
class="sr-only">{{lang_close}}</span></button>
<h4 class="modal-title" id="myModalLabel">{{lang_params}}</h4>
</div>
<div class="modal-body">
<pre id="details-body"></pre>
</div>
</div>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
$('.json-stuff').click(function() {
var txt = $(this).text();
txt = JSON.stringify(JSON.parse(txt), null, 2);
$('#details-body').text(txt);
});
});
</script>
|