All files / app/page/ref/summary summary.component.html

20.83% Statements 10/48
12.5% Branches 1/8
0% Functions 0/1
30% Lines 9/30

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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 551x 3x             1x               1x           1x                 1x           1x               1x           1x      
<ng-container *mobxAutorun>
  @if (store.view.ref) {
    <app-comment-reply #reply [to]="store.view.ref"
                       quote=""
                       [tags]="replyTags"
                       [selectResponseType]="!responseSet"
                       (save)="onReply($event)"></app-comment-reply>
    <div class="summary-box" [class.hidden-without-removing]="!comments">
      <h5 routerLink="./comments" i18n>Comments:</h5>
      <app-thread-summary query="plugin/comment:!plugin/delete"
                          [commentView]="true"
                          [source]="store.view.url"
                          [newRefs$]="newComment$"
                          [depth]="1"
                          [pageSize]="summaryItems"></app-thread-summary>
      @if (moreComments) {
        <a routerLink="./comments" queryParamsHandling="merge" class="load-more" i18n>
          more comments
        </a>
      }
    </div>
    <div class="summary-box thread" [class.hidden-without-removing]="!threads">
      <h5 routerLink="./thread" i18n>Threads:</h5>
      <app-thread-summary query="plugin/thread:!plugin/comment:!plugin/delete"
                          [source]="store.view.url"
                          [newRefs$]="newThread$"
                          [depth]="1"
                          [pageSize]="summaryItems"></app-thread-summary>
      @if (threads > summaryItems) {
        <a routerLink="./thread"
           queryParamsHandling="merge"
           class="load-more no-select" i18n>
          load more
        </a>
      }
    </div>
    <div class="summary-box" [class.hidden-without-removing]="!responses">
      <h5 routerLink="./responses" i18n>Responses:</h5>
      <app-ref-list #list [page]="query.page"
                    [pageControls]="false"
                    [insertNewAtTop]="true"
                    [newRefs$]="newResp$"></app-ref-list>
      @if (responses > summaryItems) {
        <a routerLink="./responses"
           queryParamsHandling="merge"
           class="load-more no-select" i18n>
          more responses
        </a>
      }
    </div>
  } @else {
    <app-loading></app-loading>
  }
</ng-container>