Don't escape foldername too much
[squasher.git] / templates / logs.tpl
1 {extends file='layout.tpl'}
2
3
4 {block menu}
5 <div class="menu">
6         <div class="menuhead">logs</div>
7         <a {if $logtype eq "all"     }class="selected"{/if} href="?tools=logs&amp;logtype=all"     >all</a>
8         <a {if $logtype eq "delete"  }class="selected"{/if} href="?tools=logs&amp;logtype=delete"  >delete</a>
9         <a {if $logtype eq "download"}class="selected"{/if} href="?tools=logs&amp;logtype=download">download</a>
10         <a {if $logtype eq "login"   }class="selected"{/if} href="?tools=logs&amp;logtype=login"   >login</a>
11         <a {if $logtype eq "debug"   }class="selected"{/if} href="?tools=logs&amp;logtype=debug"   >squasher</a>
12 </div>
13 {/block}
14
15
16 {block content}
17
18 {function logheader}
19         <tr>
20                 <th colspan=5>{$text|escape}
21 {/function}
22
23 {function loglines}
24         {foreach item=entry from=$logentries key=id}
25         <tr class="logentry_{$entry.action|escape}">
26                 <td>{$entry.date|escape}
27                 <td>{$entry.user_name|escape}
28                 <td title="{$entry.users_from_ip|escape}">{$entry.ip|escape}
29                 <td>{$entry.action|escape}
30                 <td title="{$entry.file|escape}{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}">{$entry.file|truncate:64|escape}
31         {foreachelse}
32         <tr class="logentry_empty">
33                 <td colspan=3><hr>
34                 <td>Log is empty
35                 <td><hr>
36         {/foreach}
37 {/function}
38
39 <table class="log">
40         <col width=160>
41         <col width=40>
42         <col width=120>
43         <col width=80>
44         <col>
45
46         {logheader text="Today"}
47         {loglines logentries=$logs.today}
48
49         {logheader text="Yesterday"}
50         {loglines logentries=$logs.yesterday}
51
52         {logheader text="Last week"}
53         {loglines logentries=$logs.lastweek}
54
55         {logheader text="Older"}
56         {loglines logentries=$logs.older}
57 </table>
58 {/block}
59
60 {* vim: set syntax=smarty ts=4 sw=4 sts=4 sr noet: *}