]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/templates/admin/logs/view.tpl
Advanced log view: Frio version
[friendica.git] / view / theme / frio / templates / admin / logs / view.tpl
1 <div id="adminpage">
2         <h1>{{$title}} - {{$page}}</h1>
3
4         <h3>{{$logname}}</h3>
5         {{if $error }}
6                 <div id="admin-error-message-wrapper" class="alert alert-warning">
7                         <p>{{$error nofilter}}</p>
8                 </div>
9                 {{else}}
10                 <table class="table table-hover">
11                         <thead>
12                                 <tr>
13                                         <th>Date</th>
14                                         <th>Level</th>
15                                         <th>Context</th>
16                                         <th>Message</th>
17                                 </tr>
18                         </thead>
19                         <tbody>
20                                 {{foreach $data as $row}}
21                                 <tr id="ev-{{$row->id}}" class="log-event"
22                                         data-data="{{$row->data}}" data-source="{{$row->source}}">
23                                         <td>{{$row->date}}</td>
24                                         <td class="
25                                                 {{if $row->level == "CRITICAL"}}bg-danger
26                                                 {{elseif $row->level == "ERROR"}}bg-danger
27                                                 {{elseif $row->level == "WARNING"}}bg-warinig
28                                                 {{elseif $row->level == "NOTICE"}}bg-info
29                                                 {{elseif $row->level == "DEBUG"}}text-muted
30                                                 {{/if}}
31                                            ">{{$row->level}}</td>
32                                         <td>{{$row->context}}</td>
33                                         <td style="width:80%">{{$row->message}}</td>
34                                 </tr>
35                                 {{/foreach}}
36                         </tbody>
37                 </table>
38                 {{/if}}
39 </div>
40
41 <div id="logdetail" class="modal fade" tabindex="-1" role="dialog">
42         <div class="modal-dialog modal-lg" style="width:90%" role="document">
43                 <div class="modal-content">
44                         <div class="modal-header">
45                                 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
46                                 <h4 class="modal-title">Event details</h4>
47                         </div>
48                         <div class="modal-body">
49                                 <table class="table main-data">
50                                         <thead>
51                                                 <tr>
52                                                         <th>Date</th>
53                                                         <th>Level</th>
54                                                         <th>Context</th>
55                                                         <th>Message</th>
56                                                 </tr>
57                                         </thead>
58                                         <tbody><tr></tr></tbody>
59                                 </table>
60                                 <table class="table source-data">
61                                         <thead>
62                                                 <tr>
63                                                         <th>File</th>
64                                                         <th>Line</th>
65                                                         <th>Function</th>
66                                                         <th>UID</th>
67                                                         <th>Process ID</th>
68                                                 </tr>
69                                         </thead>
70                                         <tbody>
71                                                 <tr>
72                                                         <td data-value="file"></td>
73                                                         <td data-value="line"></td>
74                                                         <td data-value="function" style="width:70%"></td>
75                                                         <td data-value="uid"></td>
76                                                         <td data-value="process_id"></td>
77                                                 </tr>
78                                         </tbody>
79                                 </table>
80
81
82                                 <div class="event-source">
83                                 </div>
84                                 <div class="event-data">
85                                 </div>
86
87                         </div>
88                         <div class="modal-footer">
89                                 <button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
90                         </div>
91                 </div><!-- /.modal-content -->
92         </div><!-- /.modal-dialog -->
93 </div><!-- /.modal -->