]> BookStack Code Mirror - bookstack/blobdiff - resources/views/pages/show.blade.php
Adds laravel-microscope package
[bookstack] / resources / views / pages / show.blade.php
index cfa5ee9ce08572c3225a4223f5d6ac24e3e257d6..48c88434e00bafd25cff7befb7e39e95f0f475e1 100644 (file)
         <div id="page-attachments" class="mb-l">
             <h5>{{ trans('entities.pages_attachments') }}</h5>
             <div class="body">
-                @foreach($page->attachments as $attachment)
-                    <div class="attachment icon-list">
-                        <a class="icon-list-item py-xs" 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
+                @include('attachments.list', ['attachments' => $page->attachments])
             </div>
         </div>
     @endif