Display the formatted message for incident's updates.

In order to be backward compatible, the formatted message is displayed
for incident's updates, so a strong sentance can be used as it was the
case before.
This commit is contained in:
A
2018-01-10 15:56:38 +01:00
parent 66ec744c21
commit d6ce735df3
2 changed files with 15 additions and 12 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,18 +33,17 @@
@if($incident->updates->isNotEmpty())
<div class="list-group">
@foreach($incident->updates as $update)
<a class="list-group-item" href="{{ $update->permalink }}">
<p>
<i class="{{ $update->icon }}" title="{{ $update->human_status }}" data-toggle="tooltip"></i>
{{ $update->raw_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>
</p>
<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>