]> BookStack Code Mirror - bookstack/blobdiff - resources/views/entities/watch-controls.blade.php
Notifications: User watch list and differnt page watch options
[bookstack] / resources / views / entities / watch-controls.blade.php
index 4fdda53476140053165fb8d38903057c15c61457..d24e120182166aec6dc0d895ae67ade32476cf8f 100644 (file)
@@ -11,7 +11,7 @@
         <input type="hidden" name="id" value="{{ $entity->id }}">
 
         <ul refs="dropdown@menu" class="dropdown-menu xl-limited anchor-left pb-none">
-            @foreach(\BookStack\Activity\WatchLevels::all() as $option => $value)
+            @foreach(\BookStack\Activity\WatchLevels::allSuitedFor($entity) as $option => $value)
                 <li>
                     <button name="level" value="{{ $option }}" class="icon-item">
                         @if($watchLevel === $option)
                         <div class="break-text">
                             <div class="mb-xxs"><strong>{{ trans('entities.watch_title_' . $option) }}</strong></div>
                             <div class="text-muted text-small">
-                                {{ trans('entities.watch_desc_' . $option) }}
+                                @if(trans()->has('entities.watch_desc_' . $option . '_' . $entity->getMorphClass()))
+                                    {{ trans('entities.watch_desc_' . $option . '_' . $entity->getMorphClass()) }}
+                                @else
+                                    {{ trans('entities.watch_desc_' . $option) }}
+                                @endif
                             </div>
                         </div>
                     </button>