Browse Source

Improved mobile profile modal

Closes #1199
master
Igor Zhukov 8 years ago
parent
commit
ce198238ff
  1. 26
      app/partials/mobile/user_modal.html

26
app/partials/mobile/user_modal.html

@ -20,6 +20,9 @@
<li ng-if="user.phone.length > 0 &amp;&amp; !user.pFlags.contact &amp;&amp; !user.pFlags.self"> <li ng-if="user.phone.length > 0 &amp;&amp; !user.pFlags.contact &amp;&amp; !user.pFlags.self">
<a ng-click="importContact()" my-i18n="user_modal_add_contact"></a> <a ng-click="importContact()" my-i18n="user_modal_add_contact"></a>
</li> </li>
<li>
<a ng-click="flushHistory(true)" my-i18n="user_modal_clear_history"></a>
</li>
<li> <li>
<a ng-click="flushHistory()" my-i18n="user_modal_delete_chat"></a> <a ng-click="flushHistory()" my-i18n="user_modal_delete_chat"></a>
</li> </li>
@ -58,6 +61,16 @@
</div> </div>
<div class="mobile_modal_section" ng-if="user.phone.length > 0">
<h4 class="mobile_modal_section_header" my-i18n="user_modal_phone"></h4>
<div class="mobile_modal_section_value" ng-bind="user.phone | phoneNumber"></div>
</div>
<div class="mobile_modal_section" ng-if="user.username">
<h4 class="mobile_modal_section_header" my-i18n="user_modal_username"></h4>
<div class="mobile_modal_section_value" ng-bind="'@' + user.username"></div>
</div>
<div class="mobile_modal_section" ng-if="rAbout"> <div class="mobile_modal_section" ng-if="rAbout">
<h4 class="mobile_modal_section_header" my-i18n="user_modal_about"></h4> <h4 class="mobile_modal_section_header" my-i18n="user_modal_about"></h4>
<div class="mobile_modal_section_value" ng-bind-html="rAbout"></div> <div class="mobile_modal_section_value" ng-bind-html="rAbout"></div>
@ -91,14 +104,11 @@
</a> </a>
</div> </div>
<div class="mobile_modal_section" ng-if="user.phone.length > 0"> <div class="mobile_modal_action_wrap" ng-if="!user.pFlags.self">
<h4 class="mobile_modal_section_header" my-i18n="user_modal_phone"></h4> <a class="mobile_modal_action" ng-click="toggleBlock(!blocked)" ng-switch="blocked">
<div class="mobile_modal_section_value" ng-bind="user.phone | phoneNumber"></div> <my-i18n ng-switch-when="true" msgid="user_modal_unblock_user"></my-i18n>
</div> <my-i18n ng-switch-default msgid="user_modal_block_user"></my-i18n>
</a>
<div class="mobile_modal_section" ng-if="user.username">
<h4 class="mobile_modal_section_header" my-i18n="user_modal_username"></h4>
<div class="mobile_modal_section_value" ng-bind="'@' + user.username"></div>
</div> </div>
</div> </div>

Loading…
Cancel
Save