Skip to content

Commit

Permalink
Merge pull request #10 from jxlwqq/master
Browse files Browse the repository at this point in the history
解决 Files are opend as binary data 的问题。 #7
  • Loading branch information
z-song authored Apr 25, 2018
2 parents c492106 + c362162 commit a5af138
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions resources/views/list.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ function(){
{!! $item['preview'] !!}

<div class="file-info">
<a href="{{ $item['link'] }}" class="file-name" title="{{ $item['name'] }}">
<a @if(!$item['isDir'])target="_blank"@endif href="{{ $item['link'] }}" class="file-name" title="{{ $item['name'] }}">
{{ $item['icon'] }} {{ basename($item['name']) }}
</a>
<span class="file-size">
Expand All @@ -333,7 +333,7 @@ function(){
<li><a href="#" class="file-rename" data-toggle="modal" data-target="#moveModal" data-name="{{ $item['name'] }}">Rename & Move</a></li>
<li><a href="#" class="file-delete" data-path="{{ $item['name'] }}">Delete</a></li>
@unless($item['isDir'])
<li><a href="{{ $item['download'] }}">Download</a></li>
<li><a target="_blank" href="{{ $item['download'] }}">Download</a></li>
@endunless
<li class="divider"></li>
<li><a href="#" data-toggle="modal" data-target="#urlModal" data-url="{{ $item['url'] }}">Url</a></li>
Expand Down Expand Up @@ -419,4 +419,4 @@ function(){
</form>
</div>
</div>
</div>
</div>
6 changes: 3 additions & 3 deletions resources/views/table.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ function(){
<td>
{!! $item['preview'] !!}

<a href="{{ $item['link'] }}" class="file-name" title="{{ $item['name'] }}">
<a @if(!$item['isDir'])target="_blank"@endif href="{{ $item['link'] }}" class="file-name" title="{{ $item['name'] }}">
{{ $item['icon'] }} {{ basename($item['name']) }}
</a>
</td>
Expand All @@ -346,7 +346,7 @@ function(){
<a class="btn btn-default file-rename" data-toggle="modal" data-target="#moveModal" data-name="{{ $item['name'] }}"><i class="fa fa-edit"></i></a>
<a class="btn btn-default file-delete" data-path="{{ $item['name'] }}"><i class="fa fa-trash"></i></a>
@unless($item['isDir'])
<a href="{{ $item['download'] }}" class="btn btn-default"><i class="fa fa-download"></i></a>
<a target="_blank" href="{{ $item['download'] }}" class="btn btn-default"><i class="fa fa-download"></i></a>
@endunless
<a class="btn btn-default" data-toggle="modal" data-target="#urlModal" data-url="{{ $item['url'] }}"><i class="fa fa-internet-explorer"></i></a>
</div>
Expand Down Expand Up @@ -434,4 +434,4 @@ function(){
</form>
</div>
</div>
</div>
</div>

0 comments on commit a5af138

Please sign in to comment.