<ion-view>
  <ion-nav-bar class="bar-royal">
    <ion-nav-title>{{'Session Log' | translate}}</ion-nav-title>
    <ion-nav-back-button>
    </ion-nav-back-button>
  </ion-nav-bar>
  <ion-content>
    <button class="button button-block button-positive" copy-to-clipboard="prepare()">
      <i class="icon ion-clipboard"></i>
      <span translate>Copy to clipboard</span>
    </button>
    <button class="button button-block button-positive" ng-show="isCordova" ng-click="sendLogs()">
      <i class="icon ion-ios-email-outline"></i>
      <span translate>Send by email</span>
    </button>
    <div class="card">
      <div class="item item-text-wrap">
        <ul>
          <li ng-repeat="l in logs">
            <span ng-class="{'energized': l.level=='warn', 'dark': l.level=='debug', 'positive': l.level=='info', 'assertive': l.level=='error' }">
              {{l.msg}}
            </span>
          </li>
        </ul>
      </div>
    </div>
  </ion-content>
</ion-view>
