View | Details | Raw Unified | Return to bug 21695
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/access_files.tt (-18 / +22 lines)
Lines 1-5 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Asset %]
2
[% USE Asset %]
3
[% USE KohaDates %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Access files</title>
6
<title>Access files</title>
Lines 12-21 Link Here
12
13
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
<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
15
<div id="doc3" class="yui-t2">
16
<div class="main container-fluid">
16
   <div id="bd">
17
    <div class="row">
17
    <div id="yui-main">
18
        <div class="col-sm-10 col-sm-push-2">
18
    <div class="yui-b">
19
            <main>
19
20
20
    <h1>Access files</h1>
21
    <h1>Access files</h1>
21
22
Lines 28-34 Link Here
28
                <tr>
29
                <tr>
29
                    <th>Name</th>
30
                    <th>Name</th>
30
                    <th>Size (bytes)</th>
31
                    <th>Size (bytes)</th>
31
                    <th>Date last modified</th>
32
                    <th class="title-string">Date last modified</th>
32
                </tr>
33
                </tr>
33
            </thead>
34
            </thead>
34
            <tbody>
35
            <tbody>
Lines 36-73 Link Here
36
                <tr>
37
                <tr>
37
                    <td><a href="/cgi-bin/koha/tools/access_files.pl?id=[% file.id |url %]">[% file.name | html %]</a></td>
38
                    <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 align="right">[% file.size | html %]</td>
39
                    <td>[% file.date | html %]</td>
40
                    <td><span title="[% file.date | html %]">[% file.date | $KohaDates %]</span></td>
40
                </tr>
41
                </tr>
41
                [% END %]
42
                [% END %]
42
            </tbody>
43
            </tbody>
43
        </table>
44
        </table>
44
    [% ELSE %]
45
    [% ELSE %]
45
        No file found.
46
        <div class="dialog message">No files found.</div>
46
    [% END %]
47
    [% END %]
47
[% END %]
48
[% END %]
48
49
49
</div>
50
            </main>
50
</div>
51
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
51
<div class="yui-b">
52
52
[% INCLUDE 'tools-menu.inc' %]
53
        <div class="col-sm-2 col-sm-pull-10">
53
</div>
54
            <aside>
54
</div>
55
                [% INCLUDE 'tools-menu.inc' %]
56
            </aside>
57
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
58
    </div> <!-- /.row -->
59
55
60
56
[% MACRO jsinclude BLOCK %]
61
[% MACRO jsinclude BLOCK %]
57
    [% Asset.js("js/tools-menu.js") | $raw %]
62
    [% Asset.js("js/tools-menu.js") | $raw %]
58
    [% INCLUDE 'datatables.inc' %]
63
    [% INCLUDE 'datatables.inc' %]
59
    <script type="text/javascript">
64
    <script>
60
    //<![CDATA[
61
        $(document).ready(function() {
65
        $(document).ready(function() {
62
            $("#files").dataTable($.extend(true, {}, dataTablesDefaults, {
66
            $("#files").dataTable($.extend(true, {}, dataTablesDefaults, {
63
                "sDom": 't',
64
                "aoColumnDefs": [
67
                "aoColumnDefs": [
65
                    { "aTargets": [ -1 ], "asSorting" : [ "desc", "asc" ], "bSearchable": false }
68
                    { "aTargets": [ -1 ], "asSorting" : [ "desc", "asc" ], "bSearchable": false },
69
                    { "sType": "title-string", "aTargets" : [ "title-string" ] }
66
                ],
70
                ],
67
                "bPaginate": false
71
                "bPaginate": false
68
            }));
72
            }));
69
    });
73
    });
70
    //]]>
71
</script>
74
</script>
72
[% END %]
75
[% END %]
76
73
[% INCLUDE 'intranet-bottom.inc' %]
77
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/tools/access_files.pl (-2 / +1 lines)
Lines 82-88 else { Link Here
82
                            );
82
                            );
83
            push(@files_list, {name => $decoded_filename,
83
            push(@files_list, {name => $decoded_filename,
84
                               access_dir => $dir,
84
                               access_dir => $dir,
85
                               date =>Koha::DateUtils::output_pref($dt),
85
                               date =>$dt,
86
                               size => $st->size,
86
                               size => $st->size,
87
                               id   => $id});
87
                               id   => $id});
88
        }
88
        }
89
- 

Return to bug 21695