Halte ungenutzte Medien bearbeitbar und lege Dateien direkt im Modul an.
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:
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');
|
||||
}),
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user