4d7b810545b557effb80d4f50c1ef315cf3b9e50
[squasher.git] / templates / logs.tpl
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
5 <link rel=stylesheet href="css/squasher.css">
6 <title>Squasher</title>
7 </head>
8 <body>
9 <div class="wrappercontainer">
10
11         <div class="banner">&nbsp;<div class="control">{if $user_level > 99}<a href="?">home</a>&nbsp;|&nbsp;<a href="?tools=access">access</a>&nbsp;|&nbsp;<a href="?tools=users">users</a>&nbsp;|&nbsp;<a href="?tools=logs">logs</a>&nbsp;|{/if}&nbsp;<a href="index.php?tools=logout">logout({$user_name})</a>&nbsp;</div></div>
12
13         <div class="menucontainer">
14
15                 <div class="menu">
16
17                         <div class="menuhead">logs</div>
18
19                         <a {if $logtype eq "all"     }class="selected"{/if} href="?tools=logs&logtype=all"     >all</a>
20                         <a {if $logtype eq "delete"  }class="selected"{/if} href="?tools=logs&logtype=delete"  >delete</a>
21                         <a {if $logtype eq "download"}class="selected"{/if} href="?tools=logs&logtype=download">download</a>
22                         <a {if $logtype eq "login"   }class="selected"{/if} href="?tools=logs&logtype=login"   >login</a>
23                         <a {if $logtype eq "debug"   }class="selected"{/if} href="?tools=logs&logtype=debug"   >squasher</a>
24
25                 </div>
26
27         </div>
28
29 <div class="content">
30   <table class="log">
31
32    <tr class="logentry_header">
33     <td width='*' colspan="5">Today</td>
34    </tr>
35
36 {foreach item=entry from=$logs.today key=id}
37    <tr class="logentry_{$entry.action}" align="left">
38     <td width='160px'>&nbsp;{$entry.date}</td>
39     <td width='40px' >&nbsp;{$entry.user_name}</td>
40     <td width='120px' title="{$entry.users_from_ip}">&nbsp;{$entry.ip}</td>
41     <td width='80px' >&nbsp;{$entry.action}</td>
42     <td width='*' title="{$entry.file|substr:10}{if $entry.ip eq 'retry'}\n : This file did not pass validation. A request was mailed to the RO to restart the upload.{/if}{if $entry.ip eq 'cleanup'}\n : This file entry was missing all chunks. This entry was removed.{/if}">&nbsp;{$entry.file|substr:10:64}</td>
43    </tr>
44 {foreachelse}
45    <tr class="logentry_empty">
46     <td width='*' colspan="3"><hr></td>
47     <td width='120px'>Log is empty</td>
48     <td width='*'><hr></td>
49    </tr>
50 {/foreach}
51
52    <tr class="logentry_header">
53     <td width='*' colspan="5">Yesterday</td>
54    </tr>
55
56 {foreach item=entry from=$logs.yesterday key=id}   <tr class="logentry_{$entry.action}" align="left">
57     <td width='160px'>&nbsp;{$entry.date}</td>
58     <td width='40px' >&nbsp;{$entry.user_name}</td>
59     <td width='120px' title="{$entry.users_from_ip}">&nbsp;{$entry.ip}</td>
60     <td width='80px'>&nbsp;{$entry.action}</td>
61     <td width='*' title="{$entry.file|substr:10}{if $entry.ip eq 'retry'}\n : This file did not pass validation. A request was mailed to the RO to restart the upload.{/if}{if $entry.ip eq 'cleanup'}\n : This file entry was missing all chunks. This entry was removed.{/if}">&nbsp;{$entry.file|substr:10:64}</td>
62    </tr>
63 {foreachelse}
64    <tr class="logentry_empty">
65     <td width='*' colspan="3"><hr></td>
66     <td width='120px'>Log is empty</td>
67     <td width='*'><hr></td>
68    </tr>
69 {/foreach}
70
71    <tr class="logentry_header">
72     <td width='*' colspan="5">Last week</td>
73    </tr>
74
75 {foreach item=entry from=$logs.lastweek key=id}
76    <tr class="logentry_{$entry.action}" align="left">
77     <td width='160px'>&nbsp;{$entry.date}</td>
78     <td width='40px' >&nbsp;{$entry.user_name}</td>
79     <td width='120px' title="{$entry.users_from_ip}">&nbsp;{$entry.ip}</td>
80     <td width='80px'>&nbsp;{$entry.action}</td>
81     <td width='*' title="{$entry.file|substr:10}{if $entry.ip eq 'retry'}\n : This file did not pass validation. A request was mailed to the RO to restart the upload.{/if}{if $entry.ip eq 'cleanup'}\n : This file entry was missing all chunks. This entry was removed.{/if}">&nbsp;{$entry.file|substr:10:64}</td>
82    </tr>
83 {foreachelse}
84    <tr class="logentry_empty">
85     <td width='*' colspan="3"><hr></td>
86     <td width='120px'>Log is empty</td>
87     <td width='*'><hr></td>
88    </tr>
89 {/foreach}
90
91    <tr class="logentry_header">
92     <td width='*' colspan="5">Older</td>
93    </tr>
94
95 {foreach item=entry from=$logs.older key=id}
96    <tr class="logentry_{$entry.action}" align="left">
97     <td width='160px'>&nbsp;{$entry.date}</td>
98     <td width='40px' >&nbsp;{$entry.user_name}</td>
99     <td width='120px' title="{$entry.users_from_ip}">&nbsp;{$entry.ip}</td>
100     <td width='80px'>&nbsp;{$entry.action}</td>
101     <td width='*' title="{$entry.file|substr:10}{if $entry.ip eq 'retry'}\n : This file did not pass validation. A request was mailed to the RO to restart the upload.{/if}{if $entry.ip eq 'cleanup'}\n : This file entry was missing all chunks. This entry was removed.{/if}">&nbsp;{$entry.file|substr:10:64}</td>
102    </tr>
103 {foreachelse}
104    <tr class="logentry_empty">
105     <td width='*' colspan="3"><hr></td>
106     <td width='120px'>Log is empty</td>
107     <td width='*'><hr></td>
108    </tr>
109 {/foreach}
110   </table>
111 </div>
112
113         <div class="bottomimage"></div>
114         <div class="footer">&nbsp;</div>
115 </div>
116 {if $debug}{debug}{/if}
117 </body>
118 </html>