]> BookStack Code Mirror - bookstack/blobdiff - resources/views/books/index.blade.php
Customization: Added parent tag classes
[bookstack] / resources / views / books / index.blade.php
index 0b407a8609abb98f3b6ae99d1bb4930b7ab8249f..197de011d0133c2de553cd993b9387b05da60611 100644 (file)
@@ -23,7 +23,7 @@
 
     <div id="new" class="mb-xl">
         <h5>{{ trans('entities.books_new') }}</h5>
-        @if(count($popular) > 0)
+        @if(count($new) > 0)
             @include('entities.list', ['entities' => $new, 'style' => 'compact'])
         @else
             <p class="text-muted pb-l mb-none">{{ trans('entities.books_new_empty') }}</p>
                 <span>@icon('tag')</span>
                 <span>{{ trans('entities.tags_view_tags') }}</span>
             </a>
+
+            @if(userCan('content-import'))
+                <a href="{{ url('/import') }}" class="icon-list-item">
+                    <span>@icon('upload')</span>
+                    <span>{{ trans('entities.import') }}</span>
+                </a>
+            @endif
         </div>
     </div>
 
-@stop
\ No newline at end of file
+@stop