]> BookStack Code Mirror - bookstack/blob - resources/views/attachments/list.blade.php
Fixed failing test after drawio default url change
[bookstack] / resources / views / attachments / list.blade.php
1 <div component="attachments-list">
2     @foreach($attachments as $attachment)
3         <div class="attachment icon-list">
4             <a class="icon-list-item py-xs attachment-{{ $attachment->external ? 'link' : 'file' }}" href="{{ $attachment->getUrl() }}" @if($attachment->external) target="_blank" @endif>
5                 <span class="icon">@icon($attachment->external ? 'export' : 'file')</span>
6                 <span>{{ $attachment->name }}</span>
7             </a>
8         </div>
9     @endforeach
10 </div>