mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
19 lines
381 B
HTML
19 lines
381 B
HTML
<?php
|
|
$icon = null;
|
|
|
|
if ($record->is_disabled) {
|
|
$icon = 'eye-slash';
|
|
}
|
|
elseif ($record->disabledBySystem) {
|
|
$icon = 'exclamation';
|
|
}
|
|
elseif ($record->orphaned) {
|
|
$icon = 'question';
|
|
}
|
|
elseif ($record->is_frozen) {
|
|
$icon = 'lock';
|
|
}
|
|
?>
|
|
<span class="<?= $icon ? 'oc-icon-'.$icon : '' ?>">
|
|
<?= $value ?>
|
|
</span> |