<div class="peer_select_modal_wrap">

  <div class="modal-header">
    <a class="modal-close-link" ng-click="$close()">Close</a>
    <h4 class="modal-title">Select conversation</h4>
  </div>

  <div class="modal-body">

    <div class="im_dialogs_modal_col_wrap" ng-controller="AppImDialogsController">
      <div class="im_dialogs_search">
        <input class="form-control im_dialogs_search_field" type="search" placeholder="Search" ng-model="search.query"/>
        <a class="im_dialogs_search_clear" ng-click="search.query = ''" ng-show="search.query.length"></a>
      </div>
      <div my-dialogs-list modal="true" class="im_dialogs_modal_col">
        <div class="im_dialogs_wrap nano">
          <div class="im_dialogs_scrollable_wrap content">
            <ul class="nav nav-pills nav-stacked">
              <li class="im_dialog_wrap" my-dialog dialog-message="dialogMessage" ng-repeat="dialogMessage in dialogs track by dialogMessage.peerID"></li>
            </ul>
          </div>
        </div>
      </div>
    </div>

  </div>

</div>