]> BookStack Code Mirror - bookstack/blob - resources/views/attachments/list.blade.php
Added system cli, and created backups directory
[bookstack] / resources / views / attachments / list.blade.php
1 <div component="attachments-list">
2     @foreach($attachments as $attachment)
3         <div class="attachment icon-list">
4             <div class="split-icon-list-item attachment-{{ $attachment->external ? 'link' : 'file' }}">
5                 <a href="{{ $attachment->getUrl() }}" @if($attachment->external) target="_blank" @endif>
6                     <div class="icon">@icon($attachment->external ? 'export' : 'file')</div>
7                     <div class="label">{{ $attachment->name }}</div>
8                 </a>
9                 @if(!$attachment->external)
10                     <div component="dropdown" class="icon-list-item-dropdown">
11                         <button refs="dropdown@toggle" type="button" class="icon-list-item-dropdown-toggle">@icon('caret-down')</button>
12                         <ul refs="dropdown@menu" class="dropdown-menu" role="menu">
13                             <a href="{{ $attachment->getUrl(false) }}" class="icon-item">
14                                 @icon('download')
15                                 <div>{{ trans('common.download') }}</div>
16                             </a>
17                             <a href="{{ $attachment->getUrl(true) }}" target="_blank" class="icon-item">
18                                 @icon('export')
19                                 <div>{{ trans('common.open_in_tab') }}</div>
20                             </a>
21                         </ul>
22                     </div>
23                 @endif
24             </div>
25         </div>
26     @endforeach
27 </div>