Only show the incidents headline if we have anything to show

This commit is contained in:
James Brooks
2016-10-07 12:19:47 +01:00
parent 1e7e9e8fe3
commit c6c439017a

View File

@@ -1,4 +1,4 @@
@if($days_to_show > 0)
@if($days_to_show > 0 && $all_incidents)
<div class="section-timeline">
<h1>{{ trans('cachet.incidents.past') }}</h1>
@foreach($all_incidents as $date => $incidents)