2015-09-28 20:25:55 +00:00
|
|
|
<div class="im_message_outer_wrap" ng-click="toggleMessage(historyMessage.mid, $event)">
|
2014-01-05 16:07:11 +00:00
|
|
|
|
2015-02-12 14:32:52 +00:00
|
|
|
<div class="im_message_wrap clearfix" ng-switch="::historyMessage._ == 'messageService'">
|
2014-01-05 16:07:11 +00:00
|
|
|
|
2015-07-01 12:46:34 +00:00
|
|
|
<div class="im_service_message_wrap" ng-switch-when="true" ng-switch="historyMessage.action._ == 'messageActionBotIntro'">
|
|
|
|
<div ng-switch-when="true" class="im_bot_intro_message_wrap">
|
|
|
|
<div class="im_bot_intro_message_header" my-i18n="message_service_bot_intro_header"></div>
|
|
|
|
<div class="im_bot_intro_message" ng-bind-html="::historyMessage.action.rDescription"></div>
|
|
|
|
</div>
|
|
|
|
<div ng-switch-default class="im_service_message">
|
2015-09-23 18:18:39 +00:00
|
|
|
<a class="im_message_author" ng-if="::historyMessage.fromID > 0" my-peer-link="historyMessage.fromID" short="historyMessage.toID > 0" color="historyMessage.toID < 0" no-watch="true"></a>
|
2014-07-23 16:34:13 +00:00
|
|
|
<span class="im_message_service" my-service-message></span>
|
2014-02-13 19:08:38 +00:00
|
|
|
</div>
|
2014-01-05 16:07:11 +00:00
|
|
|
|
2015-09-23 18:18:39 +00:00
|
|
|
<a ng-if="::historyMessage.action._ == 'messageActionChatEditPhoto' || historyMessage.action._ == 'messageActionChannelEditPhoto'" class="im_service_message_photo_thumb" href="" ng-click="openPhoto(historyMessage.action.photo.id)">
|
2014-02-13 19:08:38 +00:00
|
|
|
<img
|
|
|
|
class="im_service_message_photo_thumb"
|
|
|
|
my-load-thumb
|
|
|
|
thumb="historyMessage.action.photo.thumb"
|
|
|
|
/>
|
|
|
|
</a>
|
2014-01-05 16:07:11 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2015-11-12 20:02:28 +00:00
|
|
|
<div ng-switch-default class="im_content_message_wrap" ng-class="::[historyMessage.pFlags.out ? 'im_message_out' : 'im_message_in', historyMessage.fwdFromID ? 'im_message_fwd' : '']">
|
2015-07-08 17:15:11 +00:00
|
|
|
<i class="icon icon-select-tick"></i>
|
2014-02-13 19:08:38 +00:00
|
|
|
|
2014-09-10 18:22:47 +00:00
|
|
|
<a class="im_message_error_btn" ng-if="::historyMessage.pending || historyMessage.error || false" ng-click="historyMessage.send()">
|
2015-11-30 17:32:41 +00:00
|
|
|
<i class="icon-message-status" tooltip="{{'message_action_retry' | i18n}}"></i>
|
2014-02-13 19:08:38 +00:00
|
|
|
</a>
|
2015-11-12 20:02:28 +00:00
|
|
|
<i ng-if="::historyMessage.pFlags.unread && historyMessage.pFlags.out || historyMessage.pending || false" class="icon-message-status" ng-show="!historyMessage.error"></i>
|
2014-07-23 16:34:13 +00:00
|
|
|
|
2015-09-23 18:18:39 +00:00
|
|
|
<a class="im_message_from_photo pull-left" my-peer-photolink="::historyMessage.fromID" img-class="im_message_from_photo"></a>
|
2014-02-13 19:08:38 +00:00
|
|
|
|
2016-02-09 19:42:01 +00:00
|
|
|
<div class="im_message_meta pull-right text-right noselect">
|
2015-10-22 21:02:12 +00:00
|
|
|
<div class="im_message_views_wrap" ng-if="::!historyMessage.fwdFromID && historyMessage.views > 0">
|
|
|
|
<div class="im_message_views">
|
|
|
|
<i class="icon-message-views"></i><span class="im_message_views_cnt" my-message-views="historyMessage.mid"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-02-09 19:42:01 +00:00
|
|
|
<span class="im_message_date clickable nocopy" data-content="{{::historyMessage.date | time}}"></span>
|
2014-02-13 19:08:38 +00:00
|
|
|
</div>
|
2014-01-05 16:07:11 +00:00
|
|
|
|
2014-09-23 17:03:38 +00:00
|
|
|
<div class="im_message_body" ng-class="::{im_message_body_media: historyMessage._ == 'message' && historyMessage.media ? true : false}">
|
2014-01-05 16:07:11 +00:00
|
|
|
|
2016-02-10 17:04:48 +00:00
|
|
|
<span class="im_message_author_wrap">
|
2016-02-10 18:21:24 +00:00
|
|
|
<span class="copyonly">[<span ng-bind="::historyMessage.date | time"></span>] </span><a class="im_message_author" my-peer-link="historyMessage.fromID" short="historyMessage.toID > 0" color="historyMessage.toID < 0" no-watch="true"></a><a ng-if="::historyMessage.viaBotID && !historyMessage.fwdFromID" class="im_message_author_via" ng-click="selectInlineBot(historyMessage.viaBotID, $event)"><span class="copyonly"> </span><span my-i18n="message_via_bot"><my-i18n-param name="bot"><span class="im_message_fwd_author" my-peer-link="historyMessage.viaBotID" username="true" no-watch="true"></span></my-i18n-param></span></a><span class="copyonly">:</span>
|
2016-02-10 17:04:48 +00:00
|
|
|
</span>
|
|
|
|
|
2014-06-19 14:34:28 +00:00
|
|
|
|
2015-09-28 20:25:55 +00:00
|
|
|
<a class="im_message_reply_wrap" my-reply-message="historyMessage.reply_to_msg" ng-if="::historyMessage.reply_to_mid"></a>
|
2015-03-17 18:26:17 +00:00
|
|
|
|
2015-09-23 18:18:39 +00:00
|
|
|
<div ng-if="::historyMessage.fwdFromID || false" class="im_message_fwd_from">
|
2016-02-09 19:42:01 +00:00
|
|
|
<span class="copyonly"><span my-i18n="message_forwarded_message"></span>: </span>
|
2015-09-23 18:18:39 +00:00
|
|
|
<a class="im_message_fwd_photo pull-left" my-peer-photolink="::historyMessage.fwdFromID" img-class="im_message_fwd_photo"></a>
|
2014-06-19 14:34:28 +00:00
|
|
|
<div class="im_message_fwd_author_wrap">
|
2016-04-10 22:20:01 +00:00
|
|
|
<a class="im_message_fwd_author" my-peer-link="historyMessage.fwdFromID"></a><a ng-if="::historyMessage.viaBotID" class="im_message_fwd_via" ng-click="selectInlineBot(historyMessage.viaBotID, $event)"><span class="copyonly"> </span><span my-i18n="message_via_bot"><my-i18n-param name="bot"><span class="im_message_fwd_author" my-peer-link="historyMessage.viaBotID" username="true" no-watch="true"></span></my-i18n-param></span></a><span class="copyonly"> [</span><span class="im_message_fwd_date" ng-bind="::historyMessage.fwd_from.date | dateOrTime"></span><span class="copyonly">] </span>
|
2015-10-22 21:02:12 +00:00
|
|
|
<span class="im_message_views_inline" ng-if="::historyMessage.views > 0">
|
|
|
|
<i class="icon-message-views"></i><span class="im_message_views_cnt" my-message-views="historyMessage.mid"></span>
|
|
|
|
</span>
|
2014-06-19 14:34:28 +00:00
|
|
|
</div>
|
2014-02-13 19:08:38 +00:00
|
|
|
</div>
|
2014-01-05 16:07:11 +00:00
|
|
|
|
2016-04-13 19:09:58 +00:00
|
|
|
<div my-message-body="historyMessage">
|
|
|
|
<div class="im_message_text" dir="auto"></div>
|
2016-04-15 11:35:08 +00:00
|
|
|
<div class="im_message_media"></div>
|
2016-06-24 16:22:43 +00:00
|
|
|
<div class="im_message_sign"></div>
|
2016-04-15 11:35:08 +00:00
|
|
|
<div class="im_message_keyboard"></div>
|
2014-02-13 19:08:38 +00:00
|
|
|
</div>
|
|
|
|
|
2015-04-02 16:55:28 +00:00
|
|
|
|
2014-01-05 16:07:11 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-02-13 19:08:38 +00:00
|
|
|
|
2014-01-05 16:07:11 +00:00
|
|
|
</div>
|
2014-02-13 19:08:38 +00:00
|
|
|
|