Skip to content

Commit db94742

Browse files
committed
Render entry type chips for entry indexes
Resolves #15922
1 parent 7fa682e commit db94742

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG-WIP.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
### Content Management
44
- Improved the styling of element cards with thumbnails. ([#15692](https://github.com/craftcms/cms/pull/15692), [#15673](https://github.com/craftcms/cms/issues/15673))
55
- Elements within element selection inputs now have “Replace” actions.
6+
- Entry types listed within entry indexes now show their icon and color. ([#15922](https://github.com/craftcms/cms/discussions/15922))
67
- Address index tables can now include “Country” columns.
78
- Action button cells within editable tables are now center-aligned vertically.
89
- Dropdown cells within editable tables are no longer center-aligned. ([#15742](https://github.com/craftcms/cms/issues/15742))

src/elements/Entry.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1942,7 +1942,7 @@ protected function attributeHtml(string $attribute): string
19421942
return $section ? Html::encode(Craft::t('site', $section->name)) : '';
19431943
case 'type':
19441944
try {
1945-
return Html::encode(Craft::t('site', $this->getType()->name));
1945+
return Cp::chipHtml($this->getType());
19461946
} catch (InvalidConfigException) {
19471947
return Craft::t('app', 'Unknown');
19481948
}

0 commit comments

Comments
 (0)