From 8b0af505a1529c7aef4ec9c5147649aec7ce5576 Mon Sep 17 00:00:00 2001 From: Deon George Date: Thu, 10 Apr 2025 16:09:53 +1000 Subject: [PATCH] When viewing the schema, highlight Structural and non-Structural classes --- .../fragment/schema/objectclasses.blade.php | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/resources/views/fragment/schema/objectclasses.blade.php b/resources/views/fragment/schema/objectclasses.blade.php index 18d338ab..2da4fed1 100644 --- a/resources/views/fragment/schema/objectclasses.blade.php +++ b/resources/views/fragment/schema/objectclasses.blade.php @@ -2,14 +2,17 @@
- @foreach ($objectclasses as $o) + @foreach($objectclasses as $o) @@ -32,10 +35,10 @@
@lang('Inherits from') - @if ($o->sup->count() === 0) + @if($o->sup->count() === 0) @lang('(none)') @else - @foreach ($o->sup as $sup) + @foreach($o->sup as $sup) @if($loop->index) @endif {{ $sup }} @endforeach @@ -48,12 +51,12 @@ @lang('Parent to') - @if (strtolower($o->name) === 'top') + @if(strtolower($o->name) === 'top') (all) - @elseif (! $o->getChildObjectClasses()->count()) + @elseif(! $o->getChildObjectClasses()->count()) @lang('(none)') @else - @foreach ($o->getChildObjectClasses() as $childoc) + @foreach($o->getChildObjectClasses() as $childoc) @if($loop->index) @endif {{ $childoc }} @endforeach @@ -75,7 +78,7 @@
    - @foreach ($o->getMustAttrs(TRUE) as $oo) + @foreach($o->getMustAttrs(TRUE) as $oo)
  • {{ $oo->name }} @if($oo->source !== $o->name)[{{ $oo->source }}]@endif
  • @endforeach
@@ -97,7 +100,7 @@
    - @foreach ($o->getMayAttrs(TRUE) as $oo) + @foreach($o->getMayAttrs(TRUE) as $oo)
  • {{ $oo->name }} @if($oo->source !== $o->name)[{{ $oo->source }}]@endif
  • @endforeach