Telegram Web, preconfigured for usage in I2P.
http://web.telegram.i2p/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
188 lines
11 KiB
188 lines
11 KiB
<div my-head></div> |
|
|
|
<div class="im_page_wrap" ng-class="{im_page_peer_not_selected: !curDialog.peer}"> |
|
|
|
<div class="im_page_split clearfix"> |
|
|
|
<div ng-controller="AppImDialogsController" my-dialogs has-tabs="{{search.query.length > 0}}" class="im_dialogs_col_wrap"> |
|
<div class="im_dialogs_panel"> |
|
<div class="im_dialogs_search"> |
|
<input class="form-control im_dialogs_search_field no_outline" type="search" placeholder="{{'modal_search' | i18n}}" ng-model="search.query"/> |
|
<a class="im_dialogs_search_clear tg_search_clear" ng-click="searchClear()" ng-show="search.query.length"> |
|
<i class="icon icon-search-clear"></i> |
|
</a> |
|
</div> |
|
</div> |
|
|
|
<div my-dialogs-list-mobile class="im_dialogs_col im_dialogs_scrollable_wrap mobile_scrollable_wrap"> |
|
|
|
<div class="im_dialogs_empty_wrap" ng-if="isEmpty.contacts" my-vertical-position="0.4"> |
|
<h3 class="im_dialogs_empty_header" my-i18n="im_no_contacts"></h3> |
|
<p class="im_dialogs_empty_lead" my-i18n="im_get_started_long"></p> |
|
<button type="button" class="btn btn-primary btn-block im_dialogs_add_contact" ng-click="importContact()" my-i18n="im_add_contact"></button> |
|
<button ng-if="phonebookAvailable" type="button" class="btn btn-primary btn-block im_dialogs_import_phonebook" ng-click="importPhonebook()" my-i18n="im_import_phonebook"></button> |
|
</div> |
|
|
|
<ul class="nav nav-pills nav-stacked"> |
|
<li class="im_dialog_wrap" my-dialog dialog-message="dialogMessage" ng-repeat="dialogMessage in dialogs track by dialogMessage.peerID" ng-class="{active: curDialog.peerID == dialogMessage.peerID}"></li> |
|
</ul> |
|
|
|
<div class="im_dialogs_contacts_wrap" ng-show="contacts.length > 0"> |
|
<h5 my-i18n="im_contacts_title"></h5> |
|
<ul class="nav nav-pills nav-stacked"> |
|
<li class="im_dialog_wrap" ng-repeat="contact in contacts | orderBy:'user.sortName' track by contact.userID" ng-class="{active: curDialog.peerID == contact.userID}"> |
|
<a class="im_dialog" ng-mousedown="dialogSelect(contact.peerString)"> |
|
<div class="im_dialog_photo pull-left" my-peer-photolink="contact.userID" img-class="im_dialog_photo" watch="true"></div> |
|
<div class="im_dialog_message_wrap"> |
|
<div class="im_dialog_peer"> |
|
<span class="im_dialog_user" my-peer-link="contact.userID"></span> |
|
</div> |
|
<div class="im_dialog_message"> |
|
<span class="im_dialog_message_text" my-user-status="::contact.userID"></span> |
|
</div> |
|
</div> |
|
</a> |
|
</li> |
|
</ul> |
|
</div> |
|
|
|
<div class="im_dialogs_contacts_wrap" ng-show="foundPeers.length > 0"> |
|
<h5 my-i18n="im_found_title"></h5> |
|
<ul class="nav nav-pills nav-stacked"> |
|
<li class="im_dialog_wrap" ng-repeat="foundPeer in foundPeers track by foundPeer.id" ng-class="{active: curDialog.peerID == foundPeer.id}"> |
|
<a class="im_dialog" ng-mousedown="dialogSelect(foundPeer.peerString)"> |
|
<div class="im_dialog_photo pull-left" my-peer-photolink="foundPeer.id" img-class="im_dialog_photo" watch="true"></div> |
|
<div class="im_dialog_message_wrap"> |
|
<div class="im_dialog_peer"> |
|
<span class="im_dialog_user" my-peer-link="foundPeer.id"></span> |
|
</div> |
|
<div class="im_dialog_message"> |
|
<span class="im_dialog_message_text" ng-bind="::'@' + foundPeer.username"></span> |
|
</div> |
|
</div> |
|
</a> |
|
</li> |
|
</ul> |
|
</div> |
|
|
|
<div class="im_dialogs_messages_wrap" ng-show="foundMessages.length > 0"> |
|
<h5 my-i18n="im_messages"></h5> |
|
<ul class="nav nav-pills nav-stacked"> |
|
<li class="im_dialog_wrap" my-dialog dialog-message="dialogMessage" ng-repeat="dialogMessage in foundMessages track by dialogMessage.mid" ng-class="{active: curDialog.peerID == dialogMessage.peerID && curDialog.messageID == dialogMessage.mid}"></li> |
|
</ul> |
|
</div> |
|
|
|
</div> |
|
</div> |
|
|
|
<div class="im_history_col_wrap" ng-controller="AppImHistoryController"> |
|
<div ng-show="!state.notSelected && !state.loaded" class="im_history_not_selected" my-vertical-position="0.35" padding="true"> |
|
<my-i18n msgid="im_loading_history"></my-i18n><span my-loading-dots></span> |
|
</div> |
|
|
|
<div ng-show="state.loaded"> |
|
<div my-history-mobile class="im_history_col"> |
|
|
|
<div class="im_history_wrap im_history_scrollable_wrap mobile_scrollable_wrap"> |
|
|
|
<div class="im_history_scrollable"> |
|
<div class="im_history" ng-class="{im_history_selectable: !historyState.botActions, im_history_select_active: historyState.selectActions}"> |
|
<div ng-if="state.empty" class="im_history_empty" ng-switch="state.mayBeHasMore" my-vertical-position="0.25" padding="true"> |
|
<span ng-switch-when="true"> |
|
<my-i18n msgid="im_loading_history"></my-i18n><span my-loading-dots></span> |
|
</span> |
|
<span ng-switch-default my-i18n="im_no_messages"></span> |
|
</div> |
|
|
|
<div class="im_history_messages" ng-class="{im_history_messages_group: historyPeer.id < 0}"> |
|
<div class="im_history_messages_peer" ng-show="peerHistory.peerID == historyPeer.id" ng-repeat="peerHistory in peerHistories"> |
|
<div class="im_history_message_wrap" my-message ng-repeat="historyMessage in peerHistory.messages"></div> |
|
</div> |
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="im_bottom_panel_wrap"> |
|
|
|
<div class="im_edit_panel_wrap clearfix" ng-show="historyState.actions()" ng-switch="historyState.actions()"> |
|
<div class="im_edit_panel_border"></div> |
|
|
|
<div ng-switch-when="bot"> |
|
<a ng-show="historyState.botActions == 'param'" class="btn btn-md btn-md-primary im_edit_cancel_link" ng-click="cancelBot()" my-i18n="modal_cancel"></a> |
|
<div class="im_edit_start_actions"> |
|
<a class="btn btn-primary im_start_btn" ng-click="startBot()" my-i18n="im_start"></a> |
|
</div> |
|
</div> |
|
<div ng-switch-when="channel"> |
|
<div class="im_edit_start_actions" ng-switch="historyState.channelActions"> |
|
<a ng-switch-when="join" class="btn btn-primary im_start_btn" ng-click="joinChannel()" my-i18n="im_channel_join"></a> |
|
<a ng-switch-when="mute" class="btn btn-primary im_start_btn" ng-click="togglePeerMuted(true)" my-i18n="im_channel_mute"></a> |
|
<a ng-switch-when="unmute" class="btn btn-primary im_start_btn" ng-click="togglePeerMuted(false)" my-i18n="im_channel_unmute"></a> |
|
</div> |
|
</div> |
|
<div ng-switch-when="selected" class="im_edit_selected_actions" my-i18n> |
|
<a class="btn btn-md btn-md-primary im_edit_cancel_link" ng-click="selectedCancel()" my-i18n="modal_cancel"></a> |
|
<a class="btn btn-primary im_edit_forward_btn" ng-click="selectedForward()" ng-class="{disabled: !selectedCount}" ng-disabled="!selectedCount" my-i18n-format="im_forward"></a> |
|
<a class="btn btn-primary im_edit_delete_btn" ng-click="selectedDelete()" ng-class="{disabled: !selectedCount}" ng-disabled="!selectedCount" my-i18n-format="im_delete"></a> |
|
<a class="btn btn-primary im_edit_reply_btn" ng-click="selectedReply()" ng-show="selectedCount == 1" my-i18n="im_reply"></a> |
|
<my-i18n-param name="count"><strong class="im_selected_count" ng-show="selectedCount > 0" ng-bind="selectedCount"></strong></my-i18n-param> |
|
</div> |
|
</div> |
|
|
|
<div class="im_send_panel_wrap" ng-show="!historyState.actions()"> |
|
|
|
<div class="im_send_form_wrap1"> |
|
|
|
<div class="im_send_form_wrap clearfix" ng-controller="AppImSendController"> |
|
<form my-send-form draft-message="draftMessage" mentions="mentions" commands="commands" class="im_send_form" ng-class="{im_send_form_empty: !draftMessage.text.length}"> |
|
|
|
<div class="im_send_reply_wrap" ng-if="draftMessage.replyToMessage != null"> |
|
<a class="im_send_reply_cancel" ng-mousedown="draftMessage.replyClear()"><i class="icon icon-reply-bar"></i><i class="icon icon-reply-bar"></i></a> |
|
<a class="im_message_reply_wrap" my-reply-message="draftMessage.replyToMessage" watch="true"></a> |
|
</div> |
|
|
|
<div class="im_send_field_panel"> |
|
<div class="im_send_field_wrap" ng-class="historyState.replyKeyboard._ == 'replyKeyboardMarkup' ? 'im_send_field_wrap_2ndbtn' : ''"> |
|
<a class="composer_command_btn" ng-show="!historyState.replyKeyboard && commands.list.length > 0 && (!draftMessage.text.length || draftMessage.text[0] == '/')" ng-mousedown="toggleSlash($event)" ng-class="draftMessage.text[0] == '/' ? 'active' : ''"><i class="icon icon-slash"></i></a> |
|
<a class="composer_keyboard_btn" ng-show="historyState.replyKeyboard._ == 'replyKeyboardMarkup'" ng-mousedown="replyKeyboardToggle($event)" ng-class="!historyState.replyKeyboard.pFlags.hidden ? 'active' : ''"><i class="icon icon-keyboard"></i></a> |
|
|
|
<div class="im_send_dropbox_wrap" my-i18n="im_photos_drop_text"></div> |
|
<textarea ng-model="draftMessage.text" placeholder="{{'im_message_field_placeholder' | i18n}}" class="form-control im_message_field no_outline" dir="auto"></textarea> |
|
</div> |
|
|
|
<div class="im_attach pull-right"> |
|
<input type="file" class="im_attach_input" size="28" multiple="true" title="{{'im_media_attach_title' | i18n}}" /> |
|
<i class="icon icon-paperclip"></i> |
|
</div> |
|
|
|
<a class="composer_emoji_insert_btn pull-right"><i class="icon icon-emoji"></i></a> |
|
|
|
<button type="submit" class="btn btn-success im_submit"></button> |
|
</div> |
|
|
|
|
|
<div class="im_send_keyboard_wrap" ng-if="historyState.replyKeyboard._ == 'replyKeyboardMarkup'" ng-show="!historyState.replyKeyboard.pFlags.hidden"> |
|
<div my-reply-markup="historyState.replyKeyboard"></div> |
|
</div> |
|
|
|
</form> |
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |