|
|
|
@ -31,38 +31,54 @@
@@ -31,38 +31,54 @@
|
|
|
|
|
<div class="im_history_panel clearfix" ng-controller="AppImPanelController"> |
|
|
|
|
<div class="im_history_panel_title"> |
|
|
|
|
|
|
|
|
|
<div ng-if="historyPeer.id < 0"> |
|
|
|
|
<span class="im_history_panel_info_link pull-right">Info</span> |
|
|
|
|
<span class="im_history_panel_edit_link pull-right" ng-click="toggleEdit()">Edit</span> |
|
|
|
|
<h4 ng-click="openChat(-historyPeer.id)"> |
|
|
|
|
<span ng-bind-html="historyPeer.data.rTitle"></span> |
|
|
|
|
<small class="im_chat_users"> |
|
|
|
|
<ng-pluralize count="historyPeer.data.participants_count" |
|
|
|
|
when="{'0': 'No members', 'one': '1 member', 'other': '{} members'}"> |
|
|
|
|
</ng-pluralize> |
|
|
|
|
</small> |
|
|
|
|
</h4> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div ng-if="historyPeer.id > 0"> |
|
|
|
|
<span class="im_history_panel_info_link pull-right">Info</span> |
|
|
|
|
<span class="im_history_panel_edit_link pull-right" ng-click="toggleEdit()">Edit</span> |
|
|
|
|
<h4 ng-click="openUser(historyPeer.id)"> |
|
|
|
|
<span ng-bind-html="historyPeer.data.rFullName"></span> |
|
|
|
|
<small class="im_peer_online">{{historyPeer.data | userStatus}}</small> |
|
|
|
|
</h4> |
|
|
|
|
<a class="im_history_panel_info_link pull-right" ng-click="showPeerInfo()">Info</a> |
|
|
|
|
<a class="im_history_panel_edit_link pull-right" ng-click="toggleEdit()">Edit</a> |
|
|
|
|
|
|
|
|
|
<div class="dropdown im_history_panel_media_dropdown pull-right"> |
|
|
|
|
<a class="dropdown-toggle">Media<i class="icon icon-caret"></i></a> |
|
|
|
|
<ul class="dropdown-menu"> |
|
|
|
|
<li> |
|
|
|
|
<a ng-click="toggleMedia('photos')">Photos & Videos</a> |
|
|
|
|
</li> |
|
|
|
|
<li> |
|
|
|
|
<a ng-click="toggleMedia('documents')">Documents</a> |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
</div> |
|
|
|
|
<a ng-if="mediaType !== false" class="im_history_panel_return_link pull-right" ng-click="toggleMedia()"> |
|
|
|
|
Show all messages |
|
|
|
|
<strong class="im_history_panel_return_count" ng-show="missedCount > 0">+{{missedCount}}</strong> |
|
|
|
|
</a> |
|
|
|
|
|
|
|
|
|
<h4 ng-if="mediaType !== false" ng-switch="mediaType"> |
|
|
|
|
<span ng-switch-when="photos"> Photos & Videos </span> |
|
|
|
|
<span ng-switch-when="documents"> Documents </span> |
|
|
|
|
</h4> |
|
|
|
|
|
|
|
|
|
<h4 ng-if="mediaType === false && historyPeer.id < 0" ng-click="showPeerInfo()"> |
|
|
|
|
<span ng-bind-html="historyPeer.data.rTitle"></span> |
|
|
|
|
<small class="im_chat_users"> |
|
|
|
|
<ng-pluralize count="historyPeer.data.participants_count" |
|
|
|
|
when="{'0': 'No members', 'one': '1 member', 'other': '{} members'}"> |
|
|
|
|
</ng-pluralize> |
|
|
|
|
</small> |
|
|
|
|
</h4> |
|
|
|
|
|
|
|
|
|
<h4 ng-if="mediaType === false && historyPeer.id > 0" ng-click="showPeerInfo()"> |
|
|
|
|
<span ng-bind-html="historyPeer.data.rFullName"></span> |
|
|
|
|
<small class="im_peer_online">{{historyPeer.data | userStatus}}</small> |
|
|
|
|
</h4> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="im_edit_panel_wrap clearfix" ng-if="selectActions"> |
|
|
|
|
<div class="im_edit_panel_wrap clearfix" ng-show="selectActions"> |
|
|
|
|
<a class="im_edit_delete_link" ng-click="selectedDelete()"><i class="icon icon-delete"></i></a> |
|
|
|
|
<a class="im_edit_cancel_link" ng-click="selectedCancel()">Cancel</a> |
|
|
|
|
<h4 class="im_edit_panel_title"> |
|
|
|
|
<ng-pluralize count="selectedCount" |
|
|
|
|
when="{'0': 'No messages', 'one': '1 message', 'other': '{} messages'}"> |
|
|
|
|
when="{'0': 'Select messages', 'one': '1 message', 'other': '{} messages'}"> |
|
|
|
|
</ng-pluralize> |
|
|
|
|
</h4> |
|
|
|
|
</div> |
|
|
|
@ -97,20 +113,13 @@
@@ -97,20 +113,13 @@
|
|
|
|
|
<div class="im_send_form_wrap1"> |
|
|
|
|
|
|
|
|
|
<div class="im_send_form_wrap clearfix" ng-controller="AppImSendController"> |
|
|
|
|
<div class="pull-right im_panel_peer_photo" ng-click="openUser(historyPeer.id)" ng-if="historyPeer.id > 0"> |
|
|
|
|
<img |
|
|
|
|
class="im_panel_peer_photo" |
|
|
|
|
my-load-thumb |
|
|
|
|
thumb="historyPeer.photo" |
|
|
|
|
/> |
|
|
|
|
<i class="icon im_panel_peer_online" ng-show="historyPeer.data.status._ == 'userStatusOnline'"></i> |
|
|
|
|
</div> |
|
|
|
|
<div class="pull-right im_panel_peer_photo" ng-click="openChat(-historyPeer.id)" ng-if="historyPeer.id < 0"> |
|
|
|
|
<div class="pull-right im_panel_peer_photo" ng-click="showPeerInfo()"> |
|
|
|
|
<img |
|
|
|
|
class="im_panel_peer_photo" |
|
|
|
|
my-load-thumb |
|
|
|
|
thumb="historyPeer.photo" |
|
|
|
|
/> |
|
|
|
|
<i class="icon im_panel_peer_online" ng-show="historyPeer.id > 0 && historyPeer.data.status._ == 'userStatusOnline'"></i> |
|
|
|
|
</div> |
|
|
|
|
<div class="pull-left im_panel_own_photo"> |
|
|
|
|
<img |
|
|
|
|