SmartIT_Extensions/BMC/smart-it-full/components/chat/partials/incident-details.html

25 lines
1.5 KiB
HTML

<div ng-if="message.type == 'incidentDetails'" ng-init="description=false">
<div class="chat-message__body__details" ng-class="{'my-message': selfMessage}">
<img class="chat-message__user-thumbnail__details" thumbnail-img="{{message.author.thumbnail}}" imgplaceholder="user" ng-class="'left-sided' "/>
<b><font size="0.5">
{{"chat.chatOps.details" | i18n}} {{message.author.firstName}} {{message.created | humanizedAbsoluteDateFormat}}
<br>{{"chat.chatOps.incidentTitle" | i18n}} <a href="#/incident/{{message.data.id}}" target="_blank">{{message.data.displayId}}</a></font></b><font size="0.5"><br>
<b>{{"chat.chatOps.incidentSummary" | i18n}} : </b>{{message.data.summary}}<br>
<div ng-show="message.data.desc.length>0">
<b>{{"chat.chatOps.incidentDescription" | i18n}} : </b>
<div style="display: inline; text-align:justify" ng-show="!description">
<span ng-bind="message.data.desc | limitTo:50"></span>
<span ng-if="message.data.desc.length>50">...</span>
<a ng-show="message.data.desc.length>50" ng-click="description=!description"><b>{{"chat.chatOps.showMore" | i18n}}</b></a>
</div>
<div style="display: inline; text-align:justify" ng-show="description">
{{message.data.desc}}
<a ng-click="description=!description"><b>{{"chat.chatOps.showLess" | i18n}}</b></a>
</div>
</div>
<b>{{"chat.chatOps.incidentStatus" | i18n}} : </b>{{message.data.status.value}}
<br><b>{{"chat.chatOps.incidentPriority" | i18n}} : </b>{{message.data.priority}}
</font>
</div>
</div>