]> BookStack Code Mirror - bookstack/blob - resources/views/common/notifications.blade.php
Addressed a range of deprecation warnings
[bookstack] / resources / views / common / notifications.blade.php
1 <div component="notification"
2      option:notification:type="success"
3      option:notification:auto-hide="true"
4      option:notification:show="{{ session()->has('success') ? 'true' : 'false' }}"
5      style="display: none;"
6      class="notification pos"
7      role="alert">
8     @icon('check-circle') <span>@if(session()->has('success')){!! nl2br(htmlentities(session()->get('success'))) !!}@endif</span><div class="dismiss">@icon('close')</div>
9 </div>
10
11 <div component="notification"
12      option:notification:type="warning"
13      option:notification:auto-hide="false"
14      option:notification:show="{{ session()->has('warning') ? 'true' : 'false' }}"
15      style="display: none;"
16      class="notification warning"
17      role="alert">
18     @icon('info') <span>@if(session()->has('warning')){!! nl2br(htmlentities(session()->get('warning'))) !!}@endif</span><div class="dismiss">@icon('close')</div>
19 </div>
20
21 <div component="notification"
22      option:notification:type="error"
23      option:notification:auto-hide="false"
24      option:notification:show="{{ session()->has('error') ? 'true' : 'false' }}"
25      style="display: none;"
26      class="notification neg"
27      role="alert">
28     @icon('danger') <span>@if(session()->has('error')){!! nl2br(htmlentities(session()->get('error'))) !!}@endif</span><div class="dismiss">@icon('close')</div>
29 </div>