Skip to content

Commit

Permalink
Only show the incidents headline if we have anything to show
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrooksuk committed Oct 7, 2016
1 parent 1e7e9e8 commit c6c4390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/partials/modules/timeline.blade.php
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

2 comments on commit c6c4390

@TheoBearman
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this impact #2136? Doesn't this change render it obsolete?

@jbrooksuk
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, #2136 is a bit of a pain to be honest. I'll have a think.

Please sign in to comment.