Use isNotEmpty in more places
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
@if($component_groups->count() > 0)
|
@if($component_groups->isNotEmpty())
|
||||||
@foreach($component_groups as $componentGroup)
|
@foreach($component_groups as $componentGroup)
|
||||||
<ul class="list-group components">
|
<ul class="list-group components">
|
||||||
@if($componentGroup->enabled_components->count() > 0)
|
@if($componentGroup->enabled_components->isNotEmpty())
|
||||||
<li class="list-group-item group-name">
|
<li class="list-group-item group-name">
|
||||||
<i class="{{ $componentGroup->collapse_class }} group-toggle"></i>
|
<i class="{{ $componentGroup->collapse_class }} group-toggle"></i>
|
||||||
<strong>{{ $componentGroup->name }}</strong>
|
<strong>{{ $componentGroup->name }}</strong>
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
@endforeach
|
@endforeach
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if($ungrouped_components->count() > 0)
|
@if($ungrouped_components->isNotEmpty())
|
||||||
<ul class="list-group components">
|
<ul class="list-group components">
|
||||||
<li class="list-group-item group-name">
|
<li class="list-group-item group-name">
|
||||||
<strong>{{ trans('cachet.components.group.other') }}</strong>
|
<strong>{{ trans('cachet.components.group.other') }}</strong>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
@if($component_groups->count() > 0)
|
@if($component_groups->isNotEmpty())
|
||||||
@foreach($component_groups as $componentGroup)
|
@foreach($component_groups as $componentGroup)
|
||||||
<ul class="list-group components">
|
<ul class="list-group components">
|
||||||
@if($componentGroup->enabled_components->count() > 0)
|
@if($componentGroup->enabled_components->isNotEmpty())
|
||||||
<li class="list-group-item group-name">
|
<li class="list-group-item group-name">
|
||||||
<i class="{{ $componentGroup->collapse_class_with_subscriptions($subscriptions) }} group-toggle"></i>
|
<i class="{{ $componentGroup->collapse_class_with_subscriptions($subscriptions) }} group-toggle"></i>
|
||||||
<strong>{{ $componentGroup->name }}</strong>
|
<strong>{{ $componentGroup->name }}</strong>
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
@endforeach
|
@endforeach
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if($ungrouped_components->count() > 0)
|
@if($ungrouped_components->isNotEmpty())
|
||||||
<ul class="list-group components">
|
<ul class="list-group components">
|
||||||
<li class="list-group-item group-name">
|
<li class="list-group-item group-name">
|
||||||
<strong>{{ trans('cachet.components.group.other') }}</strong>
|
<strong>{{ trans('cachet.components.group.other') }}</strong>
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
<div class="panel-body markdown-body">
|
<div class="panel-body markdown-body">
|
||||||
{!! $incident->formatted_message !!}
|
{!! $incident->formatted_message !!}
|
||||||
</div>
|
</div>
|
||||||
@if($incident->updates->count())
|
@if($incident->updates->isNotEmpty())
|
||||||
<div class="list-group">
|
<div class="list-group">
|
||||||
@foreach($incident->updates as $update)
|
@foreach($incident->updates as $update)
|
||||||
<a class="list-group-item" href="{{ $update->permalink }}">
|
<a class="list-group-item" href="{{ $update->permalink }}">
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
@if(!$scheduled_maintenance->isEmpty())
|
@if($scheduled_maintenance->isNotEmpty())
|
||||||
<div class="section-scheduled">
|
<div class="section-scheduled">
|
||||||
@include('partials.schedule')
|
@include('partials.schedule')
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
@if(!$stickied_incidents->isEmpty())
|
@if($stickied_incidents->isNotEmpty())
|
||||||
<div class="section-stickied">
|
<div class="section-stickied">
|
||||||
<h1>{{ trans('cachet.incidents.stickied') }}</h1>
|
<h1>{{ trans('cachet.incidents.stickied') }}</h1>
|
||||||
@foreach($stickied_incidents as $date => $incidents)
|
@foreach($stickied_incidents as $date => $incidents)
|
||||||
@include('partials.incidents', [compact($date), compact($incidents)])
|
@include('partials.incidents', [compact($date), compact($incidents)])
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|||||||
Reference in New Issue
Block a user