mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-25 00:02:57 +08:00
10 lines
505 B
PHP
10 lines
505 B
PHP
<div component="attachments-list">
|
|
@foreach($attachments as $attachment)
|
|
<div class="attachment icon-list">
|
|
<a class="icon-list-item py-xs attachment-{{ $attachment->external ? 'link' : 'file' }}" href="{{ $attachment->getUrl() }}" @if($attachment->external) target="_blank" @endif>
|
|
<span class="icon">@icon($attachment->external ? 'export' : 'file')</span>
|
|
<span>{{ $attachment->name }}</span>
|
|
</a>
|
|
</div>
|
|
@endforeach
|
|
</div> |