]> BookStack Code Mirror - bookstack/blobdiff - resources/views/shelves/show.blade.php
Updated empty container item states
[bookstack] / resources / views / shelves / show.blade.php
index a4200b993d699c1ab63e55b532855bdd4dedcb9f..0cfaebbd7e406a9e8708834e175c74181261e350 100644 (file)
                     @endforeach
                 </div>
             @else
-                <p>
-                    {{-- TODO - Empty Shelf State--}}
+                <div class="mt-xl">
                     <hr>
-                    <span class="text-muted italic">{{ trans('entities.shelves_empty_contents') }}</span>
-                    @if(userCan('bookshelf-create', $shelf))
-                        <br/>
-                        <a href="{{ $shelf->getUrl('/edit') }}" class="button outline">{{ trans('entities.shelves_edit_and_assign') }}</a>
-                    @endif
-                </p>
+                    <p class="text-muted italic mt-xl mb-m">{{ trans('entities.shelves_empty_contents') }}</p>
+                    <div class="icon-list inline block">
+                        @if(userCan('bookshelf-update', $shelf))
+                            <a href="{{ $shelf->getUrl('/edit') }}" class="icon-list-item text-bookshelf">
+                                <span class="icon">@icon('edit')</span>
+                                <span>{{ trans('entities.shelves_edit_and_assign') }}</span>
+                            </a>
+                        @endif
+                    </div>
+                </div>
             @endif
         </div>
     </div>