diff --git a/app/models/Incident.php b/app/models/Incident.php
index 14ac91ee..f631670b 100644
--- a/app/models/Incident.php
+++ b/app/models/Incident.php
@@ -1,5 +1,12 @@
status) {
+ case 1: return 'Investigating';
+ case 2: return 'Identified';
+ case 3: return 'Watching';
+ case 4: return 'Fixed';
+ }
+ }
}
diff --git a/app/views/incident.blade.php b/app/views/incident.blade.php
index 47b2396b..319e778a 100644
--- a/app/views/incident.blade.php
+++ b/app/views/incident.blade.php
@@ -10,7 +10,7 @@
@else
@foreach($incidents as $incident)
- {{ $incident->name }}
+ {{ $incident->name }}, {{ $incident->humanStatus }}
{{ $incident->message }}
diff --git a/app/views/index.blade.php b/app/views/index.blade.php
index 1c2ec1e8..7611615a 100644
--- a/app/views/index.blade.php
+++ b/app/views/index.blade.php
@@ -2,7 +2,23 @@
@section('content')
- @for ($i=0; $i <= 7; $i++)
+ @foreach(Component::get() as $component)
+ -
+ {{ $component->name }}
+ @if($component->description)
+ {{ $component->description }}
+ @endif
+
+
+ {{ $component->humanStatus }}
+
+
+ @endforeach
+
+
+ Past Incidents
+
+ @for($i=0; $i <= 7; $i++)
@include('incident', array('i', $i))
@endfor