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

85 lines
3.0 KiB
HTML
Raw Normal View History

2014-03-24 12:13:34 +00:00
<div class="user_modal_wrap" my-modal-position>
2014-01-05 16:07:11 +00:00
2014-04-05 16:07:41 +00:00
<a class="modal-close-button" ng-click="$close()"><i></i></a>
2014-01-05 16:07:11 +00:00
<div class="modal-body">
2014-04-05 16:07:41 +00:00
<div class="user_modal_photo_profile_wrap">
2014-06-04 15:40:27 +00:00
<a href="" ng-click="openPhoto(userPhoto.id, -user.id)" class="user_modal_image_wrap pull-left" ng-class="{disabled: !userPhoto.id}">
2014-04-05 16:07:41 +00:00
<img
class="user_modal_image"
my-load-thumb
thumb="userPhoto"
/>
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="user | userName"></h4>
2014-07-25 14:54:23 +00:00
<p class="user_modal_status" ng-if="user.status" my-user-status="::user.id"></p>
2014-04-05 16:07:41 +00:00
<div class="user_modal_actions_wrap clearfix">
2014-09-16 16:12:52 +00:00
<button class="btn btn-primary user_modal_main_btn" ng-click="goToHistory()" my-i18n="user_modal_send_message"></button>
2014-04-05 16:07:41 +00:00
<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="user_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="user._ == 'userContact'">
2014-09-16 16:12:52 +00:00
<a ng-click="importContact(true)" my-i18n="user_modal_edit_contact"></a>
2014-04-05 16:07:41 +00:00
</li>
<li ng-if="user._ == 'userContact'">
2014-09-16 16:12:52 +00:00
<a ng-click="deleteContact()" my-i18n="user_modal_delete_contact"></a>
2014-04-05 16:07:41 +00:00
</li>
<li ng-if="user.phone.length > 0 &amp;&amp; user._ != 'userContact'">
2014-09-16 16:12:52 +00:00
<a ng-click="importContact()" my-i18n="user_modal_add_contact"></a>
2014-04-05 16:07:41 +00:00
</li>
<li ng-if="user.phone.length > 0">
2014-09-16 16:12:52 +00:00
<a ng-click="shareContact()" my-i18n="user_modal_share_contact"></a>
2014-04-05 16:07:41 +00:00
</li>
<li>
2014-09-16 16:12:52 +00:00
<a ng-click="flushHistory()" my-i18n="user_modal_delete_chat"></a>
2014-04-05 16:07:41 +00:00
</li>
</ul>
</div>
2014-01-05 16:07:11 +00:00
2014-03-24 12:13:34 +00:00
</div>
2014-04-05 16:07:41 +00:00
</div>
</div>
2014-03-24 12:13:34 +00:00
2014-10-14 18:12:49 +00:00
<div class="modal_section" ng-if="user.phone || user.username">
<h3 class="modal_section_header" my-i18n="user_modal_info"></h3>
2014-04-05 16:07:41 +00:00
<div class="modal_section_body">
2014-10-14 18:12:49 +00:00
<dl ng-if="user.phone">
<dt><my-i18n msgid="user_modal_phone"></my-i18n>:</dt>
<dd ng-bind="user.phone | phoneNumber"></dd>
</dl>
<dl ng-if="user.username">
<dt><my-i18n msgid="user_modal_username"></my-i18n>:</dt>
<dd ng-bind="'@' + user.username"></dd>
</dl>
2014-03-24 12:13:34 +00:00
</div>
2014-02-07 20:43:07 +00:00
</div>
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="user_modal_settings"></h3>
2014-04-05 16:07:41 +00:00
<div class="modal_section_body">
<div class="tg_form_group">
<a class="tg_checkbox" 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>
2014-09-16 16:12:52 +00:00
<span class="tg_checkbox_label" my-i18n="user_modal_notifications"></span>
2014-04-05 16:07:41 +00:00
</a>
</div>
2014-02-07 20:43:07 +00:00
</div>
2014-01-05 16:07:11 +00:00
</div>
</div>
2014-09-16 16:12:52 +00:00
</div>