<div class="modal fade" role="dialog" aria-modal="true" aria-labelledby="passwordGenHistoryTitle">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-body">
        <div class="box">
          <h1 class="box-header" id="passwordGenHistoryTitle">
            {{ "passwordHistory" | i18n }}
          </h1>
          <div class="box-content condensed">
            <div class="box-content-row box-content-row-flex" *ngFor="let h of history">
              <div class="row-main">
                <div
                  class="password-wrapper monospaced"
                  [appCopyText]="h.password"
                  [innerHTML]="h.password | colorPassword"
                ></div>
                <span class="detail">{{ h.date | date: "medium" }}</span>
              </div>
              <div class="action-buttons">
                <button
                  type="button"
                  class="row-btn"
                  appStopClick
                  appA11yTitle="{{ 'copyPassword' | i18n }}"
                  (click)="copy(h.password)"
                >
                  <i class="bwi bwi-lg bwi-clone" aria-hidden="true"></i>
                </button>
              </div>
            </div>
            <div class="box-content-row" *ngIf="!history.length">
              {{ "noPasswordsInList" | i18n }}
            </div>
          </div>
        </div>
      </div>
      <div class="modal-footer">
        <button type="button" data-dismiss="modal">{{ "close" | i18n }}</button>
        <div class="right">
          <button
            type="button"
            (click)="clear()"
            class="danger"
            appA11yTitle="{{ 'clear' | i18n }}"
          >
            <i class="bwi bwi-trash bwi-lg bwi-fw" aria-hidden="true"></i>
          </button>
        </div>
      </div>
    </div>
  </div>
</div>
