Merge pull request #2897 from uxen-ab/show-incident-updates-on-the-status-page

Show incident updates on the status page
This commit is contained in:
James Brooks 2018-01-30 14:30:21 +00:00 committed by GitHub
commit 8fc9c680d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 3 deletions

View File

@ -423,4 +423,8 @@ body.status-page {
}
}
}
//Display inline the incident update message.
.incident-update-item > p {
display: inline-block;
}
}

View File

@ -33,10 +33,17 @@
@if($incident->updates->isNotEmpty())
<div class="list-group">
@foreach($incident->updates as $update)
<a class="list-group-item" href="{{ $update->permalink }}">
<i class="{{ $update->icon }}" title="{{ $update->human_status }}" data-toggle="tooltip"></i> <strong>{{ Str::limit($update->raw_message, 20) }}</strong>
<small>{{ $update->created_at_diff }}</small>
<a class="list-group-item incident-update-item" href="{{ $update->permalink }}">
<i class="{{ $update->icon }}" title="{{ $update->human_status }}" data-toggle="tooltip"></i>
{!! $update->formatted_message !!}
<small>
<abbr class="timeago links" data-toggle="tooltip"
data-placement="right" title="{{ $update->timestamp_formatted }}"
data-timeago="{{ $update->timestamp_iso }}">
</abbr>
</small>
<span class="ion-ios-arrow-right pull-right"></span>
</a>
@endforeach
</div>