]> BookStack Code Mirror - bookstack/commitdiff
Added faviourtes to other entity types
authorDan Brown <redacted>
Sun, 16 May 2021 09:26:28 +0000 (10:26 +0100)
committerDan Brown <redacted>
Sun, 16 May 2021 09:26:28 +0000 (10:26 +0100)
resources/views/books/show.blade.php
resources/views/chapters/show.blade.php
resources/views/pages/show.blade.php
resources/views/shelves/show.blade.php

index def198bddac2450b34958534cd4572da01ee0ba5..b850127ff5f595220df52722ba0ecc75180d2ec2 100644 (file)
 
             <hr class="primary-background">
 
+            @if(signedInUser())
+                @include('partials.entity-favourite-action', ['entity' => $book])
+            @endif
             @include('partials.entity-export-menu', ['entity' => $book])
         </div>
     </div>
index db02ebcc4f9ae6b6d686a591a8eb2398f5d905d8..8aa3be1112b21c4984ea93956a0779b29dd90964 100644 (file)
 
             <hr class="primary-background"/>
 
+            @if(signedInUser())
+                @include('partials.entity-favourite-action', ['entity' => $chapter])
+            @endif
             @include('partials.entity-export-menu', ['entity' => $chapter])
         </div>
     </div>
index 73a107cf71456e943f9accdf7c018a916ba3ee0e..5baf2a16ced362cd0e9bb6bc70ae9ac635263541 100644 (file)
 
             <hr class="primary-background"/>
 
-            {{--Export--}}
             @if(signedInUser())
-                @include('partials.entity-favourite-action', ['entity' => $page, 'alreadyFavourite' => $page->isFavourite()])
+                @include('partials.entity-favourite-action', ['entity' => $page])
             @endif
             @include('partials.entity-export-menu', ['entity' => $page])
         </div>
index 7ed36c90685ef1d8a978b7fdf8a4a00d50deec61..431fa54cc260a406d350b4d83f47c7b53eaa2775 100644 (file)
                 </a>
             @endif
 
+            @if(signedInUser())
+                <hr class="primary-background">
+                @include('partials.entity-favourite-action', ['entity' => $shelf])
+            @endif
+
         </div>
     </div>
 @stop