<!--用户登录历史页面 -->
<ion-view cache-view="false">
  <ion-nav-title>
    <h1 class="title"></h1>
  </ion-nav-title>
  <ion-nav-buttons side="left">
    <button class="button icon-left ion-ios-arrow-back button-clear" sino-nav-direction="back" sino-go-back-button>返回</button>
  </ion-nav-buttons>

  <ion-content class="task-list">
    <sino-loading-hint refresh="onRefresh()" state="loadingState">
      <div class="show-login-history" ng-repeat='loginHistory in loginHistorys'>
        <span class="phone-icon-show ion-iphone" ng-if="loginHistory.deviceManagement.terminalType === 'app'"></span>
        <span class="phone-icon-show ion-monitor computer-icon-font"
          ng-if="loginHistory.deviceManagement.terminalType === 'browser'">
        </span>
        <div class="device-show">
          <span>{{loginHistory.deviceManagement.devModel}}</span>
          <span class="change-color"
            ng-if="loginHistory.deviceManagement.terminalType === 'browser'">
            浏览器端网页登录
          </span>
          <span ng-if="loginHistory.deviceManagement.terminalType === 'app'">手机客户端登录</span>
        </div>
        <div class="login-time-show">
          <span class="bottom-time">{{loginHistory.loginTime | normalTime}}</span>
        </div>
      </div>
    </sino-loading-hint>
  </ion-content>
</ion-view>
