moved project card into generic component

This commit is contained in:
2026-08-11 13:26:11 +02:00
parent 0dd2a5743d
commit 91efbdffeb
6 changed files with 125 additions and 104 deletions
@@ -14,38 +14,7 @@
</div>
<ng-template #cardTmp let-element>
<mat-card
class="card"
appearance="outlined"
[routerLink]="getDetaiLink(element)">
<mat-card-header>
<mat-card-title>{{ element.title }}</mat-card-title>
<mat-card-subtitle>{{ element.type | uppercase }}</mat-card-subtitle>
</mat-card-header>
<mat-card-content class="card-content">
<mat-divider />
<div class="card-metadata">
<span
>Von {{ element.start_date | date: 'dd.MM.yyyy' }} bis
{{ element.end_date | date: 'dd.MM.yyyy' }}</span
>
</div>
<mat-divider />
</mat-card-content>
<mat-card-footer>
<mat-card-actions>
<a
mat-button
[routerLink]="getDetaiLink(element)"
(click)="$event.stopPropagation()">
<mat-icon>info</mat-icon>
Übersicht
</a>
</mat-card-actions>
</mat-card-footer>
</mat-card>
<app-project-card [project]="element" />
</ng-template>
<ng-template #additionalFiltersTmp>