A free open source IT asset/license management system
add details block for more than 3 errors to notification
spencerrlongg51f6927076b3
diff --git a/resources/lang/en-US/general.php b/resources/lang/en-US/general.phpindex b06d6899fd..1dd20887ce 100644--- a/resources/lang/en-US/general.php+++ b/resources/lang/en-US/general.php@@ -1,6 +1,7 @@<?phpreturn [+ 'show_all' => 'Show All','2FA_reset' => '2FA reset','accessories' => 'Accessories','activated' => 'Activated',diff --git a/resources/views/notifications.blade.php b/resources/views/notifications.blade.phpindex 216f2c3f14..d31463821e 100755--- a/resources/views/notifications.blade.php+++ b/resources/views/notifications.blade.php@@ -153,13 +153,19 @@<button type="button" class="close" data-dismiss="alert">×</button><i class="fas fa-exclamation-triangle faa-pulse animated"></i><strong>{{ trans('general.notification_error') }}: </strong>- <div class="accordion">- @foreach($messages as $key => $message)+ @foreach(array_splice($messages, 0,3) as $key => $message)<ul><li>{{ $message }}</li></ul>@endforeach- </div>+ <details>+ <summary>{{ trans('general.show_all') }}</summary>+ @foreach(array_splice($messages, 3) as $key => $message)+ <ul>+ <li>{{ $message }}</li>+ </ul>+ @endforeach+ </details></div></div>@endif