]> BookStack Code Mirror - bookstack/blob - resources/views/settings/recycle-bin/parts/recycle-bin-list-item.blade.php
Merge pull request #3821 from BookStackApp/list_reworks
[bookstack] / resources / views / settings / recycle-bin / parts / recycle-bin-list-item.blade.php
1 <div class="item-list-row flex-container-row items-center px-s wrap">
2     <div class="flex-2 px-m py-xs min-width-xl">
3         <div class="flex-container-row items-center py-xs">
4             <span role="presentation" class="flex-none icon text-{{$deletion->deletable->getType()}}">@icon($deletion->deletable->getType())</span>
5             <div class="text-{{ $deletion->deletable->getType() }}">
6                 {{ $deletion->deletable->name }}
7             </div>
8         </div>
9         @if($deletion->deletable instanceof \BookStack\Entities\Models\Book)
10             <div class="pl-l block inline">
11                 <div class="text-chapter">
12                     @icon('chapter') {{ trans_choice('entities.x_chapters', $deletion->deletable->chapters()->withTrashed()->count()) }}
13                 </div>
14             </div>
15         @endif
16         @if($deletion->deletable instanceof \BookStack\Entities\Models\Book || $deletion->deletable instanceof \BookStack\Entities\Models\Chapter)
17             <div class="pl-l block inline">
18                 <div class="text-page">
19                     @icon('page') {{ trans_choice('entities.x_pages', $deletion->deletable->pages()->withTrashed()->count()) }}
20                 </div>
21             </div>
22         @endif
23     </div>
24     <div class="flex-2 px-m py-xs min-width-m">
25         @if($deletion->deletable->getParent())
26             <strong class="hide-over-l">{{ trans('settings.recycle_bin_deleted_parent') }}:<br></strong>
27             <div class="flex-container-row items-center">
28                 <span role="presentation" class="flex-none icon text-{{$deletion->deletable->getParent()->getType()}}">@icon($deletion->deletable->getParent()->getType())</span>
29                 <div class="text-{{ $deletion->deletable->getParent()->getType() }}">
30                     {{ $deletion->deletable->getParent()->name }}
31                 </div>
32             </div>
33         @endif
34     </div>
35     <div class="flex-2 px-m py-xs flex-container-row items-center min-width-m">
36         <div><strong class="hide-over-l">{{ trans('settings.recycle_bin_deleted_by') }}:<br></strong>@include('settings.parts.table-user', ['user' => $deletion->deleter, 'user_id' => $deletion->deleted_by])</div>
37     </div>
38     <div class="flex px-m py-xs min-width-s"><strong class="hide-over-l">{{ trans('settings.recycle_bin_deleted_at') }}:<br></strong>{{ $deletion->created_at }}</div>
39     <div class="flex px-m py-xs text-m-right min-width-s">
40         <div component="dropdown" class="dropdown-container">
41             <button type="button" refs="dropdown@toggle" class="button outline">{{ trans('common.actions') }}</button>
42             <ul refs="dropdown@menu" class="dropdown-menu">
43                 <li><a class="text-item" href="{{ $deletion->getUrl('/restore') }}">{{ trans('settings.recycle_bin_restore') }}</a></li>
44                 <li><a class="text-item" href="{{ $deletion->getUrl('/destroy') }}">{{ trans('settings.recycle_bin_permanently_delete') }}</a></li>
45             </ul>
46         </div>
47     </div>
48 </div>