Igor Zhukov
9 years ago
14 changed files with 278 additions and 71 deletions
@ -0,0 +1,140 @@ |
|||||||
|
<div class="chat_modal_wrap"> |
||||||
|
|
||||||
|
<div class="tg_page_head tg_modal_head"> |
||||||
|
<div class="navbar navbar-static-top navbar-inverse"> |
||||||
|
<div class="container"> |
||||||
|
|
||||||
|
<div class="navbar-toggle-wrap dropdown" dropdown ng-if="chatFull.chat.pFlags.creator || !chatFull.chat.pFlags.left && !chatFull.chat.pFlags.kicked"> |
||||||
|
<a class="dropdown-toggle navbar-toggle" dropdown-toggle> |
||||||
|
<span class="icon-bar"></span> |
||||||
|
<span class="icon-bar"></span> |
||||||
|
<span class="icon-bar"></span> |
||||||
|
</a> |
||||||
|
<ul class="dropdown-menu"> |
||||||
|
<li ng-if="chatFull.chat.pFlags.creator"> |
||||||
|
<a ng-click="deletePhoto()" my-i18n="group_modal_menu_delete_photo"></a> |
||||||
|
</li> |
||||||
|
<li ng-if="chatFull.chat.pFlags.creator"> |
||||||
|
<a ng-click="editChannel()" my-i18n="modal_edit"></a> |
||||||
|
</li> |
||||||
|
<li ng-if="chatFull.chat.pFlags.creator"> |
||||||
|
<a ng-click="deleteChannel()" my-i18n="channel_modal_delete_channel"></a> |
||||||
|
</li> |
||||||
|
<li ng-if="!chatFull.chat.pFlags.creator && !chatFull.chat.pFlags.left && !chatFull.chat.pFlags.kicked"> |
||||||
|
<a ng-click="leaveChannel()" my-i18n="channel_modal_leave_channel"></a> |
||||||
|
</li> |
||||||
|
</ul> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="navbar-header"> |
||||||
|
|
||||||
|
<ul class="nav navbar-nav navbar-quick-nav"> |
||||||
|
<li> |
||||||
|
<a ng-click="$close()" class="navbar-quick-media-back"> |
||||||
|
<i class="icon icon-back"></i> |
||||||
|
<div class="navbar-quick-back-title"> |
||||||
|
<h4 my-i18n="channel_modal_info"></h4> |
||||||
|
</div> |
||||||
|
</a> |
||||||
|
</li> |
||||||
|
</ul> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="modal-body mobile_modal_body"> |
||||||
|
|
||||||
|
<div class="mobile_user_modal_photo_profile_wrap"> |
||||||
|
|
||||||
|
<a href="" ng-click="openPhoto(chatFull.chat_photo.id, {p: -chatFull.chat.id})" class="mobile_user_modal_image_wrap pull-left" ng-class="{disabled: !chatFull.chat.photo.photo_small}"> |
||||||
|
<img |
||||||
|
class="mobile_user_modal_image mobile_chat_modal_image" |
||||||
|
my-load-thumb |
||||||
|
watch="true" |
||||||
|
thumb="chatFull.thumb" |
||||||
|
/> |
||||||
|
</a> |
||||||
|
|
||||||
|
<div class="mobile_user_modal_info_wrap clearfix"> |
||||||
|
<h4 class="mobile_user_modal_header" my-peer-link="-chatFull.chat.id"></h4> |
||||||
|
<p class="mobile_user_modal_status" ng-if="chatFull.participants_count > 0"> |
||||||
|
<ng-pluralize count="chatFull.participants_count" |
||||||
|
when="group_modal_pluralize_participants"> |
||||||
|
</ng-pluralize> |
||||||
|
</p> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="mobile_modal_section" ng-if="chatFull.rAbout"> |
||||||
|
<h4 class="mobile_modal_section_header" my-i18n="user_modal_about"></h4> |
||||||
|
<div class="mobile_modal_section_value" ng-bind-html="chatFull.rAbout"></div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="mobile_modal_section" ng-if="chatFull.chat.username || chatFull.chat.pFlags.creator"> |
||||||
|
<h4 class="mobile_modal_section_header" my-i18n="channel_modal_share_link"></h4> |
||||||
|
<div class="mobile_modal_section_value" ng-switch="chatFull.chat.username.length > 0"> |
||||||
|
<a ng-switch-when="true" class="settings_modal_username_link" ng-click="shareLink($event)" ng-bind="'https://telegram.me/' + chatFull.chat.username" ng-href="https://telegram.me/{{chatFull.chat.username}}" target="_blank"></a> |
||||||
|
<a ng-switch-default ng-click="shareLink($event)" ng-bind="chatFull.exported_invite.link" ng-href="{{chatFull.exported_invite.link}}" target="_blank"></a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="mobile_modal_action_wrap" ng-if="chatFull.chat.pFlags.creator"> |
||||||
|
<a class="mobile_modal_action" ng-click="inviteToChannel()" my-i18n="channel_modal_add_member"></a> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="mobile_modal_action_wrap" ng-if="chatFull.chat.pFlags.left"> |
||||||
|
<a class="mobile_modal_action" ng-click="joinChannel()" my-i18n="channel_modal_join"></a> |
||||||
|
</div> |
||||||
|
<div class="mobile_modal_action_wrap" ng-if="chatFull.chat._ == 'chatForbidden'"> |
||||||
|
<a class="mobile_modal_action" ng-click="flushHistory()" my-i18n="group_modal_return"></a> |
||||||
|
</div> |
||||||
|
<div class="mobile_modal_action_wrap" ng-if="chatFull.chat.pFlags.creator && !photo.updating"> |
||||||
|
<span class="mobile_modal_action mobile_modal_upload_action"> |
||||||
|
<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" /> |
||||||
|
<my-i18n="group_modal_update_photo"></my-i18n> |
||||||
|
</span> |
||||||
|
</div> |
||||||
|
<div class="mobile_modal_action_wrap" ng-if="photo.updating"> |
||||||
|
<span class="mobile_modal_action" my-i18n> |
||||||
|
<my-i18n="group_modal_update_active"></my-i18n> |
||||||
|
<span my-loading-dots></span> |
||||||
|
</span> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="mobile_modal_action_wrap"> |
||||||
|
<a class="mobile_modal_action tg_checkbox clearfix" ng-click="settings.notifications = !settings.notifications" ng-class="settings.notifications ? 'tg_checkbox_on' : ''"> |
||||||
|
<span class="icon icon-checkbox-outer"><i class="icon-checkbox-inner"></i></span> |
||||||
|
<span class="tg_checkbox_label" my-i18n="group_modal_notifications"></span> |
||||||
|
</a> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="mobile_modal_section" ng-if="chatFull.participants.participants.length > 0"> |
||||||
|
<h4 class="mobile_modal_section_header" my-i18n="group_modal_members"></h4> |
||||||
|
<div class="mobile_modal_section_body"> |
||||||
|
|
||||||
|
<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="kickFromChannel(participant.user_id)" class="chat_modal_participant_kick pull-right" my-i18n="group_modal_members_kick"></a> |
||||||
|
<a ng-if="participant.canLeave" ng-click="leaveChannel()" class="chat_modal_participant_kick pull-right" my-i18n="group_modal_menu_leave"></a> |
||||||
|
|
||||||
|
<a class="chat_modal_participant_photo pull-left" my-user-photolink="participant.user_id" img-class="chat_modal_participant_photo" status="true"></a> |
||||||
|
|
||||||
|
<div class="chat_modal_participant_name"> |
||||||
|
<a my-peer-link="participant.user_id"></a> |
||||||
|
</div> |
||||||
|
<div class="chat_modal_participant_status" my-user-status="::participant.user_id" bot-chat-privacy="true"></div> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
@ -0,0 +1,20 @@ |
|||||||
|
<div class="im_message_venue clearfix"> |
||||||
|
|
||||||
|
<a ng-href="{{::venue.mapUrl}}" target="_blank" class="im_message_venue_geopoint_wrap"> |
||||||
|
<i class="icon icon-geo-point"></i> |
||||||
|
<img |
||||||
|
class="im_message_venue_geopoint_image" |
||||||
|
my-geo-point-map="venue.geo" |
||||||
|
width="100" |
||||||
|
height="100" |
||||||
|
/> |
||||||
|
</a> |
||||||
|
|
||||||
|
<div class="im_message_venue_info"> |
||||||
|
<div class="im_message_venue_title_wrap"> |
||||||
|
<a ng-href="{{::venue.mapUrl}}" target="_blank" class="im_message_document_name" ng-bind="::venue.title"></a> |
||||||
|
</div> |
||||||
|
<div class="im_message_venue_address" ng-bind="::venue.address"></div> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
@ -0,0 +1,47 @@ |
|||||||
|
<div ng-show="webpage._ == 'webPage'" class="im_message_webpage_wrap clearfix" ng-switch="webpage.type"> |
||||||
|
<div ng-switch-when="photo" class="im_message_webpage_photo"> |
||||||
|
<div class="im_message_webpage_site" ng-bind="webpage.site_name || webpage.display_url"></div> |
||||||
|
<div class="im_message_webpage_title"> |
||||||
|
<a href="{{webpage.url}}" target="_blank" ng-bind-html="webpage.rTitle"></a> |
||||||
|
</div> |
||||||
|
<div ng-if="webpage.description.length" class="im_message_webpage_description" ng-bind-html="webpage.rDescription"></div> |
||||||
|
<a class="im_message_photo_thumb" ng-click="openPhoto(webpage.photo.id, {w: webpage.id, m: messageId})" ng-style="::{width: webpage.photo.thumb.width + 'px'}" ng-mouseover="preloadPhoto(webpage.photo.id)"> |
||||||
|
<img |
||||||
|
class="im_message_photo_thumb" |
||||||
|
my-load-thumb |
||||||
|
thumb="webpage.photo.thumb" |
||||||
|
/> |
||||||
|
</a> |
||||||
|
</div> |
||||||
|
<div ng-switch-when="video" class="im_message_webpage_video"> |
||||||
|
<div class="im_message_webpage_site" ng-bind="webpage.site_name || webpage.display_url"></div> |
||||||
|
<div class="im_message_webpage_title"> |
||||||
|
<a ng-click="openEmbed($event)" href="{{webpage.url}}" target="_blank" ng-bind-html="webpage.rTitle"></a> |
||||||
|
</div> |
||||||
|
<div ng-if="webpage.description.length" class="im_message_webpage_description" ng-bind-html="webpage.rDescription"></div> |
||||||
|
<a class="im_message_video_thumb" ng-click="openEmbed($event)" ng-href="{{webpage.url}}" target="_blank" ng-style="::{width: video.thumb.width + 'px'}"> |
||||||
|
<span ng-if="webpage.duration > 0" class="im_message_video_duration" ng-bind="::webpage.duration | duration"></span> |
||||||
|
<i class="icon icon-videoplay"></i> |
||||||
|
<img |
||||||
|
class="im_message_video_thumb" |
||||||
|
my-load-thumb |
||||||
|
thumb="webpage.photo.thumb" |
||||||
|
/> |
||||||
|
</a> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div ng-switch-default class="im_message_webpage_article"> |
||||||
|
<a ng-if="webpage.photo" href="{{webpage.url}}" target="_blank" class="im_message_webpage_article_photo pull-right"> |
||||||
|
<img |
||||||
|
class="im_message_article_thumb" |
||||||
|
my-load-thumb |
||||||
|
thumb="webpage.photo.thumb" |
||||||
|
/> |
||||||
|
</a> |
||||||
|
<div class="im_message_webpage_site" ng-bind="webpage.site_name"></div> |
||||||
|
<div class="im_message_webpage_title"> |
||||||
|
<a ng-click="openEmbed($event)" href="{{webpage.url}}" target="_blank" ng-bind-html="webpage.rTitle"></a> |
||||||
|
</div> |
||||||
|
<div ng-if="webpage.description.length" class="im_message_webpage_description" ng-bind-html="webpage.rDescription"></div> |
||||||
|
</div> |
||||||
|
</div> |
Loading…
Reference in new issue