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