source: trunk/LATMOS-Accounts-Web/root/html/includes/object_log.tt @ 2259

Last change on this file since 2259 was 2259, checked in by nanardon, 5 years ago

Add log page to users objects

File size: 612 bytes
Line 
1
2[% IF c.model('Accounts').db.check_acl(LogObj, 'log', 'r') %]
3
4[% FOREACH log = c.model('Accounts').base.getobjectlogs(LogObj.type, LogObj.id).reverse() %]
5
6[% IF loop.first %]
7<table border=1>
8<tr>
9<th>[% l('timestamp') %]</th>
10<th>[% l('user') %]</th>
11<th>[% l('object') %]</th>
12<th>[% l('message') %]</th>
13[% END %]
14
15<tr>
16<td>
17[% log.logdate | html %]
18</td>
19
20<td>
21[% log.username | html %]
22</td>
23
24<td>
25[% log.otype | html %] /
26[% log.name | html %]
27</td>
28
29<td>
30[% log.message | html %]
31</td>
32
33</tr>
34
35[% IF loop.last %]
36</table>
37[% END %]
38
39[% END %]
40
41[% ELSE %]
42<p class=error>Permission denied</p>
43[% END %]
Note: See TracBrowser for help on using the repository browser.