Files
cachet-docker/resources/views/partials/component.blade.php
luto 507603e33d 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.
2020-04-11 21:02:37 +02:00

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>