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.
16 lines
786 B
PHP
16 lines
786 B
PHP
<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
|
|
{!! $component->name !!}
|
|
@endif
|
|
|
|
@if($component->description)
|
|
<i class="ion ion-ios-help-outline help-icon" data-toggle="tooltip" data-title="{{ $component->description }}" data-container="body"></i>
|
|
@endif
|
|
|
|
<div class="pull-right">
|
|
<small class="text-component-{{ $component->status }} {{ $component->status_color }}" data-toggle="tooltip" title="{{ trans('cachet.components.last_updated', ['timestamp' => $component->updated_at_formatted]) }}">{{ $component->human_status }}</small>
|
|
</div>
|
|
</li>
|