Mark the special project build status in part info page and parts tables

This commit is contained in:
Jan Böhmer 2022-12-29 16:56:24 +01:00
parent fdcd1b9d9d
commit 05c4adb928
6 changed files with 47 additions and 3 deletions

View file

@ -57,6 +57,10 @@ class PartDataTableHelper
if ($context->isNeedsReview()) {
$icon = sprintf('<i class="fa-solid fa-ambulance fa-fw me-1" title="%s"></i>', $this->translator->trans('part.needs_review.badge'));
}
if ($context->getBuiltProject() !== null) {
$icon = sprintf('<i class="fa-solid fa-box-archive fa-fw me-1" title="%s"></i>',
$this->translator->trans('part.info.projectBuildPart.hint') . ': ' . $context->getBuiltProject()->getName());
}
return sprintf(