From 7ae7d85e73573eee707ab33e92ff68b49e35cabf Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sun, 16 Nov 2014 23:34:46 +0000 Subject: [PATCH] Incident statuses. Show components on the list. --- app/models/Incident.php | 9 ++++++++- app/views/incident.blade.php | 2 +- app/views/index.blade.php | 18 +++++++++++++++++- 3 files changed, 26 insertions(+), 3 deletions(-) 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') + +

    Past Incidents

    +