+ <div class="title-block">
+ <h2 class="title-page title-page-single">
+ <ng-container *ngIf="componentPagination.totalItems > 0; then hasComments; else noComments"></ng-container>
+ <ng-template #hasComments>
+ <ng-container i18n *ngIf="componentPagination.totalItems === 1; else manyComments">1 Comment</ng-container>
+ <ng-template i18n #manyComments>{{ componentPagination.totalItems }} Comments</ng-template>
+ </ng-template>
+ <ng-template i18n #noComments>Comments</ng-template>
+ </h2>
+
+ <my-feed [syndicationItems]="syndicationItems"></my-feed>
+
+ <div ngbDropdown class="d-inline-block ml-4">
+ <button class="btn btn-sm btn-outline-secondary" id="dropdown-sort-comments" ngbDropdownToggle i18n>
+ SORT BY
+ </button>
+ <div ngbDropdownMenu aria-labelledby="dropdown-sort-comments">
+ <button (click)="handleSortChange('-createdAt')" ngbDropdownItem i18n>Most recent first (default)</button>
+ <button (click)="handleSortChange('-totalReplies')" ngbDropdownItem i18n>Most replies first</button>
+ </div>
+ </div>