|
|
|
<div class="chat_modal_wrap">
|
|
|
|
|
|
|
|
<div class="modal-header">
|
|
|
|
<a class="modal-close-link" ng-click="$close()">Close</a>
|
|
|
|
<h4 class="modal-title">Group Info</h4>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-body">
|
|
|
|
|
|
|
|
<div class="chat_modal_photo_wrap pull-left">
|
|
|
|
|
|
|
|
<div class="chat_modal_photo">
|
|
|
|
<img
|
|
|
|
class="user_modal_image"
|
|
|
|
my-load-thumb
|
|
|
|
thumb="chatFull.thumb"
|
|
|
|
/>
|
|
|
|
<div class="chat_modal_photo_change_wrap" ng-if="chatFull.chat._ != 'chatForbidden' && !chatFull.chat.left">
|
|
|
|
<div ng-if="photo.updating" class="chat_modal_photo_loading">Updating<span my-typing-dots></span></div>
|
|
|
|
<div ng-if="!photo.updating">
|
|
|
|
<div class="chat_modal_photo_update_link">
|
|
|
|
<input my-file-upload type="file" multiple="false" class="im_attach_input" size="120" multiple="false" accept="image/x-png, image/png, image/gif, image/jpeg" />
|
|
|
|
Update photo
|
|
|
|
</div>
|
|
|
|
<a ng-if="chatFull.thumb.location" href="" ng-click="deletePhoto()" class="chat_modal_photo_delete_link">Delete photo</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="chat_modal_info_wrap clearfix">
|
|
|
|
<h4 class="chat_modal_header">
|
|
|
|
<a href="" ng-if="chatFull.chat._ != 'chatForbidden' && !chatFull.chat.left" ng-click="editTitle()" ng-bind-html="chatFull.chat.rTitle"></a>
|
|
|
|
<span ng-if="chatFull.chat._ == 'chatForbidden' || chatFull.chat.left" ng-bind-html="chatFull.chat.rTitle"></span>
|
|
|
|
</h4>
|
|
|
|
<p class="chat_modal_members_count" ng-if="chatFull.chat.participants_count > 0">
|
|
|
|
<ng-pluralize count="chatFull.chat.participants_count"
|
|
|
|
when="{'0': 'No members', 'one': '1 member', 'other': '{} members'}">
|
|
|
|
</ng-pluralize>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<div class="chat_modal_settings_wrap">
|
|
|
|
<div class="chat_modal_notifications">
|
|
|
|
Notifications:
|
|
|
|
<a ng-click="settings.notifications = !settings.notifications">
|
|
|
|
{{settings.notifications ? 'ON' : 'OFF'}}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="chat_modal_leave_join" ng-if="chatFull.chat._ != 'chatForbidden'">
|
|
|
|
<div class="chat_modal_leave" ng-if="!chatFull.chat.left">
|
|
|
|
<a href="" ng-click="leaveGroup()">Leave group</a>
|
|
|
|
</div>
|
|
|
|
<div class="chat_modal_leave" ng-if="chatFull.chat.left">
|
|
|
|
<a href="" ng-click="returnToGroup()">Return to group</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h5 class="chat_modal_members_header">
|
|
|
|
<a href="" ng-click="inviteToGroup()" ng-if="!chatFull.chat.left && chatFull.participants.participants.length" class="pull-right">Add participant</a>
|
|
|
|
Members
|
|
|
|
</h5>
|
|
|
|
<div class="chat_modal_members_list">
|
|
|
|
|
|
|
|
<div class="chat_modal_participant_wrap clearfix" ng-repeat="participant in chatFull.participants.participants | orderBy:'-user.sortStatus'">
|
|
|
|
<a ng-if="participant.canKick" ng-click="kickFromGroup(participant.user_id)" class="chat_modal_participant_kick pull-right">Kick</a>
|
|
|
|
<a ng-click="openUser(participant.user_id)" class="chat_modal_participant_photo pull-left">
|
|
|
|
<img
|
|
|
|
class="chat_modal_participant_photo"
|
|
|
|
my-load-thumb
|
|
|
|
thumb="participant.userPhoto"
|
|
|
|
/>
|
|
|
|
<i class="icon status_online" ng-show="participant.user.status._ == 'userStatusOnline'"></i>
|
|
|
|
</a>
|
|
|
|
<div class="chat_modal_participant_name">
|
|
|
|
<a ng-click="openUser(participant.user.id)" ng-bind-html="participant.user.rFullName"></a>
|
|
|
|
</div>
|
|
|
|
<div class="chat_modal_participant_status">{{participant.user | userStatus}}</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="chat_modal_members_forbidden" ng-if="chatFull.chat._ == 'chatForbidden' || chatFull.chat.left">
|
|
|
|
Group members list is unavailable.
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|