Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

753 B
Raw Blame
<h6>
  <button type="button" class="btn btn-outline-secondary btn-sm me-2"
    (click)="expand = !expand" aria-label="Toggle document metadata" i18n-aria-label>
    @if (!expand) {
      <pngx-bs-icon width="1.2em" height="1.2em" name="caret-down"></pngx-bs-icon>
    }
    @if (expand) {
      <pngx-bs-icon width="1.2em" height="1.2em" name="caret-up"></pngx-bs-icon>
    }
  </button>
  {{title}}
</h6>

<div #collapse="ngbCollapse" [ngbCollapse]="!expand" (ngbCollapseChange)="expand = $event">
  <table class="table table-borderless">
    <tbody>
      @for (m of metadata; track m) {
        <tr>
          <td>{{m.prefix}}:{{m.key}}</td>
          <td class="metadata-column">{{m.value}}</td>
        </tr>
      }
    </tbody>
  </table>
</div>