32 lines
1.1 KiB
HTML
32 lines
1.1 KiB
HTML
<div>
|
|
<!-- <app-list-header *appRole="['leader']"></app-list-header>-->
|
|
<app-list-header *appRole="['leader']">
|
|
@if (shows$ | async; as shows) {
|
|
<app-filter [shows]="publicShows$ | async"></app-filter>
|
|
}
|
|
</app-list-header>
|
|
|
|
<ng-container *appRole="['leader']">
|
|
@if (privateShows$ | async; as shows) { @if (shows.length > 0) {
|
|
<app-card [padding]="false" heading="Meine Veranstaltungen">
|
|
@for (show of shows | sortBy: 'desc':'date'; track trackBy($index, show)) {
|
|
<app-list-item
|
|
[routerLink]="show.id"
|
|
[showStatusBadge]="show.published ? 'nicht gemeldet' : 'unveröffentlicht'"
|
|
[showStatusBadgeType]="show.published ? 'error' : 'none'"
|
|
[show]="show"
|
|
></app-list-item>
|
|
}
|
|
</app-card>
|
|
} }
|
|
</ng-container>
|
|
|
|
@if (publicShows$ | async; as shows) { @if (shows.length > 0) {
|
|
<app-card [padding]="false" heading="Veröffentlichte Veranstaltungen">
|
|
@for (show of shows | sortBy: 'desc':'date'; track trackBy($index, show)) {
|
|
<app-list-item [routerLink]="show.id" [show]="show"></app-list-item>
|
|
}
|
|
</app-card>
|
|
} }
|
|
</div>
|