Halte ungenutzte Medien bearbeitbar und lege Dateien direkt im Modul an.
Deploy Test / test (push) Successful in 26s
Deploy Test / deploy (push) Successful in 30s

Eine Fassung wird erst unveränderlich, wenn sie freigegeben und verwendet wird. Das Auge am Listeneintrag öffnet die Vorschau.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-11-17 10:34:42 +01:00
1 parent 1fb48783bf
commit c73207f2c3
11 files changed
+547 -25

No files matched your search

@@ -3,6 +3,7 @@
namespace App\Filament\Resources\ContentElements;
use App\Domain\Catalog\ContentElement;
use App\Domain\Catalog\ContentVersionStatus;
use App\Domain\Identity\StaffRole;
use App\Filament\Resources\ContentElements\Pages\EditContentElement;
use App\Filament\Resources\ContentElements\Pages\ListContentElements;
@@ -85,8 +86,11 @@ public static function table(Table $table): Table
}
$file = is_array($version->metadata) ? ($version->metadata['file'] ?? null) : null;
$label = $version->status === ContentVersionStatus::Entwurf
? 'Entwurf'
: 'Fassung '.$version->number;
return 'Fassung '.$version->number.(is_string($file) && $file !== '' ? ' · mit Datei' : ' · ohne Datei');
return $label.(is_string($file) && $file !== '' ? ' · mit Datei' : ' · ohne Datei');
}),
]);
}