mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-18 18:24:46 +08:00
a61c9c5e98
- Primarily moved and re-organised view files. - Included readme within views to document the convention. - Fixed some issues with page field select list in previous commit. - Tweaked some route names while going through. - Split some views out further. Closes #2805
23 lines
913 B
PHP
23 lines
913 B
PHP
@foreach($images as $index => $image)
|
|
<div>
|
|
<div component="event-emit-select"
|
|
option:event-emit-select:name="image"
|
|
option:event-emit-select:data="{{ json_encode($image) }}"
|
|
class="image anim fadeIn text-primary"
|
|
style="animation-delay: {{ $index > 26 ? '160ms' : ($index * 25) . 'ms' }};">
|
|
<img src="{{ $image->thumbs['gallery'] }}"
|
|
alt="{{ $image->name }}"
|
|
width="150"
|
|
height="150"
|
|
loading="lazy"
|
|
title="{{ $image->name }}">
|
|
<div class="image-meta">
|
|
<span class="name">{{ $image->name }}</span>
|
|
<span class="date">{{ trans('components.image_uploaded', ['uploadedDate' => $image->created_at->format('Y-m-d H:i:s')]) }}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endforeach
|
|
@if($hasMore)
|
|
<div class="load-more">{{ trans('components.image_load_more') }}</div>
|
|
@endif |