|
|
|
<div class="settings_modal_wrap modal_content_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">
|
|
|
|
<a class="dropdown-toggle navbar-toggle">
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li ng-if="photo.location">
|
|
|
|
<a ng-click="deletePhoto()" my-i18n="settings_modal_delete_photo"></a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a ng-click="editProfile()" my-i18n="settings_modal_edit_profile"></a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a ng-click="terminateSessions()" my-i18n="settings_modal_terminate_sessions"></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="settings_modal_title"></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(photo.id, -profile.id)" class="mobile_user_modal_image_wrap pull-left" ng-class="{disabled: !photo.id}">
|
|
|
|
<img
|
|
|
|
class="mobile_user_modal_image"
|
|
|
|
my-load-thumb
|
|
|
|
watch="true"
|
|
|
|
thumb="photo"
|
|
|
|
/>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<div class="mobile_user_modal_info_wrap clearfix">
|
|
|
|
<h4 class="mobile_user_modal_header" ng-bind-html="profile.rFullName"></h4>
|
|
|
|
<p class="mobile_user_modal_status" my-user-status="::profile.id"></p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="mobile_modal_action_wrap" ng-switch="photo.updating">
|
|
|
|
<span ng-switch-when="true" class="mobile_modal_action" my-i18n>
|
|
|
|
<my-i18n msgid="settings_modal_photo_updating"></my-i18n>
|
|
|
|
<span my-loading-dots></span>
|
|
|
|
</span>
|
|
|
|
<span ng-switch-default 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 msgid="settings_modal_set_photo"></my-i18n>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="mobile_modal_action_wrap">
|
|
|
|
<a class="mobile_modal_action tg_checkbox clearfix" ng-click="toggleDesktop()" ng-class="notify.desktop ? 'tg_checkbox_on' : ''">
|
|
|
|
<span class="icon icon-checkbox-outer"><i class="icon-checkbox-inner"></i></span>
|
|
|
|
<span class="tg_checkbox_label" my-i18n="settings_modal_notification_alert"></span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="mobile_modal_action_wrap" ng-if="!notify.desktop && notify.canVibrate">
|
|
|
|
<a class="mobile_modal_action tg_checkbox clearfix" ng-click="toggleVibrate()" ng-class="notify.vibrate ? 'tg_checkbox_on' : ''">
|
|
|
|
<span class="icon icon-checkbox-outer"><i class="icon-checkbox-inner"></i></span>
|
|
|
|
<span class="tg_checkbox_label" my-i18n="settings_modal_vibrate"></span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="mobile_modal_action_wrap">
|
|
|
|
<a class="mobile_modal_action tg_checkbox clearfix" ng-click="toggleSound()" ng-class="notify.volume ? 'tg_checkbox_on' : ''">
|
|
|
|
<span class="icon icon-checkbox-outer"><i class="icon-checkbox-inner"></i></span>
|
|
|
|
<span class="tg_checkbox_label" my-i18n="settings_modal_sounds"></span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="mobile_modal_action_wrap">
|
|
|
|
<a class="mobile_modal_action tg_checkbox clearfix" ng-click="toggleCtrlEnter(send.enter == 1 ? 0 : 1)" ng-class="send.enter == 1 ? 'tg_checkbox_on' : ''">
|
|
|
|
<span class="icon icon-checkbox-outer"><i class="icon-checkbox-inner"></i></span>
|
|
|
|
<span class="tg_checkbox_label" my-i18n="settings_modal_send_on_enter"></span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="mobile_modal_action_wrap" ng-controller="AppLangSelectController">
|
|
|
|
<div class="mobile_modal_select_wrap pull-right">
|
|
|
|
<select class="form-control" ng-change="localeSelect()" ng-model="form.locale">
|
|
|
|
<option ng-repeat="locale in ::supportedLocales" value="{{locale}}" ng-bind="langNames[locale]" ng-selected="locale == curLocale"></option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<span class="mobile_modal_action" my-i18n="settings_modal_language"></span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="mobile_modal_section" ng-if="profile.phone">
|
|
|
|
<h4 class="mobile_modal_section_header" my-i18n="settings_modal_phone"></h4>
|
|
|
|
<div class="mobile_modal_section_value" ng-bind="profile.phone | phoneNumber"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="mobile_modal_section">
|
|
|
|
<h4 class="mobile_modal_section_header" my-i18n="settings_modal_about"></h4>
|
|
|
|
<div class="mobile_modal_section_body settings_about_section_body clearfix">
|
|
|
|
<div class="settings_external_services pull-right">
|
|
|
|
<a href="https://github.com/zhukov/webogram" target="_blank" title="{{'settings_modal_source_code_github' | i18n}}" class="settings_external_service"><i class="icon icon-github"></i></a>
|
|
|
|
<a href="https://twitter.com/telegram_web" target="_blank" title="{{'settings_modal_follow_us_twitter' | i18n}}" class="settings_external_service"><i class="icon icon-twitter"></i></a>
|
|
|
|
</div>
|
|
|
|
<p>
|
|
|
|
<a ng-click="openChangelog()" my-i18n="settings_modal_recent_updates">
|
|
|
|
<my-i18n-param name="version" ng-bind="version"></my-i18n-param>
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|