Move component/incident color lookups into actual CSS.

This commit is contained in:
James Brooks
2014-11-25 09:16:00 +00:00
parent 7dd54010a2
commit 8736db957c
10 changed files with 62 additions and 83 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
<ul class='list-group components'>
@foreach($components as $component)
<li class='list-group-item component '>
<h4>{{ $component->name }} <small class='{{ $component->color }}'>{{ $component->humanStatus }}</small></h4>
<h4>{{ $component->name }} <small class='text-component-{{ $component->status }}'>{{ $component->humanStatus }}</small></h4>
<p>{{ $component->description }}</p>
</li>
@endforeach
+1 -1
View File
@@ -13,7 +13,7 @@
@foreach($incidents as $incidentID => $incident)
<li class='list-group-item'>
<span class='badge badge-{{ $incident->color }}'><i class='glyphicon {{ $incident->icon }}'></i></span>
<span class='badge badge-incident-{{ $incident->status }}'><i class='glyphicon {{ $incident->icon }}'></i></span>
<h4>{{ $incident->name }} <small><time>{{ $incident->created_at->format('H:i:s A') }}</time></small></h4>
{{ $incident->message }}
@if($incidentID < ($incident->count() - 1))