1 <div component="dropdown"
2 class="dropdown-container block my-xxs">
3 <a refs="dropdown@toggle" href="#" class="entity-meta-item my-none">
4 @icon(($ignoring ? 'watch-ignore' : 'watch'))
5 <span>{{ $label }}</span>
7 <form action="{{ url('/watching/update') }}" method="POST">
8 {{ method_field('PUT') }}
10 <input type="hidden" name="type" value="{{ $entity->getMorphClass() }}">
11 <input type="hidden" name="id" value="{{ $entity->id }}">
13 <ul refs="dropdown@menu" class="dropdown-menu xl-limited anchor-left pb-none">
14 @foreach(\BookStack\Activity\WatchLevels::allSuitedFor($entity) as $option => $value)
16 <button name="level" value="{{ $option }}" class="icon-item">
17 @if($watchLevel === $option)
18 <span class="text-pos pt-m"
19 title="{{ trans('common.status_active') }}">@icon('check-circle')</span>
21 <span title="{{ trans('common.status_inactive') }}"></span>
23 <div class="break-text">
24 <div class="mb-xxs"><strong>{{ trans('entities.watch_title_' . $option) }}</strong></div>
25 <div class="text-muted text-small">
26 @if(trans()->has('entities.watch_desc_' . $option . '_' . $entity->getMorphClass()))
27 {{ trans('entities.watch_desc_' . $option . '_' . $entity->getMorphClass()) }}
29 {{ trans('entities.watch_desc_' . $option) }}
40 <a href="{{ url('/my-account/notifications') }}"
42 class="text-item text-muted text-small break-text">{{ trans('entities.watch_change_default') }}</a>