|
6 | 6 |
|
7 | 7 | <div class="box-header with-border"> |
8 | 8 | <h3 class="box-title">/home/container{{ $directory['header'] }}</h3> |
9 | | - <div class="box-tools pull-right"> |
10 | | - <div class="btn-group"> |
11 | | - <button type="button" id="mass_actions" class="btn btn-sm btn-info dropdown-toggle disabled" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> |
12 | | - @lang('server.files.mass_actions') <span class="caret"></span> |
13 | | - </button> |
14 | | - <ul class="dropdown-menu dropdown-massactions"> |
15 | | - <li><a href="#" id="selective-deletion" data-action="selective-deletion">@lang('server.files.delete') <i class="fa fa-fw fa-trash-o"></i></a></li> |
16 | | - </ul> |
17 | | - </div> |
18 | | - <button class="btn btn-sm btn-success btn-icon" data-action="add-folder"> |
19 | | - <i class="fa fa-fw fa-folder-open-o"></i> |
20 | | - </button> |
| 9 | + <div class="box-tools"> |
21 | 10 | <a href="/server/{{ $server->uuidShort }}/files/add/@if($directory['header'] !== '')?dir={{ $directory['header'] }}@endif"> |
22 | 11 | <button class="btn btn-success btn-sm btn-icon"> |
23 | | - <i class="fa fa-fw fa-file-text-o"></i> |
| 12 | + New File <i class="fa fa-fw fa-file-text-o"></i> |
24 | 13 | </button> |
25 | 14 | </a> |
| 15 | + <button class="btn btn-sm btn-success btn-icon" data-action="add-folder"> |
| 16 | + New Folder <i class="fa fa-fw fa-folder-open-o"></i> |
| 17 | + </button> |
26 | 18 | <label class="btn btn-primary btn-sm btn-icon"> |
27 | | - <i class="fa fa-fw fa-upload"></i><input type="file" id="files_touch_target" class="hidden"> |
| 19 | + Upload <i class="fa fa-fw fa-upload"></i><input type="file" id="files_touch_target" class="hidden"> |
28 | 20 | </label> |
| 21 | + <div class="btn-group hidden-xs"> |
| 22 | + <button type="button" id="mass_actions" class="btn btn-sm btn-default dropdown-toggle disabled" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> |
| 23 | + @lang('server.files.mass_actions') <span class="caret"></span> |
| 24 | + </button> |
| 25 | + <ul class="dropdown-menu dropdown-massactions"> |
| 26 | + <li><a href="#" id="selective-deletion" data-action="selective-deletion">@lang('server.files.delete') <i class="fa fa-fw fa-trash-o"></i></a></li> |
| 27 | + </ul> |
| 28 | + </div> |
29 | 29 | </div> |
30 | 30 | </div> |
31 | 31 | <div class="box-body table-responsive no-padding"> |
32 | 32 | <table class="table table-hover" id="file_listing" data-current-dir="{{ $directory['header'] }}"> |
33 | 33 | <thead> |
34 | 34 | <tr> |
35 | | - <th style="width:4%;" class="middle"> |
36 | | - <input type="checkbox" class="select-all-files" data-action="selectAll"><i class="fa fa-refresh muted muted-hover use-pointer" data-action="reload-files" style="font-size:14px;"></i> |
| 35 | + <th class="middle min-size"> |
| 36 | + <input type="checkbox" class="select-all-files hidden-xs" data-action="selectAll"><i class="fa fa-refresh muted muted-hover use-pointer" data-action="reload-files" style="font-size:14px;"></i> |
37 | 37 | </th> |
38 | | - <th style="width:55%">@lang('server.files.file_name')</th> |
39 | | - <th style="width:15%" class="hidden-xs">@lang('server.files.size')</th> |
40 | | - <th style="width:20%" class="hidden-xs">@lang('server.files.last_modified')</th> |
41 | | - <th style="width:6%"></th> |
| 38 | + <th>@lang('server.files.file_name')</th> |
| 39 | + <th class="hidden-xs">@lang('server.files.size')</th> |
| 40 | + <th class="hidden-xs">@lang('server.files.last_modified')</th> |
| 41 | + <th></th> |
42 | 42 | </tr> |
43 | 43 | </thead> |
44 | 44 | <tbody id="append_files_to"> |
45 | 45 | @if (isset($directory['first']) && $directory['first'] === true) |
46 | 46 | <tr data-type="disabled"> |
47 | | - <td><i class="fa fa-folder" style="margin-left: 0.859px;"></i></td> |
| 47 | + <td class="middle min-size"><i class="fa fa-folder" style="margin-left: 0.859px;"></i></td> |
48 | 48 | <td><a href="/server/{{ $server->uuidShort }}/files" data-action="directory-view">←</a></a></td> |
49 | 49 | <td class="hidden-xs"></td> |
50 | 50 | <td class="hidden-xs"></td> |
|
53 | 53 | @endif |
54 | 54 | @if (isset($directory['show']) && $directory['show'] === true) |
55 | 55 | <tr data-type="disabled"> |
56 | | - <td><i class="fa fa-folder" style="margin-left: 0.859px;"></i></td> |
| 56 | + <td class="middle min-size"><i class="fa fa-folder" style="margin-left: 0.859px;"></i></td> |
57 | 57 | <td data-name="{{ rawurlencode($directory['link']) }}"> |
58 | 58 | <a href="/server/{{ $server->uuidShort }}/files" data-action="directory-view">← {{ $directory['link_show'] }}</a> |
59 | 59 | </td> |
|
64 | 64 | @endif |
65 | 65 | @foreach ($folders as $folder) |
66 | 66 | <tr data-type="folder"> |
67 | | - <td data-identifier="type" class="middle"><input type="checkbox" class="select-folder" data-action="addSelection"><i class="fa fa-folder" style="margin-left: 0.859px;"></i></td> |
| 67 | + <td class="middle min-size" data-identifier="type"> |
| 68 | + <input type="checkbox" class="select-folder hidden-xs" data-action="addSelection"><i class="fa fa-folder" style="margin-left: 0.859px;"></i> |
| 69 | + </td> |
68 | 70 | <td data-identifier="name" data-name="{{ rawurlencode($folder['entry']) }}" data-path="@if($folder['directory'] !== ''){{ rawurlencode($folder['directory']) }}@endif/"> |
69 | 71 | <a href="/server/{{ $server->uuidShort }}/files" data-action="directory-view">{{ $folder['entry'] }}</a> |
70 | 72 | </td> |
|
79 | 81 | {{ $carbon->diffForHumans() }} |
80 | 82 | @endif |
81 | 83 | </td> |
82 | | - <td><button class="btn btn-xxs btn-default disable-menu-hide" data-action="toggleMenu" style="padding:2px 6px 0px;"><i class="fa fa-ellipsis-h disable-menu-hide"></i></td> |
| 84 | + <td class="min-size"> |
| 85 | + <button class="btn btn-xxs btn-default disable-menu-hide" data-action="toggleMenu" style="padding:2px 6px 0px;"><i class="fa fa-ellipsis-h disable-menu-hide"></i></button> |
| 86 | + </td> |
83 | 87 | </tr> |
84 | 88 | @endforeach |
85 | 89 | @foreach ($files as $file) |
86 | 90 | <tr data-type="file" data-mime="{{ $file['mime'] }}"> |
87 | | - <td data-identifier="type" class="middle"><input type="checkbox" class="select-file" data-action="addSelection"> |
| 91 | + <td class="middle min-size" data-identifier="type"><input type="checkbox" class="select-file hidden-xs" data-action="addSelection"> |
88 | 92 | {{-- oh boy --}} |
89 | 93 | @if(in_array($file['mime'], [ |
90 | 94 | 'application/x-7z-compressed', |
|
156 | 160 | {{ $carbon->diffForHumans() }} |
157 | 161 | @endif |
158 | 162 | </td> |
159 | | - <td><button class="btn btn-xxs btn-default disable-menu-hide" data-action="toggleMenu" style="padding:2px 6px 0px;"><i class="fa fa-ellipsis-h disable-menu-hide"></i></td> |
| 163 | + <td class="min-size"> |
| 164 | + <button class="btn btn-xxs btn-default disable-menu-hide" data-action="toggleMenu" style="padding:2px 6px 0px;"><i class="fa fa-ellipsis-h disable-menu-hide"></i></button> |
| 165 | + </td> |
160 | 166 | </tr> |
161 | 167 | @endforeach |
162 | 168 | </tbody> |
|
0 commit comments