<ng-container *ngIf="listButton; else link">
  <a mat-button [routerLink]="routerLink" [queryParams]="queryParams">
    <span i18n>{{resourceType}} list</span>
  </a>
</ng-container>
<ng-template #link>
  <a class="active-link" [routerLink]="routerLink" [queryParams]="queryParams">
    <ng-content></ng-content>
  </a>
</ng-template>
