add a CSS class for status to each component element

the class can be used to style components based on their status using
.component.status-1 as a rule. They can then be made bold, have a
different background or be hiddend depending on their status.
This commit is contained in:
luto 2020-04-11 21:02:37 +02:00
parent c7ad51e876
commit 507603e33d

View File

@ -1,4 +1,4 @@
<li class="list-group-item {{ $component->group_id ? "sub-component" : "component" }}">
<li class="list-group-item {{ $component->group_id ? "sub-component" : "component" }} status-{{ $component->status }}">
@if($component->link)
<a href="{{ $component->link }}" target="_blank" class="links">{!! $component->name !!}</a>
@else