Bug 11317: (QA follow-up) Fix merge error and punctuation
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / access_files.tt
1 [% USE Asset %]
2 [% SET footerjs = 1 %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Report/log files</title>
5 [% INCLUDE 'doc-head-close.inc' %]
6 [% Asset.css("css/datatables.css") %]
7 </head>
8 <body>
9 [% INCLUDE 'header.inc' %]
10 [% INCLUDE 'cat-search.inc' %]
11
12 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; Report/log files</div>
13
14 <div id="doc3" class="yui-t2">
15    <div id="bd">
16     <div id="yui-main">
17     <div class="yui-b">
18
19     <h1>Report/log files</h1>
20
21 [% IF ( error_no_dir ) %]
22     <div class="dialog alert"><strong>Error: </strong>Report/log files could not be found because the "access_dir" option was not set in "koha-conf.xml". Contact your system administrator to add this option.</div>
23 [% ELSE %]
24     [% IF ( files_loop ) %]
25         <table id="files">
26             <thead>
27                 <tr>
28                     <th>Name</th>
29                     <th>Size (bytes)</th>
30                     <th>Date last modified</th>
31                 </tr>
32             </thead>
33             <tbody>
34                 [% FOREACH file IN files_loop %]
35                 <tr>
36                     <td><a href="/cgi-bin/koha/tools/access_files.pl?id=[% file.id |url %]">[% file.name %]</a></td>
37                     <td align="right">[% file.size %]</td>
38                     <td>[% file.date %]</td>
39                 </tr>
40                 [% END %]
41             </tbody>
42         </table>
43     [% ELSE %]
44         No file found.
45     [% END %]
46 [% END %]
47
48 </div>
49 </div>
50 <div class="yui-b">
51 [% INCLUDE 'tools-menu.inc' %]
52 </div>
53 </div>
54
55 [% MACRO jsinclude BLOCK %]
56     [% Asset.js("js/tools-menu.js") %]
57     [% INCLUDE 'datatables.inc' %]
58     <script type="text/javascript">
59     //<![CDATA[
60         $(document).ready(function() {
61             $("#files").dataTable($.extend(true, {}, dataTablesDefaults, {
62                 "sDom": 't',
63                 "aoColumnDefs": [
64                     { "aTargets": [ -1 ], "asSorting" : [ "desc", "asc" ], "bSearchable": false }
65                 ],
66                 "bPaginate": false
67             }));
68     });
69     //]]>
70 </script>
71 [% END %]
72 [% INCLUDE 'intranet-bottom.inc' %]