webogram-i2p/app/partials/desktop/settings_modal.html

125 lines
5.3 KiB
HTML
Raw Normal View History

2014-04-05 16:07:41 +00:00
<div class="settings_modal_wrap modal_content_wrap" my-modal-position>
2014-02-04 16:04:32 +00:00
2014-04-05 16:07:41 +00:00
<a class="modal-close-button" ng-click="$close()"><i></i></a>
2014-02-04 16:04:32 +00:00
<div class="modal-body">
2014-04-05 16:07:41 +00:00
<div class="user_modal_photo_profile_wrap">
2014-03-04 22:52:26 +00:00
2014-06-04 15:40:27 +00:00
<a href="" ng-click="openPhoto(photo.id, -profile.id)" class="user_modal_image_wrap pull-left" ng-class="{disabled: !photo.id}">
2014-04-05 16:07:41 +00:00
<img
class="user_modal_image"
my-load-thumb
2014-07-24 08:16:28 +00:00
watch="true"
2014-04-05 16:07:41 +00:00
thumb="photo"
/>
2014-06-04 15:40:27 +00:00
</a>
2014-04-05 16:07:41 +00:00
<div class="user_modal_info_wrap clearfix">
<h4 class="user_modal_header" ng-bind-html="profile.rFullName"></h4>
2014-07-25 14:54:23 +00:00
<p class="user_modal_status" my-user-status="::profile.id"></p>
2014-04-05 16:07:41 +00:00
<div class="user_modal_actions_wrap clearfix">
<span class="btn btn-primary user_modal_main_btn" ng-if="!photo.updating">
<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" />
2014-09-16 16:12:52 +00:00
<my-i18n msgid="settings_modal_set_photo"></my-i18n>
2014-04-05 16:07:41 +00:00
</span>
<span class="btn btn-primary user_modal_main_btn disabled" disabled ng-if="photo.updating">
2014-09-16 16:12:52 +00:00
<my-i18n msgid="settings_modal_photo_updating"></my-i18n>
<span my-loading-dots></span>
2014-04-05 16:07:41 +00:00
</span>
<div class="dropdown user_modal_other_btn">
2014-09-16 16:12:52 +00:00
<button class="btn btn-link dropdown-toggle">
<my-i18n msgid="settings_modal_menu_more"></my-i18n>
<i class="icon icon-caret"></i>
</button>
2014-04-05 16:07:41 +00:00
<ul class="dropdown-menu">
<li ng-if="photo.location">
2014-09-16 16:12:52 +00:00
<a ng-click="deletePhoto()" my-i18n="settings_modal_delete_photo"></a>
2014-04-05 16:07:41 +00:00
</li>
<li>
2014-09-16 16:12:52 +00:00
<a ng-click="editProfile()" my-i18n="settings_modal_edit_profile"></a>
2014-04-05 16:07:41 +00:00
</li>
<li>
2014-09-16 16:12:52 +00:00
<a ng-click="terminateSessions()" my-i18n="settings_modal_terminate_sessions"></a>
2014-04-05 16:07:41 +00:00
</li>
</ul>
</div>
2014-02-04 16:04:32 +00:00
2014-03-04 22:52:26 +00:00
</div>
2014-04-05 16:07:41 +00:00
</div>
2014-03-02 13:37:24 +00:00
2014-03-04 22:52:26 +00:00
</div>
2014-02-04 16:04:32 +00:00
2014-04-05 16:07:41 +00:00
<div class="modal_section" ng-if="profile.phone">
2014-09-16 16:12:52 +00:00
<h3 class="modal_section_header" my-i18n="settings_modal_phone"></h3>
2014-04-05 16:07:41 +00:00
<div class="modal_section_body">
<p><span ng-bind="profile.phone | phoneNumber"></span></p>
2014-02-04 19:55:20 +00:00
</div>
2014-04-05 16:07:41 +00:00
</div>
2014-02-04 19:55:20 +00:00
2014-04-05 16:07:41 +00:00
<div class="modal_section">
2014-09-16 16:12:52 +00:00
<h3 class="modal_section_header" my-i18n="settings_modal_settings"></h3>
2014-04-05 16:07:41 +00:00
<div class="modal_section_body">
2014-02-04 16:04:32 +00:00
2014-04-05 16:07:41 +00:00
<div class="tg_form_group">
<!--label my-i18n="settings_modal_language"></label>
<select class="tg_select" ng-model="i18n.locale">
2014-09-16 16:12:52 +00:00
<option value="{{lang}}" ng-selected="lang == i18n.locale" ng-repeat="(lang, name) in i18n.supported" ng-bind="name"></option>
</select-->
<a class="tg_checkbox" ng-click="toggleDesktop()" ng-class="notify.desktop ? 'tg_checkbox_on' : ''">
2014-04-05 16:07:41 +00:00
<span class="icon icon-checkbox-outer"><i class="icon-checkbox-inner"></i></span>
2014-09-16 16:12:52 +00:00
<span class="tg_checkbox_label" my-i18n="settings_modal_notifications"></span>
2014-04-05 16:07:41 +00:00
</a>
2014-02-04 16:04:32 +00:00
<a class="tg_checkbox" ng-click="toggleSound()" ng-class="notify.volume ? 'tg_checkbox_on' : ''">
2014-04-05 16:07:41 +00:00
<span class="icon icon-checkbox-outer"><i class="icon-checkbox-inner"></i></span>
2014-09-16 16:12:52 +00:00
<span class="tg_checkbox_label" my-i18n="settings_modal_sound"></span>
2014-04-05 16:07:41 +00:00
</a>
<div class="tg_range_wrap" ng-show="notify.volume > 0">
<span class="icon icon-volume-outer" ng-class="'icon-volume-outer' + notify.volumeOf4()">
<i class="icon-volume-inner icon-volume-inner1"></i>
<i class="icon-volume-inner icon-volume-inner2"></i>
<i class="icon-volume-inner icon-volume-inner3"></i>
<i class="icon-volume-inner icon-volume-inner4"></i>
</span>
<input type="range" class="tg_range" ng-model="notify.volume" min="1" max="10">
</div>
2014-04-05 16:07:41 +00:00
</div>
2014-02-04 16:04:32 +00:00
2014-04-05 16:07:41 +00:00
<div class="tg_form_group">
<a class="tg_radio" ng-click="toggleCtrlEnter(1)" ng-class="send.enter == 1 ? 'tg_radio_on' : ''">
2014-04-05 16:07:41 +00:00
<i class="icon icon-radio"></i>
2014-09-16 16:12:52 +00:00
<span my-i18n="settings_modal_enter_send_description_md"></span>
2014-04-05 16:07:41 +00:00
</a>
<a class="tg_radio" ng-click="toggleCtrlEnter(0)" ng-class="send.enter == 0 ? 'tg_radio_on' : ''">
2014-04-05 16:07:41 +00:00
<i class="icon icon-radio"></i>
2014-09-16 16:12:52 +00:00
<span my-i18n="settings_modal_ctrl_enter_send_description_md"></span>
2014-04-05 16:07:41 +00:00
</a>
</div>
2014-02-04 16:04:32 +00:00
2014-04-05 16:07:41 +00:00
</div>
</div>
2014-02-04 16:04:32 +00:00
2014-04-05 16:07:41 +00:00
<div class="modal_section">
2014-09-16 16:12:52 +00:00
<h3 class="modal_section_header" my-i18n="settings_modal_about"></h3>
2014-06-04 16:59:46 +00:00
<div class="modal_section_body settings_about_section_body">
<div class="settings_external_services pull-right">
2014-09-16 16:12:52 +00:00
<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>
2014-06-04 16:59:46 +00:00
</div>
<p>
2014-09-16 16:12:52 +00:00
<a ng-click="openChangelog()" my-i18n="settings_modal_recent_updates">
<my-i18n-param name="version" ng-bind="version"></my-i18n-param>
</a>
</p>
2014-04-05 16:07:41 +00:00
</div>
2014-02-04 16:04:32 +00:00
</div>
2014-04-05 16:07:41 +00:00
2014-02-04 16:04:32 +00:00
</div>
2014-02-12 17:33:31 +00:00
</div>