webogram-i2p/app/partials/user_modal.html

72 lines
2.5 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">
<button class="btn btn-primary user_modal_main_btn" ng-click="goToHistory()">Send message</button>
<div class="dropdown user_modal_other_btn">
<button class="btn btn-link dropdown-toggle">More<i class="icon icon-caret"></i></button>
<ul class="dropdown-menu">
<li ng-if="user._ == 'userContact'">
<a ng-click="importContact(true)">Edit contact</a>
</li>
<li ng-if="user._ == 'userContact'">
<a ng-click="deleteContact()">Delete contact</a>
</li>
<li ng-if="user.phone.length > 0 &amp;&amp; user._ != 'userContact'">
<a ng-click="importContact()">Add to contacts</a>
</li>
<li ng-if="user.phone.length > 0">
<a ng-click="shareContact()">Share contact</a>
</li>
<li>
<a ng-click="flushHistory()">Delete chat</a>
</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-04-05 16:07:41 +00:00
<div class="modal_section" ng-if="user.phone">
<h3 class="modal_section_header">Phone</h3>
<div class="modal_section_body">
<p><span ng-bind="user.phone | phoneNumber"></span></p>
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">
<h3 class="modal_section_header">Settings</h3>
<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>
<span class="tg_checkbox_label">Notifications</span>
</a>
</div>
2014-02-07 20:43:07 +00:00
</div>
2014-01-05 16:07:11 +00:00
</div>
</div>
</div>