All files / app/component/notebook notebook.component.html

36% Statements 9/25
20% Branches 2/10
0% Functions 0/1
42.1% Lines 8/19

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 351x 2x 2x         2x         2x             1x 2x                       1x    
<div class="list-container"
     [style.grid-template-columns]="colStyle">
  @for (ref of pinned; track ref.origin + '@' + ref.url) {
    <app-note class="pinned ref-list-item"
              [ref]="ref"
              [ext]="ext"></app-note>
  }
  @for (ref of newRefs; track ref.origin + '@' + ref.url) {
    <app-note class="ref-list-item"
              [ref]="ref"
              [ext]="ext"></app-note>
  }
  @for (ref of page?.content; track ref.origin + '@' + ref.url) {
    @if (!hide?.includes($any(ref.modified?.valueOf()) || 0)) {
      <app-note class="ref-list-item"
                [ref]="ref"
                [ext]="ext"></app-note>
    }
  }
</div>
@if (page) {
  @if (!page.content.length) {
    @if (!newRefs.length && emptyMessage) {
      <p class="no-results">{{ emptyMessage }}</p>
    }
  } @else if (pageControls) {
    <app-page-controls [showPageLast]="showPageLast"
                       [page]="page"
                       [defaultCols]="cols"
                       [showPrev]="showPrev"></app-page-controls>
  }
} @else {
  <app-loading></app-loading>
}