Skip to content

Commit a840c67

Browse files
authored
Merge pull request #437 from B-GH/patch-1
Update grid-view.blade.php by @B-GH
2 parents e59b8ad + f121f8d commit a840c67

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/views/grid-view.blade.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
<?php $thumb_src = $item->thumb; ?>
99
<?php $item_path = $item->is_file ? $item->url : $item->path; ?>
1010

11-
<div class="square clickable {{ $item->is_file ? 'file' : 'folder'}}-item" data-id="{{ $item_path }}">
11+
<div class="square clickable {{ $item->is_file ? '' : 'folder-item' }}" data-id="{{ $item_path }}"
12+
@if($item->is_file && $thumb_src) onclick="fileView('{{ $item_path }}', '{{ $item->updated }}')"
13+
@elseif($item->is_file) onclick="download('{{ $item_name }}')" @endif >
1214
@if($thumb_src)
1315
<img src="{{ $thumb_src }}">
1416
@else
@@ -18,7 +20,10 @@
1820

1921
<div class="caption text-center">
2022
<div class="btn-group">
21-
<button type="button" data-id="{{ $item_path }}" class="item_name btn btn-default btn-xs {{ $item->is_file ? 'file' : 'folder'}}-item">
23+
<button type="button" data-id="{{ $item_path }}"
24+
class="item_name btn btn-default btn-xs {{ $item->is_file ? '' : 'folder-item'}}"
25+
@if($item->is_file && $thumb_src) onclick="fileView('{{ $item_path }}', '{{ $item->updated }}')"
26+
@elseif($item->is_file) onclick="download('{{ $item_name }}')" @endif >
2227
{{ $item_name }}
2328
</button>
2429
<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown" aria-expanded="false">

0 commit comments

Comments
 (0)