Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion resources/views/list.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,11 @@ function closeModal() {

<div class="file-info">
<a @if(!$item['isDir'])target="_blank"@endif href="{{ $item['link'] }}" class="file-name" title="{{ $item['name'] }}">
{{ $item['icon'] }} {{ basename($item['name']) }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{{ $item['icon'] }} {{ end(explode('/',$item['name'])) }}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this better?

{{ $item['icon'] }}
@php
$file_url_array = explode('/',$item['name']);
echo end($file_url_array);
@endphp
</a>
<span class="file-size">
{{ $item['size'] }}&nbsp;
Expand Down
6 changes: 5 additions & 1 deletion resources/views/table.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,11 @@ function closeModal() {
{!! $item['preview'] !!}

<a @if(!$item['isDir'])target="_blank"@endif href="{{ $item['link'] }}" class="file-name" title="{{ $item['name'] }}">
{{ $item['icon'] }} {{ basename($item['name']) }}
{{ $item['icon'] }}
@php
$file_url_array = explode('/',$item['name']);
echo end($file_url_array);
@endphp
</a>
</td>

Expand Down