SmartIT_Extensions/BMC/smart-it-full/views/feed/response-item-renderer.html

45 lines
2.6 KiB
HTML

<div>
<!-- Response to flag Section-->
<div ng-if="item.isFlag() && item.hasReplies()">
<a ng-if="item.note.multipleReplies" ng-click="item.toggleRepliesView()">
<span ng-if="!item.repliesExpanded">{{'timeline.message.showResponses' | i18n: [item.note.repliesCount]}}</span>
<span ng-if="item.repliesExpanded">{{'timeline.message.hideResponses' | i18n}}</span>
<i ng-class="{'icon-angle_up' : item.repliesExpanded, 'icon-angle_down': !item.repliesExpanded}"></i>
</a>
</div>
<div class="feed-item__response" ng-if="item.isFlag() && item.hasReplies() && !item.repliesExpanded">
<div ng-if="item.replies[item.note.repliesCount -1].event.eventType === 'ka-comment'" class="feed-item__response-user-image">
<img alt="{{::item.replies[item.note.repliesCount -1].author.getFullName()}}" thumbnail-img="{{::item.replies[item.note.repliesCount -1].author.thumbnail}}" imgplaceholder="user" class="feed-item__response-avatar" />
</div>
<div ng-if="item.replies[item.note.repliesCount -1].event.eventType === 'ka-unflagged'" class="feed-item__response-user-image" >
<i class="icon-flag_o flaged_feed" />
</div>
<div class="feed-item__response-content">
<a entity-profile-link="item.replies[item.note.repliesCount -1].author">{{::item.replies[item.note.repliesCount -1].author.getFullName()}}:</a>
<span ng-bind-html="(item.replies[item.note.repliesCount -1].message | mention)"></span>
</div>
<span class="feed-item__response-date-time">
{{::item.replies[item.note.repliesCount -1].createDateLabel}}
<span ng-if="item.replies[item.note.repliesCount -1].isUnflaggingResponse()" >
<i class="icon-circle"></i> <span>{{'timeline.message.respondAndUnflag' | i18n}}</span>
</span>
</span>
</div>
<div class="feed-item__response" ng-if="item.isFlag() && item.hasReplies() && item.repliesExpanded" ng-repeat="reply in item.replies">
<div ng-if="reply.event.eventType === 'ka-comment'" class="feed-item__response-user-image">
<img alt="{{::reply.author.getFullName()}}" thumbnail-img="{{::reply.author.thumbnail}}" imgplaceholder="user" class="feed-item__response-avatar" />
</div>
<div ng-if="reply.event.eventType === 'ka-unflagged'" class="feed-item__response-user-image" >
<i class="icon-flag_o flaged_feed" />
</div>
<div class="feed-item__response-content">
<a entity-profile-link="reply.author">{{::reply.author.getFullName()}}:</a>
<span ng-bind-html="(reply.message | mention)"></span>
</div>
<span class="feed-item__response-date-time">
{{::reply.createDateLabel}}
</span>
</span>
</div>
</div>